Decoder
The decoder is a combinational logic circuit that changes the binary information to 2^N output lines. Binary information is passed in the form of N input lines, and the output lines define the 2^N bit code for the binary information.
There are various types of decoders, some are mentioned below:
2 to 4 line decoder
In this, there are a total of three inputs and four outputs.
Truth Table:
Enable | Input | Output | ||||
E | A1 | A0 | Y3 | Y2 | Y1 | Y0 |
0 | X | X | 0 | 0 | 0 | 0 |
1 | 0 | 0 | 0 | 0 | 0 | 1 |
1 | 0 | 1 | 0 | 0 | 1 | 0 |
1 | 1 | 0 | 0 | 1 | 0 | 0 |
1 | 1 | 1 | 1 | 0 | 0 | 0 |
Logical Expression:
Y3=E.A1.A0
Y2=E.A1.A0‘
Y1=E.A1‘.A0
Y0=E.A1‘.A0‘
3 to 8 line decoder
It is also known as a binary to an octal decoder. In a 3 to 8 line decoder, there are a total of three inputs and eight outputs.
Truth Table:
Enable | Input | Output | |||||||||
E | A2 | A1 | A0 | Y7 | Y6 | Y5 | Y4 | Y3 | Y2 | Y1 | Y0 |
0 | X | X | X | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
1 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Logical expression:
Y0=A0′.A1′.A2′
Y1=A0.A1′.A2′
Y2=A0′.A1.A2′
Y3=A0.A1.A2′
Y4=A0′.A1′.A2
Y5=A0.A1′.A2
Y6=A0′.A1.A2
Y7=A0.A1.A2
Reference