03 Hardware
03 Hardware
3 Hardware
68
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
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
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
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
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
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
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.
speaker
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
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
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
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
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
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
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
collision
avoidance
system
3.1
front lighting
control
ABS
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
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
89
inputs give a possible 23 (8) binary combinations. And for four inputs, the
number of possible binary combinations is 24 (16). It is clear that the number
of possible binary combinations is a multiple of the number 2 in every case.
Table 3.9 summarises this.
Inputs Inputs Inputs
A B A B C A B C D
0 0 0 0 0 0 0 0 0
0 1 0 0 1 0 0 0 1
1 0 0 1 0 0 0 1 0
1 1 0 1 1 0 0 1 1
1 0 0 0 1 0 0
1 0 1 0 1 0 1
1 1 0 0 1 1 0
1 1 1 0 1 1 1
1 0 0 0
1 0 0 1
1 0 1 0
1 0 1 1
1 1 0 0
1 1 0 1
1 1 1 0
1 1 1 1
▲ Table 3.9
A X
90
3 A
B
X
is 1)
0 0 0
How to write this 0 1 1
X = A XOR B (logic notation) 1 0 1
X = (A.B) + (A.B) (Boolean algebra) 1 1 0
(Note: this is sometimes written as: ▲ Table 3.15
(A + B) . A.B)
EXTENSION ACTIVITY 3G
Using truth tables show that X = (A.B) + (A.B) and X = (A + B) . A.B both
represent the XOR logic gate.
Example 3.1 Produce a truth table for the following logic circuit (note the use of at junctions):
A
B P
R
X
Q
C
92
Part 1
This is the first part of the logic circuit; the first task is to find the intermediate
A
P
B
Q
C
The value of P is found from the AND gate where the inputs are A and B. The
value of Q is found from the NOR gate where the inputs are B and C. An
intermediate truth table is produced:
Inputs Outputs
A B C P Q
0 0 0 0 1
0 0 1 0 0
0 1 0 0 0
0 1 1 0 0
1 0 0 0 1
1 0 1 0 0
1 1 0 1 0
1 1 1 1 0
Part 2
The second part of the logic circuit has P and Q as inputs and the intermediate
output, R.
P Inputs Output
R
Q
P Q R
This produces the following intermediate 0 1 1
truth table (Note: even though there are 0 0 0
only two inputs to the logic gate, we have 0 0 0
generated eight binary values in Part 1
0 0 0
and these must all be used in this second
truth table). 0 1 1
0 0 0
1 0 1
1 0 1
93
ACTIVITY 3B
Produce truth tables for each of the following logic circuits. You are advised to split them up into
intermediate parts to help eliminate errors.
a) b) c)
A A
A
B
X X
X
C
B
B
d) e)
A A
B B
X
X
C C
94
Solution
The first thing to do is to write down the logic statement representing the
(A.B) + (B.C)
The logic circuit is made up of three parts as shown in the logic statement. We
will produce the logic gate for the Part 1 and Part 3, then join both parts together
with the OR gate.
A B
B C
Part 1 Part 3
Now, combining both parts with Part 2 (the OR gate) gives us:
Part 1 Part 2
X
B
Part 3
95
3 A
Inputs
B C
Intermediate values
(A=1 AND (B=1 AND
Output
X
B=NOT 1) C=NOT 1)
0 0 0 0 0 0
0 0 1 0 0 0
0 1 0 0 1 1
0 1 1 0 0 0
3 Hardware
1 0 0 1 0 1
1 0 1 1 0 1
1 1 0 0 1 1
1 1 1 0 0 0
ACTIVITY 3C
Draw the logic circuits and complete the truth tables for these logic
statements and Boolean algebra statements.
a) X = 1 if (A = 1 OR B = 1) OR (A = 0 AND B = 1)
b) Y = 1 if (A = 0 AND B = 0) AND (B = 0 OR C = 1)
c) T = 1 if (switch K is ON or switch L is ON) OR (switch K is ON and switch M
is OFF) OR (switch M is ON)
d) X = (A.B) + (B.C)
e) R = 1 if (switch A is ON and switch B is ON) AND (switch B is ON or switch
C is OFF)
Example 3.3 A wind turbine has a safety system which uses three inputs to a logic circuit. A
certain combination of conditions results in an output, X, from the logic circuit
being equal to 1. When the value of X = 1, the wind turbine is shut down.
The following table shows which parameters are being monitored and form the
three inputs to the logic circuit.
Parameter description Parameter Binary value Description of condition
turbine speed S 0 turbine speed ≤ 1000 rpm
1 turbine speed > 1000 rpm
bearing temperature T 0 bearing temperature ≤ 80 °C
1 bearing temperature > 80 °C
wind velocity W 0 wind velocity ≤ 120 kph
1 wind velocity > 120 kph
96
Solution
3
This is a different type of problem to those covered in Examples 3.1 and 3.2. This
time, a real situation is given and it is necessary to convert the information into a
logic statement and then produce the logic circuit and truth table. It is advisable in
problems as complex as this to produce the logic circuit and truth table separately
(based on the conditions given) and then check them against each other to see if
Stage 1
The first thing to do is to convert each of the three statements into logic
statements. Use the information given in the table and the three condition
statements to find how the three parameters S, T and W, are linked. We usually
look for the key words AND, OR and NOT when converting actual statements
into logic.
We end up with these three logic statements:
① turbine speed 1000 rpm and bearing temperature > 80 °C
logic statement: (S = NOT 1 AND T = 1)
② turbine speed > 1000 rpm and wind velocity > 120 kph
logic statement: (S = 1 AND W = 1)
③ bearing temperature 80 °C and wind velocity > 120 kph
logic statement: (T = NOT 1 AND W = 1)
Stage 2
This produces three intermediate logic circuits:
① S
② S
W
③
T
Each of the three original statements were joined together by the word OR. So,
we need to join all of the three intermediate logic circuits by two OR gates to get
the final logic circuit.
We will start by joining ① and ② together using an OR gate.
97
3 S
W
3 Hardware
The final part is to produce the truth table. We will do this using the original
logic statement, since this method allows an extra check to be made on the final
logic circuit.
There were three parts to the problem, so the truth table will first evaluate each
part. Then, by applying OR gates, as shown below, the final value, X, is obtained:
① (S = NOT 1 AND T = 1)
② (S = 1 AND W = 1)
③ (T = NOT 1 AND W = 1)
We find the outputs from ① and ② and then OR these two outputs to obtain a
new intermediate, which we will label part ④.
We then OR parts ③ and ④ together to get the value of X.
Inputs Intermediate values Output
A B C ① ② ③ ④ X
(S=NOT 1 (S=1 AND (T=NOT 1
AND T=1) W=1) AND W=1)
0 0 0 0 0 0 0 0
0 0 1 0 0 1 0 1
0 1 0 1 0 0 1 1
0 1 1 1 0 0 1 1
1 0 0 0 0 0 0 0
1 0 1 0 1 1 1 1
1 1 0 0 0 0 0 0
1 1 1 0 1 0 1 1
ACTIVITY 3D
There are two scenarios described below. In each case, produce the logic
circuit and complete a truth table to represent the scenario.
a) A chemical process is protected by a logic circuit. There are three
inputs to the logic circuit representing key parameters in the chemical
process.
An alarm, X, will give an output value of 1 depending on certain
conditions in the chemical process.
98
Parameter
description Parameter
Binary
value Description of condition
3
chemical R 0 reaction rate < 40 mol/l/sec
reaction rate 1 reaction rate 40 mol/l/sec
process T 0 temperature > 115 °C
temperature 1 temperature 115 °C
Parameter Binary
description Parameter value Description of condition
gas temperature G 0 gas temperature 160 °C
1 gas temperature > 160 °C
reactor pressure R 0 reactor pressure 10 bar
1 reactor pressure > 10 bar
water W 0 water temperature 120 °C
temperature 1 water temperature > 120 °C
3 One common ‘building block’ is the NAND gate. It is possible to build up any
logic gate, and therefore any logic circuit, by simply linking together a number
of NAND gates, such as:
» the AND gate
A
B
» the OR gate
ACTIVITY 3E
1 By drawing the truth tables, show that the three logic circuits shown
above can be used to represent AND, OR and NOT gates.
2 a) Show how the following logic circuit could be built using NAND gates only.
Complete truth tables for both logic circuits to show that they produce
identical outputs.
A
B
b) Show how the XOR gate could be built from NAND gates only.
Complete a truth table for your final design to show that it produces
the same output as a single XOR gate.
3 By drawing a truth table, discover which single logic gate has the same
function as the following logic circuit made up of NAND gates only.
100
EXTENSION ACTIVITY 3H
By drawing a truth table, show which single logic gate has the same function
A
B
A
B
is the same as C
Both sets of AND gates have the output A.B.C and they share identical truth tables.
Inputs Output
A B C A.B.C
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 0
1 0 0 0
1 0 1 0
1 1 0 0
1 1 1 1
▲ Table 3.16
101
3 A
B
A
B
C
C is the same as D
Both sets of AND gates have the output A.B.C.D and they share identical truth tables.
Inputs Output
A B C D A.B.C.D
0 0 0 0 0
0 0 0 1 0
0 0 1 0 0
0 0 1 1 0
0 1 0 0 0
0 1 0 1 0
0 1 1 0 0
0 1 1 1 0
1 0 0 0 0
1 0 0 1 0
1 0 1 0 0
1 0 1 1 0
1 1 0 0 0
1 1 0 1 0
1 1 1 0 0
1 1 1 1 1
▲ Table 3.17
Multi-input OR gates
A
B
A
is the same as B
C
C
Both sets of OR gates have the output A + B + C and they share identical truth tables.
Inputs Output
A B C A+B+C
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 1
▲ Table 3.18
102
ACTIVITY 3F
1 a) Draw the following multi-input NAND gate using two-input NAND
gates only:
A
B
C
D
b) Construct the truth tables for the above 4-input NAND gate and for
your circuit drawn in part a). Confirm that they are identical.
2 a) Draw the following multi-input NOR gates using two-input NOR gates only.
A A
B
B C
C D
b) Construct the truth tables for the above 3-input NOR gate and for your
equivalent circuit drawn in part a).
Confirm they are identical.
103
3
equivalent circuit drawn in part a).
Confirm they are identical.
3 Confirm that the following two logic circuits are identical by constructing
the truth tables for each circuit.
A
A
B
B
C
C
3 Hardware
End of chapter 1 a) Many mobile phone and tablet manufacturers are moving to OLED screen
questions technology.
Give three reasons why this is happening. [3]
b) A television manufacturer makes the following advertising claim:
‘Our OLED screens allow the user to enjoy over one million vivid colours in
true-to-life vision.’
Comment on the validity of this claim. [4]
2 a) A company is developing a new games console. The game will be stored on a
ROM chip once the program to run the new game has been fully tested and
developed.
i) Give two advantages of putting the game’s program on a ROM chip. [2]
ii) Explain why the manufacturers would use an EPROM chip during
development.[2]
iii) The manufacturers are also using RAM chips on the internal circuit board.
Explain why they are doing this. [2]
iv) The games console will have four USB ports.
Apart from the need to attach games controllers, give reasons why USB
ports are incorporated. [2]
b) During development of the games console the plastic parts are being made by
a 3D printer.
Give two reasons why the manufacturer would use 3D printers. [2]
3 An air conditioning unit in a car is being controlled by a microprocessor and a
number of sensors.
a) Describe the main differences between control and monitoring of
a process. [2]
b) Describe how the sensors and microprocessor would be used to control the
air conditioning unit in the car.
Name at least two different sensors that might be used and explain the role of
positive feedback in your description.
You might find drawing a diagram of your intended process to
be helpful. [6]
104
3
They are not in the correct order.
Write the letters A to I so that the stages are in the correct order. [9]
A The data is then sent to the printer and it is stored in a temporary memory
known as a printer buffer.
B As the sheet of paper is fed through the printer, the print head moves
from side to side across the paper printing the text or image. The four ink
colours are sprayed in their exact amounts to produce the desired final
5 a) There are two types of RAM: dynamic RAM (DRAM) and static RAM
(SRAM). Five statements about DRAM and RAM are shown below. Copy
the diagram below and connect each statement to the appropriate type of
RAM.[5]
3
Describe two differences in how they operate. [2]
Cambridge International AS & A Level Computer Science 9608
Paper 13 Q4 June 2015
6 a) Three digital sensors, A, B and C, are used to monitor a process. The outputs
from the sensors are used as the inputs to a logic circuit. A signal, X, is output
from the logic circuit:
A logic
B output X
3 Hardware
C circuit
c) Write a logic statement that describes the following logic circuit. [3]
106