Unit5 Encoder Decoder
Unit5 Encoder Decoder
An encoder is a combinational circuit encoding the information of 2n input lines to n output lines, thus producing the
binary equivalent of the input. It performs the opposite operation of a decoder which results in 2 n outputs from n
inputs. Thus, an encoder different from a decoder because of the output of an encoder is a binary code for 1-of-N
input.
If more than one input is active High, then the encoder produces an output, which may not be
the correct code. For example, if both Y3 and Y6 are ‘1’, then the encoder produces 111 at the
output. This is neither equivalent code corresponding to Y3, when it is ‘1’ nor the equivalent
code corresponding to Y6, when it is ‘1’.
So, to overcome these difficulties, we should assign priorities to each input of encoder. Then,
the output of encoder will be the binary code corresponding to the active High inputs, which
has higher priority. This encoder is called as priority encoder.
In addition to the two outputs x and y, the circuit has a third output designated by V; this is a
valid bit indicator that is set to 1 when one or more inputs are equal to 1. If all inputs are 0,
there is no valid input and V is equal to 0.
The other two outputs are not inspected when V equals 0 and are specified as don’t-care
conditions.
Parallel Decoder
BCD to Decimal
BCD to Seven Segment
A2 A1 A0 HIGH OUTPUT
0 0 0 Y0
0 0 1 Y1
0 1 0 Y2
0 1 1 Y3
1 0 0 Y4
1 0 1 Y5
1 1 0 Y6
1 1 1 Y7
A3 Y0
A2
A1
4:16
Decoder
Y15
A0
EN
Prepared and Delivered By: Pawandeep Kaur
4:16 Decoder using 3:8 Decoder