Exp 10
Exp 10
Reg.no:L1F21BSME0017
EXPERIMENT #10
EQUIPMENT:
1. Advanced Digital Logic Trainer
2. Connecting Wires
3. IC Type 7432 Quadruple 2- input OR gate
INTRODUCTION:
An encoder is a combinational circuit that performs the inverse operation of a decoder. If a
device output code has fewer bits than the input code has, the device is usually called an
encoder e.g. 2n – to -n, priority encoders.
The simplest encoder is 2n – to –n binary encoder, where it has only one of the 2n inputs =1
and the output is the n-bit binary number corresponding to the active input.
Octal to binary encoder takes 8 inputs and provides 3 outputs, thus doing the opposite of what
the 3-to-8 decoder does. At any one time, only one input line has a value of 1.
Decimal to binary encoder takes 10 inputs and provides 4 outputs, thus doing the opposite of
what the 4-to- 10 decoder does. At any one time, only one input line has a value of 1.
For 10-4 decimal to BCD encoder with inputs D0-D9 the logic expressions of the outputs
A0A3 will be as given below:
A3 = D8 + D9 A2 = D4 + D5 + D6 + D7 A1 = D2 + D3 + D6 + D7
A0 = D1 + D3 + D5 + D7 + D9
Decimal Decimal Code Inputs BCD Code
Digits Outputs
D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 A3 A2 A1 A0
0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 1 0 0 0 0 0 0 0 0 0 0 0 1
2 0 0 1 0 0 0 0 0 0 0 0 0 1 0
3 0 0 0 1 0 0 0 0 0 0 0 0 1 1
4 0 0 0 0 1 0 0 0 0 0 0 1 0 0
5 0 0 0 0 0 1 0 0 0 0 0 1 0 1
6 0 0 0 0 0 0 1 0 0 0 0 1 1 0
7 0 0 0 0 0 0 0 1 0 0 0 1 1 1
8 0 0 0 0 0 0 0 0 1 0 1 0 0 0
9 0 0 0 0 0 0 0 0 0 1 1 0 0 1
PROCEDURE:
1. Connect the Advance Digital Logic Trainer to the 220V AC supply.
2. Verify all gates of 74LS32 ICs.
3. For Octal to Binary encoder, make connections as shown in figure 1 and verify the
table
1.
4. As 4 input OR gate is used in figure 1 so to make 4 inputs OR gate with the help of 2
inputs OR gate follow the figure below.
5. For Decimal to BCD encoder make connections as shown in figure 2 and verify the
table
6. As 5 input OR gate is used in figure 2 so to make 5 input OR gate with the help of 2
D0 D1 D2 D3 A1 A0
0 0 0 1 0 0
0 0 1 0 0 1
0 1 0 0 1 0
1 0 0 0 1 1
The experiment on designing and implementing a Decimal to Binary Encoder was successful,
demonstrating the ability to convert decimal inputs (0-9) into their respective 4-bit binary
representations using combinational logic circuits comprising AND and OR gates. The
encoder accurately mapped each decimal digit to a unique binary code, ensuring reliable and
instantaneous conversion with minimal delay. Practical implementation on simulation software
or breadboards affirmed the functionality and scalability of the design, highlighting its
relevance in digital systems for tasks such as data processing and arithmetic operations. This
experiment enhanced understanding of binary encoding principles and underscored the
practical application of digital logic in converting numerical data between different formats
efficiently and accurately.
Task:
After going through questions and answers related to the experiment, submit a separate report
which should include the analysis of the results of the experiment .
Date: _______________________