Lecture 06 PDF
Lecture 06 PDF
Logical NOR
Operation
Inputs Output
A B F
0 0 1
0 1 0
1 0 0
1 1 0
2. OR Gate Implementation
A NOR Gate performs the OR-NOT function. Removing the NOT gate at the
output of the NOR gate results in an OR gate. The effect of the NOT gate at the output of
the NOR gate can be cancelled by connecting a NOT gate at the output of the NOR Gate.
The two NOT gates cancel each other out. A NOT Gate implemented using a NOR gate
(2) is connected to the output of a NOR gate (1). Figure 6.2.
implemented using two NOR gates. If the two bubbles are removed from the two inputs,
the OR gate with the bubble at the output represents a NOR gate (3). Figure 6.3
Figure 6.6 A NAND gate based exhaust fan failure detection system
A Washing Machine has three sensors to check for washing machine lid open,
washing tub filled to minimum level and weight of cloths and water in the tub. If the lid
of the Washing machine is open or the water is below the minimum level or the washing
machine has been overloaded the appropriate sensor generates an output of 1. The outputs
of the three sensors are connected to the inputs of a 3-input NOR gate. During the normal
operation of the Washing Machine all the sensors output a 0. The corresponding output of
the NOR gate is a 1. If an erroneous condition is detected by any one or more sensors, the
corresponding sensor output(s) is set to 1, setting the NOR gate output to a 0. The NOR
gate output is connected to the main switch which switches off the washing machine.
Figure 6.7.
1. Exclusive-OR Gate
The Exclusive-OR Gate or XOR Gate performs a function that is equivalent to the
combination of NOT, AND and OR gates. XOR gates are extensively used in digital
applications; therefore XOR gates are available as basic components. Most commonly
used XOR Gates have two inputs. The XOR gate is represented by symbol shown in
figure 6.8.
The function performed by the XOR gate is represented by the Function Table for
a two input XOR Gate. Figure 6.9. The function table for a 3, 4 or multiple input XOR
Gate is similar. The output of an XOR gate is 1 when the inputs are dissimilar and a 0
when all the inputs are the same.
Logical XOR
Operation
Inputs Output
A B F
0 0 0
0 1 1
1 0 1
1 1 0
The expression describing the operation of the two inputs XOR Gate is
F = A ⊕ B . The ⊕ is an XOR operator and the expression for multiple input XOR Gates
is F = A ⊕ B ⊕ C ⊕ .....N , where N is the total number of inputs.
The timing diagram of the two input XOR gate with the input varying over a
period of 7 time intervals is shown in the diagram. Figure 6.10.
2. Exclusive-NOR Gate
The Exclusive-NOR Gate or XNOR Gate performs a function that is equivalent to
the combination of NOT, AND and OR gates. XNOR gate is extensively used in digital
applications; therefore XNOR gates are available as basic components. Most commonly
used XNOR Gates have two inputs. The XNOR gate is represented by symbol shown in
figure 6.11.
The function performed by the XNOR Gate is represented by the Function Table
for a two input XNOR Gate. Figure 6.12. The function table for a 3, 4 or multiple input
XNOR Gate is similar. The output of an XNOR gate is 1 when the all the inputs are same
and a 0 when the inputs are dissimilar.
Logical XNOR
Operation
Inputs Output
A B F
0 0 1
0 1 0
1 0 0
1 1 1
Figure 6.12 Function Table of an XNOR Gate
The expression describing the operation of the two inputs XNOR Gate is
F = A ⊕ B . The expression for multiple input XNOR Gates is F = A ⊕ B ⊕ C ⊕ .....N ,
where N is the total number of inputs.
The timing diagram of the two input XNOR gate with the input varying over a
period of 7 time intervals is shown in the diagram. Figure 6.13.
Consider the three XOR gate logic circuit which is used to detect odd number of
1’s in a 4-bit binary input combination. Figure 6.14
B 1
3
C
D 2
The logic circuit based on two XOR and a single XNOR gate which is used to
detect even number of 1’s in a 4-bit binary input combination. Figure 6.15
B 1
3
C
D 2
The binary 1 and 0 are represented by +5V and 0 V. What if the output of an
AND Gate is +3 V? Does this output voltage level represent a binary 1 or 0? If the output
of the AND Gate is connected to the input of an Inverter, what would be the response of
the Inverter? Another important aspect is the frequency of the input signal. Electronic
circuits operate at certain frequencies. If the frequency of the input signal increases
beyond the operational specification of the circuit, the circuit will not be able to respond
fast enough resulting in unpredictable behavior.
Digital circuits that depend upon battery for their power should consume low
power to allow the device to function for longer periods of time before replacing or
recharging the battery. Thus the digital system should be implemented keeping in view
the power requirements of the application.
The Inversion function of the NOT gate is performed by the switching circuit
shown in figure 6.16. The Bipolar Junction Transistor (BJT) based NOT shown on the
left is switched on when a Voltage is applied at the base of the BJT. The transistor when
switched on short circuits the VCC, the output voltage is therefore 0 volts. When the BJT
base pin is connected to 0 volts, the transistor is switched off. The Vo/p is at potential VCC
= 5 Volts. The actual implementation is different.
The CMOS based implementation, shown on the right, uses a P-type and a N-type
MOSFETs. When the input is connected to +V, the P-type MOSFET is switched off and
the N-type MOSFET is switched on. The Vo/p is at ground potential. When the input is
connected to ground, the P-type and N-type MOSFETs are switched on and off
respectively. The Vo/p is at potential VDD = 5 Volts.
PMOS and NMOS technologies are used in LSI requiring high chip density.
Large memories and microprocessors are implemented using these technologies
These ICs have very low power consumption.
• E2CMOS: a combination of CMOS and NMOS technologies
Used to implement Programmable Logic Devices
Logic Gates are identified by the codes. The prefix 74 is used to identify a
commercial version of the device from the military version device identified by the prefix
54. Military versions are designed to withstand harsh and severe environmental
conditions. The XX part of the code identifies the switching speed of the gate.
The Integrated Circuit packages of the seven gates that have been discussed so far
are shown. Figure 6.17. The 7408 14-pin chip has 4 or Quad, 2-input AND gates. The
input pins and the output pins of each of the four gates are shown. To use any one or all
four gates the appropriate pins are connected. Pins 7 and 14 are connected to ground and
Supply voltage respectively.
The 7432 14-pin IC package has 4 or Quad, 2-input OR Gates. Connections to the
OR gates are identical to those of the 7408 AND gate IC. The 7404 14-pin chip has 6 or
hex, inverters. The input and output connections of each of the 6 NOT gates are shown.
Pins 7 and 14 are used for ground and supply voltage respectively.
The 7400, Quad, 2-input NAND Gate IC, the 7402, Quad, 2-input NOR Gate IC,
the 7486, Quad, 2-input XOR Gate IC and the 74266, Quad, 2-input XNOR Gate IC are
similar.
14 13 12 11 10 9 8 14 13 12 11 10 9 8
1 2 3 4 5 6 7 1 2 3 4 5 6 7
7400 7402
Four 2-Input NAND Gate Four 2-Input NOR Gate
14 13 12 11 10 9 8 14 13 12 11 10 9 8
1 2 3 4 5 6 7 1 2 3 4 5 6 7
7404 7408
Hex Inverters Four 2-Input AND Gate
14 13 12 11 10 9 8 14 13 12 11 10 9 8
1 2 3 4 5 6 7 1 2 3 4 5 6 7
7432 7486
Four 2-Input OR Gate Four 2-Input XOR Gate
14 13 12 11 10 9 8
1 2 3 4 5 6 7
74266
Four 2-Input XNOR Gate