You are on page 1of 4

Experiment No.

8
STUDY OF LINE ENCODER

OBJECTIVE
 Designing Binary Code Decimal encoder, its understanding and its analysis.
 Designing of octal to binary encoder and decimal to binary encoder .

EQUIPMENT
 2 resisters 1K ohm
 Connecting wires

COMPONENTs
 IC Type 7432 Quadruple 2-input OR gates

THEORY
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 a 2n-to-n binary encoder, where it has only one of 2n inputs = 1 and the
output is the n-bit binary number corresponding to the active input.
Octal-to-Binary take 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.
For an 8-to-3 binary encoder with inputs D0-D7 the logic expressions of the outputs A0-A2.
A0 = D1 + D3 + D5 + D7
A1 = D2 + D3 + D6 + D7
A2 = D4 + D5 + D6 + D7
Decimal-to-Binary take 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-to-4 binary encoder with inputs D0-D9 the logic expressions of the outputs A0-A3
A3 = D8 + D9
A2 = D4 + D5 + D6 + D7
A1 = D2 + D3 + D6 + D7
A0 = D1 + D3 + D5 + D7 + D9

Digital Logic Design Lab Manual 32


CONNECTION DIAGRAM

Figure 8.1 Equivalent Circuit of 4 input OR-Gate

Figure 8.2 Equivalent Circuit of 5 inputs OR-Gate

Figure 8.3 Octal to Binary Encoder

Digital Logic Design Lab Manual 33


Figure 8.4 Decimal to BCD Encoder

PROCEDURE

1.Connect the Trainer to the 220V AC supply.


2. Verify all gates of 74LS32.
3.For octal to binary encoder make connections as shown in figure 8.3 and verify the table
8.1.
4.For decimal to BCD encoder make connections as shown in figure 8.4 and verify the table
8.2.
5.As 4 input OR gate is used in figure 8.1 so to make 4 input OR gate with the help of 2
input OR gate follow the figure 8.1.
6.As 5 input OR gate is used in figure 8.2 so to make 5 input OR gate with the help of 2
input OR gate follow the figure 8.1.

Digital Logic Design Lab Manual 34


RESULTS & CALCULATIONS

Decimal Input Output


Digit D0 D1 D2 D3 D4 D5 D6 D7 A2 A1 A0
0 1 0 0 0 0 0 0 0 0 0 0
1 0 1 0 0 0 0 0 0 0 0 1
2 0 0 1 0 0 0 0 0 0 1 0
3 0 0 0 1 0 0 0 0 0 1 1
4 0 0 0 0 1 0 0 0 1 0 0
5 0 0 0 0 0 1 0 0 1 0 1
6 0 0 0 0 0 0 1 0 1 1 0
7 0 0 0 0 0 0 0 1 1 1 1

Table 8.1

Decimal Input BCD Code (output)


Digit 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

Table 8.2

CONCLUSION
1. -------------------------------------------------------------------------------------------
2. -------------------------------------------------------------------------------------------
3. --------------------------------------------------------------------------------------------

Answer the following questions:


1. What is the role of an encoder in communication?
2. What is the advantage of using an encoder?

Digital Logic Design Lab Manual 35

You might also like