DECODER AND ENCODER
BVRIT HYDERABAD College of Engineering for Women
Department of Electronics and Communication Engineering
(Approved by AICTE, New Delhi, Affiliated to JNTUH Hyderabad)
Accredited by NBA | NAAC with Grade “A”
Decoder
■ It is a combinational circuit that converts n lines of input into 2n lines
of output.
Block Diagram
3 to 8 line Decoder-Truth Table
Logic diagram
D0 is high when X = 0, Y = 0 and Z = 0. Hence,
D0 = X’ Y’ Z’
D1 = X’ Y’
Z D2 = X’ Y
Z’ D3 = X’
Y Z D4 = X
Y’ Z’ D5 =
X Y’ Z D6 =
X Y Z’ D7 =
X Y Z
Encoder
■ An encoder is a combinational circuit that 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.
Octal to Binary
Encoder
8x3 Encoder – Truth table
The output is 000 when
D0 is active;
001 when D1 is active;
010 when D2 is active
and so on
Logic Diagram
The output line Z is active when
the input octal digit is 1, 3, 5 or
7.
Similarly, Y is 1 when input octal
digit is 2, 3, 6 or 7 and X is 1 for
input octal digits 4, 5, 6 or 7.
Boolean functions are:
X = D4+D5+D6+D7
Y = D3+D3+D6+D7
Z = D1+D3+D5+D7
Priority Encoder
■ A priority encoder is an encoder circuit in which inputs are given
priorities.
■ When more than one inputs are active at the same time, the input
with higher priority takes precedence and the output corresponding to
that is generated.
4 to 2 Priority Encoder
The condition for valid
bit to be 1 is that at
least any one of the
inputs should be high.
Hence,
V = D0 + D1 + D2 +
D3
Logic Diagram
THANK YOU
Prepared by:
Mrs. [Link]
Assistant Professor
Department of Electronics and Communication Engineering
BVRIT HYDERABAD College of Engineering for Women