Experiment # 10: Decoder
Experiment # 10: Decoder
EXPERIMENT # 10
Apparatus: 74139, 7400 IC’s, Bread Board, LEDs and connecting wires
Decoder :
n 2n.
n = No. of input lines.
2n = No. of outputs of a Decoder.
Decoder is a circuit that convert binary information from n-input lines to max of 2 n output
lines e.g. if we have 2 inputs i.e. x,y then there will be 4 output of a Decoder and size of
Decoder will be 2x4.
d0
output lines
x
2X4 d1
y DEC O DER d2
d3
x y E d0 d1 d2 d3
0 0 1 1 0 0 0
0 1 1 0 1 0 0
1 0 1 0 0 1 0
1 1 1 0 0 0 1
Implementation
x y
x' y'
d0 = x' y'
(T o L E D )
d 1 = x' y
(T o L E D )
d 2= x y '
(T o L E D )
d 3= x y
(T o L E D )
i/p’s o/p’s
x y SHA CHA
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
i/p’s o/p’s
x y d0 d1 d2 d3
0 0 1 0 0 0
0 1 0 1 0 0
1 0 0 0 1 0
1 1 0 0 0 1
x
d1
2X4 S HA
DECODER
d2
y
d3 = C HA
Note:
By connecting an OR gate with output Pin 1 & 2 of 2X4 Decoder. Half Adder can be implemented with 2X4
decoder. Similarly by connecting two Half Adders, we can form a Full Adder by using 2, 2X4 Decoder IC’s.
Using the concept of implementation of Half Adder with 2X4 Decoder, we can implement Full Adder
with 2, 2 X 4 Decoders.
d o d o
open open
x
d 1
d 1
2X4 S FA =x+y+z
2X4
DECO DER
d 2 S H A =x+y DECO DER d 2
y Z
d 3 d 3 = C FA
= C H A C FA
+5 V
1 VCC 16
E
2 15
x E S = x+y
Data i/p
H A
lines
74LS139
y 3 14
Data i/p
lines
4 13
open d 0 z
5 12
d 1 d 0 open
o/p lines
Data o/p
6 11
d d
data
lines
2 1
S H A =x+y 7
d3 d 2 10
8
G ND d 3
9 (C x+y+z )' S FA =x+y+z
C FA
(C x+y )'
P in C o n fig u r a tio n o f 7 4 L S 1 3 9 (2 , 2 X 4 D E C O D E R )