Lesson 9.4
Lesson 9.4
Lesson 9.4
NOT gate
Logic gate
Truth table
Boolean algebraic:
Input
A
0
1
Output
X
1
0
38
Output
X
Lights up
Goes off
AND gate
OR gate
Input
A
0
0
1
1
B
0
1
0
1
Output
X
0
0
0
1
Input
A
0
0
1
1
Input
A
B
Switch off Switch off
Switch off Switch on
Switch on Switch off
Switch on Switch on
Output
X
0
1
1
1
B
0
1
0
1
Output
X
Goes off
Goes off
Goes off
Lights up
Input
A
Switch off
Switch off
Switch on
Switch on
39
B
Switch off
Switch on
Switch off
Switch on
Output
X
Goes off
Lights up
Lights up
Lights up
NAND gate
Example 1
Solution
Example 2
The truth table is:
Input
A
0
0
1
1
B
0
1
0
1
Output
X
1
1
1
0
NOR gate
Solution
B
0
1
0
1
Output
X
1
0
0
0
Solution
40
Temperature
Detector
0
1
0
1
Fan
0
0
0
1
Smoke
Detector
0
0
1
1
Heat
Detector
0
1
0
1
Output
Fire
Fire
extinguisher
Alarm
0
0
0
1
0
1
1
1
0
1
0
1
0
1
0
1
Siren
Not activated
Activated
Activated
Activated
Input
Temperature
detector
0
0
0
0
1
1
1
1
Output
Light
detector
0
0
1
1
0
0
1
1
1
0
0
1
0
1
0
1
Input
Switch
0
0
1
1
41
Light sensor
0
1
0
1
Output
Street light
1
0
1
1
TUTORIAL 4
1
10
25
64
B
D
16
32
M
0
1
0
1
A
C
X
0
0
0
1
B
D
OR gate
NOR gate
6
Which of the following logic gate is equivalent to
the circuit above?
A
B
C
D
AND gate
NAND gate
N
0
0
1
1
AND gate
OR gate
NAND gate
NOR gate
42
10
11
Which of the following logic gate is equivalent to
the circuit above?
A
C
8
OR gate
NOT gate
B
D
12
OR
NOR
OR gate
NOR gate
B
D
0001
1010
B
D
0010
1110
10000010
01000000
A
C
AND
NAND
B
D
AND gate
NAND gate
A
C
01010101
01111101
AND gate
NAND gate
43
A P
0
0
1
1
Q
0
1
0
1
R
1
0
1
0
P
0
0
1
1
Q
0
1
0
1
R
0
1
0
1
C P
0
0
1
1
Q
0
1
0
1
R
0
1
0
0
P
0
0
1
1
Q
0
1
0
1
R
0
1
1
0
13
15
14
A P
0
1
0
1
Q
0
0
1
1
R
1
1
1
1
C P
0
1
0
1
Q
0
0
1
1
R
0
0
0
0
P
0
1
0
1
Q
0
0
1
1
R
0
0
1
0
P
0
1
0
1
Q
0
0
1
1
R
1
1
0
1
16
P
0
0
1
1
Q
0
1
0
1
R
0
0
0
1
P
0
0
1
1
Q
0
1
0
1
R
0
1
0
0
P
0
0
1
1
Q
0
1
0
1
R
0
0
1
0
X
0
0
1
1
Y
0
1
0
1
Q
1
0
0
0
Y
0
1
0
1
Q
0
1
1
0
C X
0
0
1
1
Y
0
1
0
1
Q
1
0
0
1
X
0
0
1
1
Y
0
1
0
1
Q
1
1
1
0
X
0
0
1
1
Y
0
1
0
1
Q
0
1
1
1
44
A P
0
0
1
1
Q
0
1
0
1
R
0
1
1
1
P
0
0
1
1
Q
0
1
0
1
R
1
0
1
1
C P
0
0
1
1
Q
0
1
0
1
R
1
0
1
0
X
0
0
1
1
Y
0
1
0
1
Q
1
0
0
1
17
19
18
A A
0
0
1
1
B
0
1
0
1
C
0
0
0
0
C A
0
0
1
1
B
0
1
0
1
C
0
1
0
1
A
0
0
1
1
B
0
1
0
1
C
1
1
1
1
A
0
0
1
1
B
0
1
0
1
C
1
0
1
0
20
45
21
(ii)
..
Draw the output signal C in the graph
below.
(i)
46
Y
0
Z
1
1
(ii)
23
..........................................................
The diagram shows a circuit is used as a safety
system in a house.
............................................................
............................................................
............................................................
24
............................................................
(a) Figure shows a circuit made up from a
combination of a few basic logic gates.
Figure (a)
(i)
(c)
K
0
0
1
1
(ii)
Output
M
..
(b) Figure(b) shows a circuit diagram of a
vending machine . The vending machine
accepts 10 sen coins, 20 sen coins and 50
sen coins. Three light dependent resistors
(LDR) , X , Y and Z are used to check the
size of coins slotted in the machine. The
light sources of the slot machine where the
coins are slotted are as shown in Figure
(c).
L
0
1
0
1
............................................................
What happen to door and the gate
when the main switch is closed?
............................................................
............................................................
47
25
Figure (b)
Volume
of the
paint
less
in the
range
exceed
Figure (c)
(i)
State of LDR
X
Y
Z
No
coin
10
sen
20
sen Bright Dark Dark
50
sen
(ii)
Input
K
L
(a) (i)
Output
S
(ii)
Input X
Input Y
Output Z
1
1
1
(b) (i)
..
Using two NOT gates and an AND
gate, draw a circuit to represent the
truth table above.
(ii)
48
26
Ali wishes to design a
security system in his
house as shown in Figure (a). When a person
crosses the infrared beam at night, the infrared
sensor will send a signal to a logic gate which
then lights up a spotlight. The spotlight has a
240 V alternating current (a.c.) supply and will
only light up at night.
(ii)
..
Why is component S necessary in the
circuit?
..
..
..
..
(d) The following truth table shows the
operation of a logic gate in the circuit in
Figure (b).
Key:
Figure (a)
The circuit that could help Ali to develop the
security system is shown in Figure (b).
Figure (b)
(a) If the potential difference across resistor W
is 2V, what is the potential difference
across the infrared sensor?
Dark
surroundings
high input
voltage at P
logic1
Bright
surroundings
low input
voltage at P
logic0
Person
crossing
the path
high input
voltage at Q
logic1
Nobody
crossing
the path
low input
voltage at Q
logic0
Switch S
is ON
high input
voltage at R
logic1
Switch S
is OFF
low input
voltage at R
logic0
Input P
Output Q
Surroundings Input
Person
Input Output
R
voltage crossing voltage
at P
at Q
Bright
0
No
0
Bright
Yes
Dark
No
Dark
Yes
(i) Using the given key, complete the
truth table above.
(ii) Name the logic gate in the
circuit in Figure (a).
.
(b) Component X has a high resistance when
the surroundings are dark and a low
resistance in bright surroundings.
Name the component X.
.
(c) Component S is a switch that connects the
240 V a.c. spotlight circuit.
(i)
What type of switch is component S?
49
.
(iii) Sketch the symbol of the logic
gate in (d) (ii).
27
Up button
Down button
(i)
Figure (b)
State the relationship between the
resistance and the intensity of light
received by the light dependent
resistor.
.
Figure (a)
Keys:
(ii)
..
Complete the circuit in Figure (b), by
drawing the resistor and the light
dependent resistor using the symbols
given below.
B
0
1
0
1
..
..
50
..
51