Chap 3 CS
Chap 3 CS
3 HARDWARE
68
Programmable ROM (PROM) – type of ROM chip that Direct 3D printing – 3D printing technique where print
can be programmed once.
Erasable PROM (EPROM) – type of ROM that can be
programmed more than once using ultraviolet (UV) light.
head moves in the x, y and z directions. Layers of melted
material are built up using nozzles like an inkjet printer.
Digital to analogue converter (DAC) – needed to
3
Hard disk drive (HDD) – type of magnetic storage device convert digital data into electric currents that can drive
that uses spinning disks. motors, actuators and relays, for example.
Latency – the lag in a system; for example, the time to Analogue to digital converter (ADC) – needed to
find a track on a hard disk, which depends on the time convert analogue data (read from sensors, for example)
taken for the disk to rotate around to its read-write head. into a form understood by a computer.
3.1
Fragmented – storage of data in non-consecutive sectors; Organic LED (OLED) – uses movement of electrons
for example, due to editing and deletion of old data. between cathode and anode to produce an on-screen
3
chapter.
secondary storage
Primary memory
Primary memory is the part of computer memory which can be accessed directly
from the CPU and, as Figure 3.2 shows, contains the random access memory
(RAM) and read-only memory (ROM) memory chips. Primary memory allows
the processor to access applications and services temporarily stored in memory
locations. The structure of primary memory is shown in Figure 3.3.
Primary memory
RAM ROM
All computer systems come with some form of RAM. These memory devices
are not really random, it refers to the fact that any memory location can be
accessed independent of which memory location was last used. Access time to
locate data is much faster in RAM than in secondary devices. RAM can also be
» written to or read from, and the data stored can be changed by the user or
by the computer
» used to store data, files, part of an application or part of the operating
system currently in use
» volatile (memory contents are lost on powering off the computer).
In general, the larger the RAM, the faster the computer will operate. In reality,
RAM never runs out of memory, it continues to operate but just becomes slower
and slower as more data is stored. As RAM becomes ‘full’, the processor has to
continually access the secondary data storage devices to overwrite old data on
RAM with new data. By increasing the RAM size, the number of times this has
to be done is considerably reduced, thus making the computer operate more
quickly.
There are currently two types of RAM technology, dynamic RAM (DRAM) and
static RAM (SRAM).
70
Dynamic RAM (DRAM)
Each DRAM chip consists of a number of transistors and capacitors. Each of
these parts is tiny since a single RAM chip will contain millions of capacitors 3
and transistors.
» Capacitors hold the bits of information (0 or 1).
» Transistors act like switches; they allow the chip control circuitry to read the
capacitor or change the capacitor’s value.
This type of RAM needs to be constantly refreshed (that is, the capacitor
3.1
▲ Figure 3.4 Two pieces needs to be re-charged every 15 microseconds otherwise it would lose its
value). If it is not refreshed, the capacitor’s charge will leak away very quickly,
DRAM SRAM
n consists of a number of transistors and n uses flip-flops to hold each bit of
capacitors memory
n needs to be constantly refreshed n does not need to be constantly
n less expensive to manufacture than SRAM refreshed
n has a higher memory capacity than SRAM n has a faster data access time than DRAM
n main memory is constructed from DRAM n processor memory cache makes use
n consumes more power than SRAM under of SRAM
reasonable levels of access, as it needs n if accessed at a high frequency, power
to be constantly refreshed usage can exceed that of DRAM
Another form of primary memory is the read-only memory (ROM). This is similar
to RAM in that it shares the same random access properties, but it cannot
be written to or changed. As the name suggests, ROM is a read-only memory
device.
ROMs are
» non-volatile (the contents are not lost after powering off the computer)
» permanent memory devices (the contents cannot be changed)
71
» often used to store data which the computer needs to access when powering
3
up for the first time for example, the basic input/output system (BIOS).
Table 3.2 summarises the main differences between RAM and ROM.
RAM ROM
n temporary memory device n permanent memory device
n volatile memory n non-volatile memory device
n can be written to and read from n data stored cannot be altered
n used to store data, files, programs, part n sometimes used to store BIOS and other
3 HARDWARE
▲ Table 3.3 Pros and cons of controlling devices with embedded systems
72
EXTENSION ACTIVITY 3A
Describe how ROM and RAM chips could be used in: 3
a) a microwave oven
b) a refrigerator
c) a remote-controlled model aeroplane (the movement of the aeroplane is
controlled by a hand-held device).
3.1
Secondary storage devices
3
computer and can be connected to the computer using one of the USB ports. In
this way, they can be used as back-up devices or as another way of transferring
files between computers.
EXTENSION ACTIVITY 3B
The length of a track on each disk in an HDD disk pack becomes much
shorter towards the centre of the disk. Find out how manufacturers have
3 HARDWARE
overcome this issue with regards to disk data capacity and data access time.
3
technology. They usually connect to the computer through the USB port. Their
main advantage is that they are very small, lightweight devices which make
them suitable for transferring files between computers. They can also be used
as small back-up devices for music or photo files, for example.
Complex or expensive software, such as an expert system, will often use a
memory stick as a dongle. The dongle contains additional files which are
needed to run the software. Without this dongle, the software will not work
properly. It therefore prevents illegal or unauthorised use of the software, and
3.1
also prevents copying of the software since, without the dongle, it is useless.
pits or bumps
Both CDs and DVDs use a thin layer of metal alloy or light-sensitive organic
dye to store the data. As shown in Figure 3.7, both systems use a single, spiral
track which runs from the centre of the disk to the edge. When a disk spins, the
optical head moves to the point where the laser beam ‘contacts’ the disk surface
and follows the spiral track from the centre outwards. As with an HDD, a CD/DVD
is divided into sectors allowing direct access of data. Also, as in the case of an
HDD, the outer part of the disk runs faster than the inner part of the disk.
EXTENSION ACTIVITY 3C
The outer part of an optical disk runs faster than the inner part of the disk.
Find out how manufacturers have overcome this issue with regards to disk
data capacity and data access time.
The data is stored in ‘pits’ and ‘bumps’ on the spiral track. A red laser is used to
read and write the data. CDs and DVDs can be designated R (write once only) or
RW (can be written to or read from many times).
DVD technology is slightly different to that used in CDs. One of the main
differences is the use of dual layering which considerably increases the
storage capacity. This means that there are two individual recording
layers. Two layers of a standard DVD are joined together with a transparent
(polycarbonate) spacer, and a very thin reflector is sandwiched between the
two layers. Reading and writing of the second layer is done by a red laser
focusing at a fraction of a millimetre difference compared to the first layer.
75
polycarbonate layer first layer
Standard, single layer DVDs still have a larger storage capacity than CDs because
3 HARDWARE
the ‘pit’ size and track width are both smaller. This means that more data can be
stored on the DVD surface. DVDs use lasers with a wavelength of 650 nanometres;
CDs use lasers with a wavelength of 780 nanometres. The shorter the wavelength
of the laser light, the greater the storage capacity of the medium.
» Blu-ray discs are another example of optical storage media. However, they
are fundamentally different to DVDs in their construction and in the way
they carry out read-write operations.
» Blu-ray uses a blue laser, rather than a red laser, to carry out read and write
operations; the wavelength of blue light is only 405 nanometres (compared
to 650 nm for red light).
» Using blue laser light means that the ‘pits’ and ‘bumps’ can be much smaller;
consequently, a Blu-ray can store up to five times more data than a DVD.
» Blu-ray uses a single 1.1 mm thick polycarbonate disk; DVDs use a sandwich
of two 0.6 mm thick disks.
» Using two sandwiched layers can cause birefringence (light is refracted into
two separate beams causing reading errors); because Blu-ray uses only one
layer, the discs do not suffer from birefringence.
» Blu-ray discs automatically come with a secure encryption system which
helps to prevent piracy and copyright infringement.
Table 3.4 summarises the main differences between CDs, DVDs and Blu-ray.
track pitch
laser wavelength (distance
disk type colour of laser light disk construction between tracks)
CD red 780 nm single 1.2 mm 1.60 µm
polycarbonate layer
DVD red 650 nm two 0.6 mm 0.74 µm
polycarbonate layers
Blu-ray blue 405 nm single 1.1 mm 0.30 µm
polycarbonate layer
nm = 10 −9 metres
µm = 10 −6 metres
All these optical storage media are used as back-up systems (for photos,
music and multimedia files). This also means that CDs and DVDs can be used
to transfer files between computers. Manufacturers sometimes supply their
software (such as printer drivers) on CDs and DVDs. When the software is
supplied in this way, the disk is usually in a read-only format.
The most common use of DVD and Blu-ray is the supply of movies or games. The
memory capacity of CDs is not big enough to store most movies.
76
EXTENSION ACTIVITY 3D
A recent development is PRAM (parameter RAM) or PCRAM (phase-change 3
RAM) which utilises chalogenide glass. This is glass containing elements
such as sulphur, antimony, selenium, germanium or tellurium. Chalogenide
compounds used in PRAMs/PCRAMs can be changed between the
amorphous (glass-like) state and crystalline state, which changes the optical
and electrical properties allowing the storage of data when used as a film on
the surface of optical media.
3.1
Find out more about this technology and determine whether this could result
in the demise of the current solid state removable devices.
» a paper feed which automatically feeds the printer with pages as they are
▲ Figure 3.10 An inkjet required.
printer
The ink droplets are currently produced using one of two technologies: thermal
bubble or piezoelectric.
Thermal bubble – tiny resistors create localised heat which makes the ink
vaporise. This causes the ink to form a tiny bubble, as the bubble expands
some of the ink is ejected from the print head onto the paper. When the
bubble collapses, a small vacuum is created which allows fresh ink to
be drawn into the print head. This continues until the printing cycle is
completed.
Piezoelectric – a crystal is located at the back of the ink reservoir for each
nozzle. The crystal is given a tiny electric charge which makes it vibrate. This
vibration forces ink to be ejected onto the paper and at the same time more ink
is drawn in for further printing.
When a user wishes to print a document using an inkjet printer, the following
sequence of events takes place. Whatever technology is used, the basic steps in
the printing process are the same.
3.1
Computers and their components
▲ Figure 3.11 A 3D printer
3D printers are used to produce working, solid objects. They are primarily based
on inkjet and laser printer technology. The solid object is built up layer by layer
using materials such as powdered resin, powdered metal, paper or ceramic.
The artificial bone framework in Figure 3.12 was made from many layers (100 µm
thick) of powered metal using a technology known as binder 3D printing.
Various types of 3D printers exist; they range from the size of a microwave
▲ Figure 3.12 Artificial oven up to the size of a small car.
bone framework made 3D printers use additive manufacturing (the object is built up layer by layer);
using an industrial
3D printer
this is in contrast to the more traditional method of subtractive manufacturing
(removal of material to make the object). For example, making a statue using
a 3D printer would involve building it up layer by layer using powdered stone
until the final object was formed. The subtractive method would involve
carving the statue out of solid stone (removing the stone not required) until
the final item was produced. Similarly, CNC machining removes metal to form
an object; 3D printing would produce the same item by building up the object
from layers of powdered metal.
Direct 3D printing uses inkjet technology; a print head can move left to right
as in a normal printer. However, the print head can also move up and down to
build up the layers of an object.
Binder 3D printing is similar to direct 3D printing. However, this method uses
two passes for each of the layers; the first pass sprays dry powder and then on
the second pass a binder (a type of glue) is sprayed to form a solid layer.
Newer technologies use lasers and UV light to harden liquid polymers; this
further increases the diversity of products which can be made.
79
Speakers and microphones
3 Speakers
Digitised sound stored in a file on a computer can be converted into sound as
follows:
» The digital data is first passed through a digital to analogue converter (DAC)
where it is converted into an electric current.
» This is then passed through an amplifier (since the current generated
by the DAC will be small) to create a current large enough to drive a
3 HARDWARE
loudspeaker.
» This electric current is then fed to a loudspeaker where it is converted into
sound.
As Figure 3.13 shows, if the sound is stored in a computer file, it must first
pass through a digital to analogue converter (DAC) to convert the digital
data into an electric current which can be used to drive the loudspeaker.
Figure 3.14 shows how a loudspeaker can convert electric signals into sound
waves.
plastic or
paper cone
coil of wire
wrapped
sound waves
around an
produced
iron core
» When an electric current flows through a coil of wire that is wrapped around
an iron core, the core becomes a temporary electromagnet; a permanent
magnet is also positioned very close to this electromagnet.
» As the electric current through the coil of wire varies, the induced magnetic
field in the iron core also varies. This causes the iron core to be attracted
towards the permanent magnet and as the current varies this will cause the
iron core to vibrate.
» Since the iron core is attached to a cone (made from paper or thin synthetic
material), this causes the cone to vibrate, producing sound.
The rate at which the DAC can translate the digital output into analogue
voltages is known as the sampling rate. If the DAC is a 16-bit device, then it
80
can accept numbers between +32 767 (216 – 1) and –32 768 (216); the digital
3
value containing all zeros is ignored.
Microphones
Microphones are either built into the computer or are external devices
connected through the USB port or through wireless connectivity.
Figure 3.15 shows how a microphone can convert sound waves into an electric
current. The current produced can either be stored as sound (on, for example, a
CD), amplified and sent to a loudspeaker, or sent to a computer for storage.
3.1
coil wrapped around
sound waves
output from
the microphone
diaphragm
The electric current output from the microphone can also be sent to a computer
where a sound card converts the current into a digital signal which can then be
stored in the computer. The following diagram shows what happens when the
word ‘hut’ is picked up by a microphone and is converted into digital values:
1000 0001
0001 1110
1000 1110
0001 1100
1100 1100
1101 1110
Look at Figure 3.16. The word ‘hut’ (in the form of a sound wave) has been
picked up by a microphone; this is then converted using an analogue to digital
converter (ADC) into digital values which can then be stored in a computer or
manipulated as required using appropriate software.
Screens
Screens are used to show the output from a computer. Modern screens use an LCD,
backlit with LEDs or the newer organic light emitting diode (OLED) technology.
81
Figure 3.17 shows a simplified form of how OLED technology works.
3 negative charges
glass or plastic top layer
emissive layer
conductive layer
positive charges
glass anode (positive charge)
glass or plastic bottom layer
3 HARDWARE
Touch screens (which act as both input and output devices) also make use
of LCD and OLED technology. They are particularly used in mobile phones and
tablets.
We shall now consider LCD capacitive and resistive touch screen technologies.
Capacitive
» Made up of many layers of glass that act like a capacitor creating electric
fields between the glass plates in layers.
» When the top glass layer is touched, the electric current changes and the
coordinates where the screen was touched are determined by an on board
microprocessor.
Benefits
» Medium cost technology.
» Screen visibility is good even in strong sunlight.
» Permits multi-touch capability.
» Screen is very durable; it takes a major impact to break the glass.
82
Drawbacks
» Only allows use of bare fingers as the form of input; although the latest
screens permit the use of a special stylus to be used. 3
Resistive
» Makes use of an upper layer of polyester (a form of plastic) and a bottom
layer of glass.
» When the top polyester layer is touched, the top layer and bottom layer
complete a circuit.
3.1
» Signals are then sent out, which are interpreted by a microprocessor
and the calculations determine the coordinates of where the screen was
Virtual headsets
Virtual reality has now been around for many years and has many applications.
For example, it is possible to ‘walk around’ inside dangerous areas – such as a
nuclear power plant – without actually being there.
It allows engineers to plan modifications or repairs to a plant in complete
safety and to try out different scenarios first before implementing them. One
of the devices used is a virtual reality headset which gives the engineer the
feeling of being there. We will now describe how these devices work.
» Video is sent from a computer to the headset (either using an HDMI cable or
a smartphone fitted into the headset).
» Two feeds are sent to an LCD/OLED display (sometimes two screens are
used, one for the left side of the image and one for the right side of the
image); lenses placed between the eyes and the screen allow for focusing
and reshaping of the image/video for each eye, thus giving a 3D effect and
adding to the realism.
» Most headsets use 110° field of view which is enough to give a pseudo 360°
surround image/video.
» A frame rate of 60 to 120 images per second is used to give a true/realistic
image.
» As the user moves their head (up and down or left to right), a series of
sensors and/or LEDs measure this movement, which allows the image/video
on the screen to react to the user’s head movements (sensors are usually
gyroscopic or accelerometers; LEDs are used in conjunction with mini
cameras to further monitor head movements).
» Headsets also use binaural sound (surround sound) so that the speaker
output appears to come from behind, from the side or from a distance,
giving very realistic 3D sound.
83
» Some headsets also use infrared sensors to monitor eye movement (in
3
addition to head movement), which allows the depth of field on the screen
to be more realistic; an example of this is to make objects in the foreground
appear fuzzy when the user’s eyes indicate they are looking into the
distance (and vice versa).
Sensors
Sensors are input devices which read or measure physical properties, such as
temperature, pressure, acidity, and so on.
3 HARDWARE
ADC 1 0 0 1 1 1 0 0 ...
84
Table 3.7 shows a number of common sensors and examples of their
3
applications.
3.1
n monitor dampness levels in an industrial application (for
example, monitor moisture in a paint spray booth in a car
Sensors are used in both monitoring and control applications. There is a subtle
difference between how these two methods work. The flowchart (Figure 3.21
overleaf) shows a simplification of the process.
85
sensors send signals to the
3
microprocessor or computer
One of the most common uses of sensors in modern times is in the monitoring
and control of a number of functions in motor vehicles and aeroplanes. Look at
Figure 3.21 showing a typical modern car and its many sensors used to control
or monitor several functions.
86
3
3.1
Computers and their components
▲ Figure 3.21 Sensors on a typical modern car
ACTIVITY 3A
1 a) i) Describe three differences between RAM and ROM.
ii) Compare the relative advantages and disadvantages of SRAM and
DRAM.
Include examples of where each type of memory would be used in
a computer.
87
b) Secondary storage can be magnetic, optical or solid state.
sensor
DAC
EXTENSION ACTIVITY 3E
1 Look at this simplified diagram of a keyboard; 2 a) Describe how these types of pointing devices
the letter H has been pressed. Explain: work.
a) how pressing the letter H has been i) Mechanical mouse
recognised by the computer ii) Optical mouse
b) how the computer manages the very slow b) Connectivity between mouse and computer
process of inputting data from a keyboard. can be through USB cable or wireless.
Explain these two types of connectivity.
conductive layers
letter H
interpreted
insulating layer by computer
88