Decoder
▪ In an enabled high decoder, when E = 0 no output is active
when E = 1 the selected output is
active
2 to 4 Line Decoder
✔ From the Truth Table it is clear that each output is “1” for only specific
combination of inputs.
BOOLEAN EXPRESSION
From Truth Table
D0 = A’B’ D1 =
A’B
D2 = D3 = AB
AB’
LOGIC
DIAGRAM
3 to 8 Line Decoder
• Block diagram
From the Truth Table it is clear that each output is “1” for only specific combination of inputs.
ENCODER
⮚ An encoder is a combinational circuit
⮚ It converts binary information in the form of a 2N input
lines into N output lines, which represent N bit code for
the input.
⮚ For simple encoders, it is assumed that only one input
line is active at a time.
⮚ Encoder performs the inverse operation of Decoder.
⮚ The difference between Decoder and Encoder is that
Decoder has Binary Code as an input while Encoder has
Binary Code as an output.
4 to 2 Encoder
⮚ 4 to 2 Encoder has four inputs Y3, Y2, Y1 & Y0 and two outputs A1 & A0.
⮚ At any time, only one of these 4 inputs can be ‘1’ in order to
get the respective binary code at the output.
⮚ The block diagram of 4 to 2 Encoder is shown in the following figure.
Block Diagram Truth Table
⮚ From the Truth Table,
A1 = Y2+Y3
A0 = Y1+Y3
Logic diagram of 4 to 2
Encoder
8 to 3 Encoder
⮚ It has eight inputs, D7 to D0 and
three outputs X, Y & Z.
⮚ It is also known as Octal to
Binary Encoder
⮚ At any time, only one of these
eight inputs can be ‘1’ in order to
get the respective binary code.
⮚ Each input corresponds to each
octal digit and output generates
corresponding Binary Code.
Truth table of octal to binary encoder
X=D4+D5+D6+D7
Y=D2+D3+D6+D7
Z=D1+D3+D5+D7
LOGIC DIAGRAM: