Chapter 8
(Logic Gates)
Question 1)
@
Amr Osoma
‘alarm system (X) is enabled and disabled using either a switch (A) or a remote control (B).
re are two infra-red sensors (C, D) and one door pressure sensor (E).
Description of
Parameter parameter
Binary value
Condition
1A
‘Switch enabled
A ‘Switch
Owor A
‘Switch disabled
LS
‘Remote enabled
Remote contro!
nor B
Remote disabled
12 iG
‘Activated
Infra-red sensor
Ono
Not activated
1D
Activated
D Infra-red sensor
Ono,
Not activated
Door pressure ve
‘Activated
E
‘sensor ONT E
Not activated
activated. in
Draw a logic circuit to represent the alarm system.
R
The alarm sounds (X = 1) if the alam is enabled and any one or more of the
(esa)
P
Eon)
01000020407
‘Scanned with CamScanneree ‘the truth table for the logic expression: X = A OR (B XOR C)
aa ‘space
oO
\
l
0
\
i
P
0
\
\
°
°
\
\
°
A OR (BxRC) SoHw—r 0
ore dif >t
q
T/01000020407
‘Scanned with CamScannerm2)
(a) Agreenhouse control system has four input parameters (H, D, T, W) and two outputs (X, Y).
‘The watering system tums on (X = 1) it X= if (D AND NOT T)oR rot H
either itis daytime and the temperature is too high
the humid i too lon. £446 (Nort, AND NOT N)
o midis y=4 ie ( a a
‘The fan turns on (Y = 1) if the temperature is too high and the windows are closed. x
Draw a logic circuit to represent the greenhouse control system.
aS,
ee
9
y=4 if y AND NoT T)OR NOTA
uP a
Amr Osama T/ 01000020407
‘Scanned with CamScanner(b) Complete the truth table for the logic expression: X = NOT A AND (B NAND GC)
forking space
x
OJO/oO/G]O}|-}-|-—
NoT A ANP (2 NAND Cc)
uU—
os
4 P
es
x
Amr Osama
/01000020407
‘Scanned with CamScannerQuestion 3)
(a) A student needs to design a logic circuit to model the requirements for membership of a
‘snooker club. Membership (X) depends on four criteria, as shown in the table:
Description of /| Binary
Pe ae Parameter value
Condition
True
A Over 18
‘True
False
‘True
Recommended
Fulktime
Membership is approved (X = 1) if the person:
+ is over the age of 18 and has been recommended by a pre-existing member and
+ elther is working ful-ime ors retired, but not both. 9
Draw a logic circuit to represent the membership requirements.
pls
>
‘A AND B) AND ror >))
coat ca
? 4
x
/01000020407
‘Scanned with CamScanneriplete the truth table for the lagic expression: X = (A XOR B) AND NOT C
Working space
B
0
0
IS |S lo|—lo|—| ola] x
t
(A XR B) AND WOT C
?
Pega cat
x
Arar osama 01000020407
‘Scanned with CamScannerK= (A x0RB) OR (wor (CAND A))
Pe 7
Ea
% P= AXRB
Ww a logic circuit to represent the logic expression: G= C AND A
r= Nore
X = (A XOR B) OR (NOT(C AND A)) X= PORE
(b) Complete the truth table for the logic expression in part (a).
[Working space
|a
‘Amr Osama /01000020407
a
‘Scanned with CamScanner