9 4 Logic Gates
9 4 Logic Gates
9 4 Logic Gates
9.4
Security lamps, alarm systems, and washing machines can make some simple decisions.
The switching on and off operations are controlled by electronic switches made up of logic
gates.
Logic gates work using tiny transistors as switches. They are manufactured as integrated
circuit (IC), with each chip holding several gates.
A logic gate is a circuit that has one or more input signals but only one output signal.
For each gate, the input or inputs are on the left of the symbol. The output is on the right
Each input and output can be either high (logic 1) or low (logic 0).
A binary “0” represents 0 V, and a binary “1” represents a non zero voltage.
A truth table lists all input possibilities and the corresponding output for each input.
List, draw symbols and state the action of the logic gates
3. NOT gate
The output is ON when the
input is OFF, and vice
versa
4. NAND gate
It is equivalent to an AND
gate with its output
inverted by a NOT gate.
Output Q is OFF when
inputs A and B are both
ON
206
SEK MEN SAINS MUZAFFAR SYAH
5. NOR gate
It is equivalent to an OR
gate with its output
inverted by a NOT gate.
Output Q is ON when both
input A and input B are
OFF
Built truth tables for logic gates in combination for a maximum of 2 inputs
207
SEK MEN SAINS MUZAFFAR SYAH
208
SEK MEN SAINS MUZAFFAR SYAH
209
SEK MEN SAINS MUZAFFAR SYAH
206
SEK MEN SAINS MUZAFFAR SYAH
Which of the following logic gate is 13. The diagram shows a combination of
equivalent to the circuit above? three logic gates.
A P Q R B P Q R
11 The diagram shows a circuit containing 0 0 1 0 0 0
three logic gates. 1 0 1 1 0 0
0 1 1 0 1 1
1 1 1 1 1 0
C P Q R P Q R
D
0 0 0 0 0 1
1 0 0 1 0 1
If the input signals P and Q are 0 1 0 0 1 0
respectively 1001 and 1100 what is the 1 1 0 1 1 1
output signal at X?
A 0001 B 0010
C 1010 D 1110 14. The diagram shows the combination of
four logic gates.
12 The diagram shows a logic gates circuit.
A P Q R B P Q R A X Y Q B X Y Q
0 0 1 0 0 0 0 0 0 0 0 1
0 1 0 0 1 1 0 1 1 0 1 1
1 0 1 1 0 0 1 0 1 1 0 1
1 1 0 1 1 1 1 1 0 1 1 0
207
SEK MEN SAINS MUZAFFAR SYAH
A A B C B A B C
0 0 0 0 0 1
Which of the following is the correct 0 1 0 0 1 1
truth table for output R? 1 0 0 1 0 1
1 1 0 1 1 1
A P Q R P Q R
B C A B C D A B C
0 0 0 0 0 0 0 0 0 0 0 1
0 1 0 0 1 1 0 1 1 0 1 0
1 0 0 1 0 0 1 0 0 1 0 1
1 1 1 1 1 0 1 1 1 1 1 0
A P Q R B P Q R
0 0 0 0 0 1
0 1 1 0 1 0
1 0 1 1 0 1
1 1 1 1 1 1
C P Q R D X Y Q
0 0 1 0 0 1
0 1 0 0 1 0
1 0 1 1 0 0
1 1 0 1 1 1
208
SEK MEN SAINS MUZAFFAR SYAH
209
SEK MEN SAINS MUZAFFAR SYAH
_________________________
_________________________
___________________________
(i) Complete the truth table below. (iii) Give two methods to open the
door and the gate
X Y Z simultaneously.
0 0
0 1 __________________________
1 1
1 1
210
SEK MEN SAINS MUZAFFAR SYAH
Figure (c)
………………………………………
Figure (b)
211
SEK MEN SAINS MUZAFFAR SYAH
______________________________
[1]
(d) The following truth table shows the
operation of a logic gate in the circuit
in Figure 26.2
Key:
Dark surroundings : high input voltage
at P, logic ‘1’
Bright surroundings : low input voltage
at P, logic ‘0’
Person crossing the path : high input
Figure 1.1 voltage at Q, logic ‘1’
Nobody crossing the path : low input
The circuit that could help Ali to
voltage at Q, logic ‘0’
develop the security system is shown Switch S is on : high output voltage at
in Figure 1.2. R, logic ‘1’
Switch S is off : low output voltage at
R, logic ‘0’
_________________________________
212
SEK MEN SAINS MUZAFFAR SYAH
_______________________________
SPM 2006 No. 7
26. A student wants to build s simple lift
motor control system which operates
using two buttons, A and B, for a two-
storey building.
A: Up button
B: Down button
Figure (a)
Keys:
Buttons A and B:
When pressed,logic “1”
Not pressed, logic “0”
X Output: Motor is activated,logic “1”
A B X
0 0
0 1
1 0
1 1
______________________________
______________________________
______________________________
213