5.encoder & Decoder
5.encoder & Decoder
ENCODER AND DECODER A decoder is a multiple input multiple output logic circuit
which converts coded input into coded output where input and
AIM: output codes are different. The input code generally has fewer
To design and implement encoder and decoder using logic gates.
bits than the output code. Each input code word produces a
APPARATUS REQUIRED: different output code word i.e there is one to one mapping can
4. IC TRAINER KIT - 1
As TRUTH TABLE FOR ENCODER:
5. PATCH CORDS - required
INPUT OUTPUT
Y0 Y1 Y2 Y3 Y4 Y5 Y6 Y7 A B C
1 0 0 0 0 0 0 0 0 0 0
THEORY: 0 1 0 0 0 0 0 0 0 0 1
ENCODER: 0 0 1 0 0 0 0 0 0 1 0
An encoder is a digital circuit that performs inverse
n
0 0 0 1 0 0 0 0 0 1 1
operation of a decoder. An encoder has 2 input lines and n
0 0 0 0 1 0 0 0 1 0 0
output lines. In encoder the output lines generates the binary
0 0 0 0 0 1 0 0 1 0 1
code corresponding to the input value. In octal to binary
0 0 0 0 0 0 1 0 1 1 0
encoder it has eight inputs, one for each octal digit and three
0 0 0 0 0 0 0 1 1 1 1
output that generate the corresponding binary code. In encoder
it is assumed that only one input has a value of one at any
given time otherwise the circuit is meaningless. It has an
ambiguity that when all inputs are zero the outputs are zero.
The zero outputs can also be generated when D0 = 1.
LOGIC DIAGRAM OF 8 to 3 ENCODER: LOGIC DIAGRAM FOR DECODER:
PROCEDURE:
(i) Connections are given as per circuit diagram.
TRUTH TABLE 2 TO 4 DECODER: (ii) Logical inputs are given as per circuit diagram.
(iii) Observe the output and verify the truth table.
INPUT OUTPUT
E A B D0 D1 D2 D3
1 0 0 1 1 1 1
0 0 0 0 1 1 1
0 0 1 1 0 1 1 RESULT:
0 1 0 1 1 0 1 Thus the design and implementation of encoder and decoder
using logic gates is done.
0 1 1 1 1 1 0