Introduction to digital Logic Gates
If we are studying the electronics engineering the logic gate are the important concept. The basic types of digital logic gate are three, these three are AND Gate, OR Gate and NOT Gate. They are based on the Boolean function. We have also seen in digital electronics the NAND and NOR Gates are the two universal gates. The construction of combinational circuit we only using two or three NAND and NOR Gates. NOT and buffer are also the gate in which it has single input and output device that are use to control the flow of data onto a common data bus. The logic gates are playing very important role in digital electronics. It is the heart of digital electronics because it is use in IC’s, computer circuit and communication sector to perform the various type of operations. In general, the all logic gate have one output and two inputs. Some logic gates have one input and one output these are NOT gate and Buffer. The logic gate inputs are binary data. The binary data may be zero voltage and high voltage.
The logic gate discrete components are diode, registers and transistor to form RTL (resistor-transistor logic) or DTL (diode-transistor logic) circuits, but in modern digital IC’s 74xxx series are manufactured by using TTL based NPN bipolar junction transistor (BJT) technology or the 74Cxxx, 74HCxxx, 74ACxxx and the 4000 series logic chips uses the CMOS based MOSFET transistor logic for fastest switching and low power consumption.
Types of Basic Logic Gates
There are several basic digital logic gates that are used in performing operations in digital systems. The common digital logic gates are;
- AND Gate
- OR Gate
- NOT Gate
- XOR Gate
Some other type of gate which is the combination of basic logic gate
- NAND Gate
- NOR Gate
- EXOR Gate
- EXNOR Gate
The eight standard individual digital logic gates are summarized below with truth table:
Standard Logic Gates
The Logic AND Gate
In AND gate if any of these two inputs are zero the output will be zero. The output will be one or high if all inputs are one. The Boolean expression of AND logic gate is Y = A.B The truth table of a two-input AND basic gate is given as;
2-input AND Digital Logic Gate
|Boolean Expression Q = A.B||Read as A AND B gives Q|
Circuit of AND Logic gate
The circuit of AND gate can be design by diode and transistor. Here we see the design of AND gate using diode. In the AND gate circuit the voltage is connected to the parallel connection of diode thorough resistor “R”. The two inputs of AND gate are anode of the diode. The high represent the +5 volt and low represent the 0 volt.
If any of the input of diode is 0 volt, than the diode become the reverse bias and it will an open circuit and the make the output Low.
When applied 5 volt across both of the diode. The both diode will start conduction which makes the output high +5 volt.
The Logic OR Gate
In OR Gate, if any of the logic input is high than the output will be high. The OR Gate Boolean expression is Y = A + B, read as Y equals A ‘OR’ B. The truth table of Boolean expression with two input A, B and output Q.
|Boolean Expression Q = A + B||Read as A OR B gives Q|
Circuit of OR Gate
The simplest circuit diagram of OR logic gate are shown below. It contains two diodes and one resistance “R”. The two inputs of OR gate is the input of the anode of diodes. In this case the high represented +5 volt and low represent 0 volt. When we applied 0 volt at the inputs of diode there is no conduction of diode hence output is zero.
When any of the input is high, the high input diode is forward bias and the output appears high at “Z”.
If the diode inputs are high, both diodes are forward bias and it will start conduction, thus the output also is high i.e.”1”.
The Boolean expression of the OR gate is Z = X + Y, where X and Y are the inputs Z is the output port.
The circuit diagram of the logical OR gate is shown below.
Inverting Logic Gates
The Logic NAND Gate
The NAND logic gate is the combination of the AND and NOT gates. The NAND gate Boolean expression of is Y = (AB)’ The truth table and circuit diagram of a NAND gate is given as;
|Boolean Expression Q = ( A B)’||Read as A AND B gives NOT Q|
Circuit of NAND Gate
The NAND logic gate is also known as universal gate. It perform the three operations such as AND, OR and NOT. The output of NAND gate is the inverse of AND logic gate.
The NAND gate has two inputs A, B and one output Z. this circuit is driven by 5 volts.
When the high inputs of the NAND gate is connected. Than the diodes are reverse bias and the transistor is Q1 is able to drive from the supply through the resistor, And the output voltage becomes zero.
Similarly, any of the input is high the transistor become off and the output voltage become +5 volts.
The transistor based circuit diagrams of NAND gate are shown below.
The Logic NOR Gate
OR and NOT gate combination are forms the NOR gate. The Boolean expression of NOR gate is Y = (A+B)’
The truth table of a NOR gate:
|Boolean Expression Q = (A + B)’||Read as A OR B gives NOT Q|
Circuit diagram of NOR Gate
The NOR gate is the combination of the NOT and OR gate. The NOR gate is the inverse operation of the OR gate. The NOR gate has two inputs A, B and one output ”Z”.
The circuit contain two transistor Q1 and Q2 NPN transistor it with the voltage supply or +5 Volts.
When the inputs of the NOR gate is low, the transistor Q1 and Q2 is OFF state, so no any voltage drop across the resister. Than the output voltage is equal to the supply voltage i.e. +5 volt.
The Boolean expression of NOR gate is as Z =(X+Y)’.
The circuit diagrams of NOR gate are shown below.
Exclusive Logic Gates
The Logic Exclusive-OR Gate (Ex-OR)
In XOR gate is the combination of one OR gate and two AND gate. It is two inputs and output. The output of XOR gate is “1” when both inputs are different. And when the inputs are same the output will be zero. Boolean Expression Q = A ⊕ B
Truth table of EX-OR
|Boolean Expression Q = A ⊕ B||Read as A OR B but not BOTH gives Q (odd)|
The Logic Exclusive-NOR Gate (Ex-NOR)
In XNOR gate is the combination of AND and OR gate. It is the inverse of the XOR gate.
It has two inputs and one output, if any of the input signal is different the output will be low “0” and the input is same output will be high “1”. The XNOR gate Boolean expression is Q = (A ⊕ B)’
The truth table of XNOR gate;
|Boolean Expression Q = (A ⊕ B)’||Read if A AND B the SAME gives Q (even)|
Single Input Logic Gates
The Hex Buffer
The buffer has one input and one output. The output is same as the input in buffer logic gate.
The Boolean Expression of Hex Buffer Q = A
The truth table of Hex Buffer is given below:
|Boolean Expression Q = A||Read as A gives Q|
The NOT gate (Inverter)
The NOT gate is the inverse of the input. It has one input and one output. It produces the inverse of the input signal, when the input is low the output is high and the input is high the output is low. The Boolean expression Q = A’
Truth table of NOT gate:
|Boolean Expression Q = not A or A||Read as inverse of
A gives Q
The circuit diagram of NOT gate is given below the, it has one transistor Q1.one input X and one output is Z. when the input is connected to low then the transistor is reverse biased, so the transistor is OFF. Hence the no voltage drops across the register, so the output will be high.
If transistor is ON the output will be zero.
The transistor based NOT logic gate designed is shown below.
74 Series Logic IC’s
The series of 7400 IC’s are introduced in 1960s. The 7400 ICs is the family of TTL becomes most popular because it has some specific feature which is given below:
In the fabrication of 7400 IC series we use the bipolar transistor. So they name TTL family ICs. (TTL means Transistor -Transistor Logic).
There are several IC families numbered as 74xx00. The xx will indicate the types of IC and specifications. The types of IC series is 74LS00, 74HC00 and 74HCT00 etc. Now discuss the specific types of each IC series.
It is the low power schottky diode TTL circuit. It has fast switching and power consumption is more than other logic families.
It is a high switching speed IC and it belongs to CMOS family. It consumes low power.
This is very special type of 74HC family. It has 74LS TTL compatible inputs. They are easily interfaced with 74LS series and 74HCL consume less power.
The disadvantage of the 74HCT series is less immune to the noise i.e. they have less noise tolerance.
The prefixes list of TTL and CMOS family ICs are below.
Some most used ICs number for logic gate are given below
Quad 2-input gates
- 74LS00 –NAND Gate
- 74LS01 –NAND Gate with Open Collector Outputs
- 74LS02 –NOR Gate
- 74LS03 – NAND Gate with open collector outputs
- 74LS08 – AND Gate
- 74LS09 – AND Gate with open collector outputs
- 74LS32 – OR Gate
- 74LS132 – NAND Gate with Schmitt trigger inputs
- 74LS37, 74LS32, 74LS28 – NOR Gates
- 74LS26 – NAND Gate, OC (15V)
- 74LS28 – NAND Gate with OC (15V)
- 74LS33 – NOR Gate with Open Collector Outputs
- 74LS38 – NOR Gate with Open Collector Outputs
- 74LS38 – NAND Gate with Open Collector Outputs
Triple 3-input gates
- 74 LS 10 – NAND
- 74 LS 11 – AND
- 74 LS 12 – NAND with open collector outputs
- 74 LS 27 – NOR
- 74LS15 – AND Gate with Open Collector Outputs
Dual 4-input gates
- 74LS13 – NAND Schmitt Triggers
- 74 LS 20 – NAND
- 74 LS 21 – AND with Open Collector Outputs
- 74LS22 – NAND Gate with Open Collector Outputs
- 74LS40 – NAND Gates
- 74LS30 – 8 input NAND gate
Hex NOT gates
- 74 LS 04 – hex NOT
- 74 LS 05 – hex NOT with open collector outputs
- 74 LS 14 – hex NOT with Schmitt Trigger inputs
- 74LS19 – NAND Schmitt Trigger, Totem Pole Output
- 74LS23 – 2x Four input NOR with Strobe
- 74LS25 – 2x Four input NOR with Strobe
- 74LS30 – 8-InpuT NAND Gate
- 74LS39 – 4x two input NAND, Open collector
Application of Logic Gates
The advantage of logic gate is based on the operation or their truth table. The logic gate circuit often found in switching circuit, communication system, computer system, safety thermostat, automatic watering system, light-activated burglar alarm and other electronics device. In ICs the logic gate finds an array.
Limitations of Logic Gates
Although Logic gates are of high popularity but it has some certain limitations:
- For a more complex system or circuit design, logic gate realization isn’t possible as it might be confusing to place them correctly and connect them.
- Circuits employing logic gate implementation consume more energy than acceptable.
- Logic circuits require battery power systems or portable power sources.