Logic Gates
Logic Gates
So what
are logic
gates?
So what
are logic
gates?
So what
are logic
gates?
0 = OFF
1 = ON
NOR OR
NAND NOT
XOR
Simple circuits using Logic
gates
Tape
recorder
Record
button
Recording
AND circuits
Play
button
A night-time rain
alarm.
Light sensor During the day, the output
1 0 from the light sensor is always
HIGH (1) so the output from the
NOT gate is always LOW (0) and
the alarm is not switched on.
Moisture 0
sensor 0/1 Alarm
Simple circuits using Logic
gates
A night-time rain
alarm.
Light sensor In darkness the output from
0 1 the light sensor is LOW (0).
This means that the output
from the NOT switch is HIGH
(1). If rain falls on the
moisture sensor then its
output becomes HIGH (1). The
AND gate receives two HIGH
inputs, so the alarm is
Moisture
switched1on.
sensor 1 Alarm
Logic circuits:
Example I
▪ Let us consider the
following circuit. We
will analyse the A P
B
circuit and
Whole
determine its truth
C Q
table. It can be
noted that there are
three inputs, hence,
23=8 possible binary
combinations.
Analysing logic circuits:
Step 2
Intermed
▪ Q is the output of the AND gate Final
Input iate
with P and C as inputs. Q is true output output
only when both P and C are
Q ( P AND
true. A B C P (A or B)
C)
0 0 0 0 0
0 0 1 0 0
A P
0 1 0 1 0
B
0 1 1 1 1
Whole 1 0 0 1 0
1 0 1 1 1
C Q
1 1 0 1 0
1 1 1 1 1
Analysing logic circuits:
Step 3
▪ The intermediate output is removed
to obtain the final truth table. Input Final
▪ Using the logic circuit, the logic output
notation of output Q is Q= (A OR B) Q ( P AND
A B C
AND C. Using symbols in logical C)
notation, 0 0 0 0
Q = (A + B).C 0 0 1 0
0 1 0 0
A P 0 1 1 1
B 0
1 0 0
Whole 1 0 1 1
C Q
1 1 0 0
1 1 1 1
Thank You