Logic Gates
Logic Gates
Analogue Signal
Digital Signal
There are seven basic logic gates: NOT,AND, OR,NAND, NOR,XOR and XNOR.
NOT OR AN
GAT GAT
E D
E GAT
E
Did you know? ?
Logic gates allow the computer to do things Logic !
such as add, divide, multiply, do simple yes
and no reasoning in certain situations along
with other things.
AND Gate
Supply
=0 =0
Switch is open Switch is open Lamp
1 0 0
The AND logic gate can also be
0 1 0 represented by a truth table.
1 1 1
Truth table
Logic gates
AND Gate
Here is how we can represent an AND LOGIC GATE using Boolean algebra.
X .Y = Q
(where ‘.’ sign represents an ‘AND’ logic gate)
Logic gates
OR Gate
Here is an electrical Supply =0
diagram representing two Switch is
switches acting in parallel open
together.
Switch is
open Lamp
Input Input Output
=0
0 0 0
1 0 1
The switch states can be
0 1 1 represented by a truth table.
Logic gates
OR Gate
X + Y = Q
(where ‘+’ sign represents an ‘OR’ logic gate)
Logic gates
NOT Gate
=0 =1
X X
Invertor
1 0
Logic gates
Here are the two states represented by
NOT Gate an electrical diagram.
Lamp
=0 =1
Supply
X X
Invertor
Lamp
=1 =0
Supply
X X
Invertor
Logic gates
NOT Gate
X = X
(where ‘ ’sign represents a ‘NOT’ logic gate)
Logic gates
Summary
This is the notation for AND, OR and NOT gates described below:
Logic gates
AND gate NOT gate NAND gate
NAND Gate + =
Supply
Lamp
=0 =0
Switch one Switch two Invertor
0 1 1
The NAND gate can also be
1 1 0 represented by a truth table.
Truth table
Logic gates
NAND Gate
Here is how we can represent a NAND GATE using Boolean algebra.
X .Y = Q
(where ‘.’ and ‘ ’sign represents a ‘NAND’ logic gate)
Logic gates
OR gate NOT gate NOR gate
NOR Gate + =
1 1 0
Truth table
Logic gates
NOR Gate
Here is how we can represent an NOR GATE using Boolean algebra.
X + Y = Q
(where ‘+’ sign and ‘ ’ represents a ‘NOR’ logic gate)
Logic gates
XOR Gate
1 1 0
Truth table Switch is open
Logic gates
XOR Gate
X + Y = Q
(where ‘ ’ sign represents a ‘XOR’ logic gate)
Logic gates
Summary
This is the notation for AND, OR and NOT gates described below:
Logic gates
XNOR Gate
XNOR is a digital logic gate whose function is
Here is an electrical the logical complement of the exclusive OR
diagram representing gate (XOR gate). Logically, an XNOR gate is a
two switches acting in NOT gate followed by an XOR gate.
a cross over formation.
1 1 1
Truth table Switch is open
Logic gates
Summary
This is the notation for AND, OR and NOT gates described below:
OR Logic Gate
NOT Logic Gate
Logic gates