Week 6 - 7 Logic Circuit
Week 6 - 7 Logic Circuit
On or Off
True or False
1 or 0
A logic circuit can be created using discrete
diodes and/or transistors. However, it is more
common to use an integrated circuit to
perform the required logic function.
The circuit which performs a logic function is
usually called a Gate.
It is usual in digital circuits to describe the two
logic states as “0” and “1” which represents
two different voltage levels. In order that a
particular voltage is recognised as either a 0 or
1, the voltage must be within set limits.
0 1 0 1
5
V
2 Forbidden
V
0.8 Zone
0 V
V
For TTL logic gates a logic 0 is a voltage between 0 and
0.8V. A logic 1 is a voltage between 2 and 5V. Voltages
between 0.8 and 2V fall into the Forbidden Zone, where
the voltage can be interpreted as either a 0 or 1
Positive & Negative Logic
Switch Switch
A B
If we take an Open switch as Logic 0 and a
Closed switch as Logic 1 then we can create a
Truth Table for all the possible combinations of
switch
Switch A
positions
Switch B Output
An AND gate only
0 0 0
0 1 0
gives a Logic 1 output
1 0 0 when all the switches
1 1 1 are closed
AND Gate
The circuit symbol for the AND gate is shown
below A
Output
B
Switch
B
A B C
0 0 0
0 1 1 C = A Exclusive OR
1 0 1 B
1 1 0
Exclusive NOR
Gate
Adding a NOT gate to the output of an
Exclusive OR gate will create an Exclusive NOR
gate
A B C
0 0 1
0 1 0 C = NOT A Exclusive
1 0 0 OR B
1 1 1
Simple logic circuits can be created from diodes
and transistors.
Output A B C
0 0 1
Q1
A 0 1 1
1 0 1
1 1 0
Q2
B
Expanded
Circuit
A B C D E F A B F
0 0 1 1 1 0 0 0 0
0 1 1 0 0 1 0 1 1
1 0 0 1 0 1 1 0 1
1 1 0 0 0 1 1 1 1