Jashore University of Science and Technology
Dept. of Electrical and Electronic Engineering
Course code: EEE 3104
Course Title: Digital Electronics and Logic Design Sessional
Experiment no. 05
Implementation and verification of Encoder and Decoder Using Logic Gate
Submitted to Submitted by
Md. Al- Amin, Name: RIFAT TANBHIR
Lecturer, Roll No: 181117
Md. Mustafizur Rahman, 3rd Year 1st Semester
Assistant professor, Session: 2018-2019
Department of Electrical and Electronic Dept. of Electrical and Electronic
Engineering Engineering
Jashore University of Science and Jashore University of Science and
Technology Technology.
Remarks
Experiment No: 05
Experiment Name: Implementation and verification of Encoder and Decoder Using Logic
Gate
Objectives: The objectives of this experiment are-
1. To understand the working principle of encoder and decoder circuits.
2. To design and implement an encoder circuit using logic gates.
3. To design and implement a decoder circuit using logic gates.
4. To verify the functionality of the encoder and decoder circuits through simulation and
testing.
Introduction: In digital electronics, an encoder is a device used to convert a set of signals into a
code, while a decoder is a device that performs the reverse operation of an encoder. Both encoder
and decoder circuits are commonly used in digital communication systems, such as data
transmission and error detection.
An encoder circuit receives multiple inputs and converts them into a single output, which is a
binary code. There are different types of encoder circuits, including Priority encoders, Decimal to
binary encoders, and Gray code encoders. In this experiment, we will be implementing a 4-to-2
line encoder circuit using logic gates.
The Boolean function of 8 × 3 Encoder:
X = D4 + D5 + D6 + D7
Y = D2 +D3 + D6 + D7
Z = D1 + D3 + D5 + D7
A decoder circuit, on the other hand, receives a binary code as input and converts it into a set of
signals or outputs. There are different types of decoder circuits, including Binary to Decimal
decoders, BCD decoders, and 7-segment decoders. In this experiment, we will be implementing a
2-to-4 line decoder circuit using logic gates.
The Boolean function of Decoder:
D0 = X’ Y’ Z’
D1 = X’ Y’ Z
D2 = X’ Y Z’
D3 = X’ Y Z
D4 = X Y’ Z’
D5 = X Y’ Z
D6 = X Y Z’
D7 = X Y Z
Apparatus: Necessary equipment for the experiment is:
SL. Name of equipment Rating Quantity
no
1 IC7404 VCC: 4.75 V to 5.25 V 1
Output current: 40 mA
Power dissipation: 500 mW
2 IC7408 VCC: 4.75 V to 5.25 V 2
Output current: 40 mA
Power dissipation: 500 mW
3 IC7432 VCC: 4.75 V to 5.25 V 1
Output current: 40 mA
Power dissipation: 500 mW
4 Resistors (220 Ω) .25 Watts 1
5 LED Maximum Forward Current: 30mA 1
Maximum Reverse Voltage: 6V
Forward Voltage: 1.9V~2.6V (IF=20mA)
Reverse Current: 5uA
6 DC Power Supply 0 – 15 V 1
7 Bread Board - 1
8 Connecting Wires - As
Required
Circuit Diagram with Truth Table:
Encoder:
Fig. 5(a): Circuit Diagram of Encoder
D7 D6 D5 D4 D3 D2 D1 D0 X Y Z
0 0 0 0 0 0 0 1 0 0 0
0 0 0 0 0 0 1 0 0 0 1
0 0 0 0 0 1 0 0 0 1 0
0 0 0 0 1 0 0 0 0 1 1
0 0 0 1 0 0 0 0 1 0 0
0 0 1 0 0 0 0 0 1 0 1
0 1 0 0 0 0 0 0 1 1 0
1 0 0 0 0 0 0 0 1 1 1
Fig. 5(b): Truth Table of Encoder
Decoder:
Fig.5(c): Circuit diagram of Decoder
X Y Z D0 D1 D2 D3 D4 D5 D6 D7
0 0 0 0 0 0 0 0 0 0 0
0 0 1 0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0 0 0 0
0 1 1 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0
1 0 1 0 0 0 0 0 0 0 0
1 1 0 0 0 0 0 0 0 0 0
1 1 1 0 0 0 0 0 0 0 0
Fig. 5(d): Truth Table of Decoder
Conclusion: The experiment successfully implemented and verified the working of an Encoder
and Decoder circuit using logic gates. The truth tables for both circuits were verified, and the
outputs were observed using an oscilloscope. The experiment helped to understand the working of
Encoder and Decoder circuits and their practical applications in digital communication systems.
The importance of accuracy and safety in conducting experiments was also emphasized in the lab
report.