Professional Documents
Culture Documents
5 - Logic Gates
5 - Logic Gates
Logic Gates
Unique function
Function Expression
Timing Diagram
2
OUTCOMES
3
Digital Logic
Digital logic is the foundation not only for computing but also for many other
electronic devices and control system found in the almost every part of
modern life.
Digital electronics depends on just seven types of Logic Gate, connected
together with a minimum of additional components.
Combinations of Logic Gates then form circuits that can perform specific
tasks within the system.
Logic Gate
There are many ways that a number of Logic gates can be combined to
perform a specific task.
They may all work, but some combination will perform task better than others.
The main study of all these are to find the ways by which a logic circuit design
will minimize , made it more efficient and cheaper.
Logic Gates
Seven Basic Logic Gates:
Digital electronics relies on the actions of just seven types of Logic gates:
• AND
• OR
• NAND(Not AND)
• NOR
• XOR
• XNOR
• NOT
Logical AND Gate
In digital electronic there are several logical gates which work or operate on
different logical operations, say logical addition, logical multiplication.
AND Gate is a logical gate which is widely used having two or more inputs
and a single output.
This gate works or operates on logical multiplication rules.
An AND gate may have any number of inputs but only one output.
AND Gate
• 1 output
• 2 inputs
• 3 inputs
• 4 inputs
• Multiple inputs
AND Gate Function
A truth table is important component of designing the computer
circuit design, because it shows how a Circuit is working.
Logical Multiplication function:
AND Gate Timing Diagram
To check the output of a Gate at specific time of different inputs:
AND Gate Function
Enable/Disable Device
Counter counts when it receives pulses:
B1
A
Reset B8
Carry out
B ENB
Disable
Enable
OR Gate
t0 t1 t2 t3 t4 t5 t6
F
NOT Gate Application
1’s Complement:
1 1 0 0 1 0 1 0
0 0 1 1 0 1 0 1
Alternative Representation:
NAND Gate
1 2
NAND Gate Application
Device Failure Alarm:
Toxic fumes produced by the chemicals are removed from the ware house
and dispersed in the atmosphere through three exhaust fans.
When all fans are working the input to the NAND gate is 111 and the output
is 0.
When any one fan fails the output of NAND gate becomes 1 sounding an
alarm connected tot the output of the NAND gate.
ALARM
NOR Gate
• 1 output
• 2 inputs
• 3 inputs
• 4 inputs
• Multiple inputs
NOR Gate:
NOR Gate Function
NOT-OR function:
NOR Gate Timing Diagram
To check the output of a Gate at specific time of different inputs:
Application of NOR Gate:
XOR Gate( 1’s are odd then 1)
An XOR gate (Exclusive OR gate) is a digital logic gate that performs an exclusive OR operation
on two or more binary inputs.
XOR Gate Truth Table:
Input A Input B Output
0 0 0
0 1 1
1 0 1
1 1 0
XOR gate is a fundamental logic gate that produces an output of 1 when the number of high
inputs 1 is odd, and it produces an output of 0 when the number of high inputs is even.
XOR is a crucial component in digital logic circuits and has various applications in electronics
and computer systems.
34
Three-Input XOR Gate (odds 1’s gave 1)
Three-Input XOR Gate Truth Table:
In a three-input XOR gate, the output is high (1) when the number of high inputs (1) is odd. In other words, the
output is 1 if the number of 1s in the inputs is an odd number; otherwise, the output is 0.
Input A Input B Input C Output
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 1
35
XOR Symbol
36
XNOR Gate (same inputs then 1)
How XNOR Gate Output Is Determined:
The XNOR gate performs an exclusive NOR operation, which means its output is high (1) when even numbers of
inputs are at a high level.
37
Three-Input XNOR Gate Truth Table
In a three-input XNOR gate, the output is high (1) when even numbers of inputs are at a high level.
OUTPUT = A⊙B⊙C
38
XNOR Symbol
39
Thank You…!