Logic Gates
Logic Gates
Do you know
logic gates?
Can we
perform logical
operation
using diode
and transistor?
output is based on certain logic. These gates are implemented Universal Gates: A universal logic gate is
Give the
reason, NAND using electronic switches like transistors, diodes. The logic gates a logic gate that can be used to construct
and NOR gate
is called as are categorized into basic gates, universal gates and special gates. all other logic gates.
Universal
gate? These logic gates with their logic
By using NAND
gate symbols, logical expression and truth tables are explained
and NOR gate,
we can below.
construct all
other ( Cont. on next page )
logic gates like
NOT, OR and
AND gate.
Therefore it is
Application of Concept/ Examples in real life: Link to YouTube/ OER/ video
called as
www.ee.Surrey.ac.uk/Projects/Labview
universal gate. o NAND Gates are used in Burglar alarms and buzzers.
/gatesfunc
o They are basically used in circuits involving computation and
www.ee.Surrey.ac.uk/Projects/Labview
processing.
/boolalgebra
o They are also used in push button switches. E.g. Door Bell.
.
Basic Gate (fundamental Gate):
Basic gates are those gates which performs basic operation such as NOT, AND, and OR
NOT Gate:
The NOT gate is generally known as an INVERTER. It produces the exact reverse output to that of given input. It has only one input
and one output. The output of NOT gate is always the complement of its input.
When low (logic 0) input signal is connected to the input of the NOT gate, then the output will be HIGH (logic 1).
Similarly, if high (logic 1) input signal is connected to the input, then the output will be LOW (logic 0).
A Q
0 1
AND Gate:
When any one of the input is connected to low (logic 0) then the output is low (logic 0). When both the inputs to the AND gate
are connected to high (logic 1) then the output is high (logic 1).
B A Q
0 0 0
0 1 0
1 1 1
Boolean Expression Q = A.B Output read as A AND B
If one of the inputs is logic “0”, the current will flow through the corresponding diode and through the resistor. Thus the diode
anode (the output) will be logic “0”.
When both inputs are at logic “1″, the two diodes are reverse biased and there is no current flowing to ground. Therefore the
output is logic “1” because there is no voltage drop across the resistor R.
Transistorized AND gate:
When any inputs of the AND gate are connected to 0 Volts, then the respective transistor is in OFF state. So no current flows
through the resistor and there is no voltage drop across the resistor. Then the output voltage is equal to the 0 Volts i.e. LOW logic
level.
When both the inputs of the AND gate are connected to supply voltage +5 Volts, then the transistors T1 and T2 are in ON state.
So current flows through the resistor and there is voltage drop across resistor. Then the output voltage equal to supply voltage +5
volts. i.e. HIGH logic level.
Pin Diagram: Quad 2 input AND gate (7408):
OR gate:
When both the inputs of the OR gate are connected to low (logic 0) then the output will be low (logic 0).
When any one of the input is connected to high (logic 1), then the output will be high.
B A Q
0 0 0
0 1 1
2-input OR Gate 1 0 1
1 1 1
Universal Gate:
A universal logic gate is a logic gate that can be used to construct all other logic gates, which can implement any Boolean function
without need to use any other gate type.
The NAND and NOR gates are universal gates.
NAND Gate:
When any one of the input is connected to low (logic 0) then the output is high (logic 1). When both the inputs to the NAND gate
are connected to high (logic 1) then the output is low
(Logic o).
B A Q
0 0 1
0 1 1
B A Q
0 0 1
0 1 0
1 1 0
B A Q
0 0 0
0 1 1
1 0 1
2-input Ex-OR Gate
1 1 0
When both inputs are same then the output will be high (logic 1) otherwise low output ( logic 0).
B A Q
0 0 0
0 1 1
1 1 0
Enable IN OUT
0 0 Hi-Z
0 1 Hi-Z
1 0 0
1 1 1
When a logic level “1” is applied to its “enable” control line and the data passes through from its input to its output. When
the enable control line is at logic level “0”, output is disabled and a high impedance condition, Hi-Z is present on the output.
Key Take away from this LO:
Operation of basic gates, universal gate and special gates.
Implementation of basic gates and universal gates using diode and transistor