Digital

# Digital Logic Gates # 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;

 Symbol Truth Table 2-input AND Digital Logic Gate B A Q 0 0 0 0 1 0 1 0 0 1 1 1 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.

 Symbol Truth Table B A Q 0 0 0 0 1 1 1 0 1 1 1 1 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;

 Symbol Truth Table B A Q 0 0 1 0 1 1 1 0 1 1 1 0 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:

 Symbol Truth Table B A Q 0 0 1 0 1 0 1 0 0 1 1 0 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

 Symbol Truth Table B A Q 0 0 0 0 1 1 1 0 1 1 1 0 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;

 Symbol Truth Table B A Q 0 0 1 0 1 0 1 0 0 1 1 1 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:

 Symbol Truth Table A Q 0 0 1 1 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:

 Symbol Truth Table A Q 0 1 1 0 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.

## 74LS series

It is the low power schottky diode TTL circuit. It has fast switching and power consumption is more than other logic families.

## 74HC series

It is a high switching speed IC and it belongs to CMOS family. It consumes low power.

## 74HCT series

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

1. 74LS00 –NAND Gate
2. 74LS01 –NAND Gate with Open Collector Outputs
3. 74LS02 –NOR Gate
4. 74LS03 – NAND Gate with open collector outputs
5.  74LS08 – AND Gate
6. 74LS09 – AND Gate with open collector outputs
7. 74LS32 – OR Gate
8. 74LS132 – NAND Gate with Schmitt trigger inputs
9. 74LS37, 74LS32, 74LS28 – NOR Gates
10. 74LS26 – NAND Gate, OC (15V)
11. 74LS28 – NAND Gate with OC (15V)
12. 74LS33 – NOR Gate with Open Collector Outputs
13. 74LS38 – NOR Gate with Open Collector Outputs
14. 74LS38 – NAND Gate with Open Collector Outputs

## Triple 3-input gates

1. 74 LS 10 – NAND
2. 74 LS 11 – AND
3. 74 LS 12 – NAND with open collector outputs
4. 74 LS 27 – NOR
5. 74LS15  –   AND Gate with Open Collector Outputs

## Dual 4-input gates

1. 74LS13 – NAND Schmitt Triggers
2. 74 LS 20 – NAND
3. 74 LS 21 – AND with Open Collector Outputs
4. 74LS22 – NAND Gate with Open Collector Outputs
5. 74LS40 – NAND Gates
6. 74LS30 – 8 input NAND gate

## Hex NOT gates

1. 74 LS 04 – hex NOT
2. 74 LS 05 – hex NOT with open collector outputs
3. 74 LS 14 – hex NOT with Schmitt Trigger inputs
4. 74LS19 – NAND Schmitt Trigger, Totem Pole Output
5. 74LS23 – 2x Four input NOR with Strobe
6. 74LS25 – 2x Four input NOR with Strobe
7. 74LS30 – 8-InpuT NAND Gate
8. 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:

1. 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.
2. Circuits employing logic gate implementation consume more energy than acceptable.
3. Logic circuits require battery power systems or portable power sources.