EXPERIMENT NO:3
AIM: IMPLEMENTATION AND VERIFICATION OF ENCODER USING LOGIC
GATES.
APPARATUS REQUIRED: IC 7447, IC 74139 and connecting leads.
BRIEF THEORY:
An encoder is a digital combinational circuit that converts a human friendly information into a
coded format for processing using machines. In simple words, an encoder converts a piece of
information normal form to coded form. This process is called encoding.
Encoders are crucial components in various digital electronics applications such as data
transmission, controlling and automation, communication, signal processing, etc.
An encoder consists of a certain number of input and output lines. Where, an encoder can have
maximum of "2n" input lines whereas "n" output lines. Hence, an encoder encodes information
represented by "2n" input lines with "n" bits.
The block diagram of an encoder is shown in the following figure −
4 to 2 Encoder:
A 4 to 2 Encoder is a type of encoder which has 4 (22) input lines and 2 output lines. It produces
an output code (i.e., convert input information in a 2-bit format) depending on the combination
of input lines.
The block diagram of a 4 to 2 Encoder is shown in the following figure.
4 to 2 Encoder
The working of a 4 to 2 Encoder for different input combinations is described in the following
truth table −
EN Inputs Outputs
I3 I2 I1 I0 Y1 Y0
0 0 0 0 1 0 0
0 0 0 1 0 0 1
0 0 1 0 0 1 0
0 1 0 0 0 1 1
1 X X X X 1 1
PROCEDURE:
1. Switch ON the trainer.
2. Give logic I/P to I0 to I3 & EN through slide switches.
3. Observe the output at Q0 and Q1 on the kit through LED.
4. For different combination of inputs observe the outputs and match them with truth
table.
RESULT: Encoder have been studied and verified.
PRECAUTIONS:
1) Make the connections according to the IC pin diagram.
2) The connections should be tight.
3) The Vcc and ground should be applied carefully at the specified pin only.