Decoder & Encoder
Decoder & Encoder
Decoder
• The combinational circuit that change the binary
information into 2N output lines is known as Decoders.
• The binary information is passed in the form of N input
lines.
• The output lines define the 2N-bit code for the binary
information.
• The Decoder performs the reverse operation of
the Encoder.
• At a time, only one input line is activated for simplicity.
• The produced 2N-bit output code is equivalent to the
binary information.
types of decoders
• 2 to 4 line decoder
In the 2 to 4 line decoder,
• there is a total of three inputs, i.e., A0, and A1 and E
• and four outputs, Y0, Y1, Y2, and Y3.
• For each combination of inputs, when the enable 'E' is set to 1,
one of these four outputs will be 1.
Block Diagram & Truth Table
Logic circuit
3 to 8 line decoder
• The 3 to 8 line decoder is also known as Binary to
Octal Decoder.
• In a 3 to 8 line decoder, there is a total of eight outputs,
i.e., Y0, Y1, Y2, Y3, Y4, Y5, Y6, and Y7
• and three inputs, i.e., A0, A1, and A2.
• This circuit has an enable input 'E'. Just like 2 to 4 line
decoder, when enable 'E' is set to 1, one of these 8
outputs will be 1
Block diagram and Truth table
4 to 16 line Decoder
• In the 4 to 16 line decoder, there is a total of 16
outputs, i.e., Y0, Y1, Y2,……, Y16 and four inputs, i.e., A0,
A1, A2, and A3.
Encoders
• The combinational circuits that change the binary
information into N output lines are known as Encoders.
• The binary information is passed in the form of 2N input
lines.
• The output lines define the N-bit code for the binary
information.
• The Encoder performs the reverse operation of
the Decoder.
Block Diagram
4 to 2 line Encoder
• there are total of four inputs, i.e., Y0, Y1, Y2, and Y3,
• and two outputs, i.e., A0 and A1.
• In 4-input lines, one input-line is set to true at a time to
get the respective binary code in the output side.
Block Diagram & Truth Table
8 to 3 line Encoder
• The 8 to 3 line Encoder is also known as Octal to
Binary Encoder.
• In 8 to 3 line encoder, there is a total of eight inputs,
i.e., Y0, Y1, Y2, Y3, Y4, Y5, Y6, and Y7
• and three outputs, i.e., A0, A1, and A2.
• In 8-input lines, one input-line is set to true at a time to
get the respective binary code in the output side.
Block Diagram
Decimal to BCD Encoder
• In 10 to 4 line encoder, there are total of ten inputs,
i.e., Y0, Y1, Y2, Y3, Y4, Y5, Y6, Y7, Y8, and Y9 and four
outputs, i.e., A0, A1, A2, and A3.
• In 10-input lines, one input-line is set to true at a time
to get the respective BCD code in the output side.
Decimal to BCD Encoder
Priority Encoder
• there are total of 4 inputs, i.e., Y0, Y1, Y2, and Y3, and two
outputs, i.e., A0 and A1.
• The Y3 has high and Y0 has low priority inputs.
• When more than one input is '1' at the same time, the
output will be the (binary) code corresponding to the
higher priority input.
Truth Table