Decoders and Encoders
Decoders and Encoders
Decoders
&
Encoders
2. Theory:
Decoders:
A decoder is a logic circuit that will detect the presence of a specific binary number
or word. The input to the decoder is a parallel binary number and the output is a
binary signal that indicates the presence or absence of that specific number.
It is a combinational circuit that converts binary information from n input lines to a
maximum of 2n unique output lines.
2-to-4 decoder:
Inputs Outputs
B A F1 F2 F3 F4
0 0 1 0 0 0
0 1 0 1 0 0
1 0 0 0 1 0
1 1 0 0 0 1
o F1 = A.B.
o F2 = A.B.
o F3 = A.B.
o F4 = A.B.
1
3-to-8 decoder:
Example:
Implement the following truth table using a decoder and OR gate.
Inputs Output
A B C F
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
Solution:
F (A,B,C) = ∑(1,2,4,7)
2
BCD-to-Seven Segment decoder:
A seven segment LED display contains 7 LEDs. Each LED is called a segment
and they are identified as (a, b, c, d, e, f, g) segments.
3
Encoders:
4
3. Lab Work:
Part 1:
5
Part 2
4. Exercises:
1) Draw 3-to-8 decoder block without enable. Then find the truth table.
2) Design 3-to-8 decoder using tow 2-to-4 decoders with enables. Then find the truth
table.
☺
6