Decoder and Encoder
Decoder and Encoder
ENCODER
MALINI SOMAN
ASSISTANT PROFESSOR
SGTU
• Binary code of N digits can be used to store 2N distinct elements of coded information.
This is what encoders and decoders are used for.
• Encoders convert 2N lines of input into a code of N bits and Decoders decode the N
bits into 2N lines.
• As seen from the truth table, the output is 000 when D0 is active; 001
when D1 is active; 010 when D2 is active and so on.
• Implementation
• From the truth table, 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. Hence, the Boolean
functions would be:
HENCE, THE ENCODER CAN BE REALISED
WITH OR GATES AS FOLLOWS:
One limitation of this encoder is that only one input can be active at
any given time
DECODERS