You are on page 1of 4

DESIGN AND IMPLEMENTATION OF ENCODERS

(a) 8 to 3 encoder using Logic Gates & b) Decimal to BCD encoder using IC 74147 AIM: To design and implement (a) 8 to 3 encoder using Logic Gates & (b) Decimal to BCD encoder using IC 74147 and verify their truth table. EQUIPMENTS & COMPONENTS REQUIRED: Sl. No. 1 2 3 Equipments & Components Digital IC Trainer Kit ICs 7432, 74147 Connecting wires Quantity 1 3, 1 respectively As Required

THEORY: An encoder is a combinational circuit that converts active input signal into a coded output signal. It has 2n (or fewer) input lines, only one of which is active at any time and n output lines. Here we implement 8 to 3 encoder which is an example for octal to binary encoder. It has 3 outputs, one for each of the octal digits. It is assumed that only one input has a value of 1 at a time otherwise ambiguity occurs and there is no meaning for the circuit. IC 74147 is a Decimal to BCD priority encoder. When all inputs are HIGH, all the outputs are HIGH (i.e., 1111) which is the inverse of 0000, the BCD code for 0. Since there is no X0 input, the encoder assumes this as the decimal 0 condition. When X1 is LOW, the ABCD output is 1110, which is inverse of 0001, the BCD of 1. Similarly, when X9 is LOW, the ABCD output is 0110, which is inverse of 1001, the BCD of 9. Here the priority is given to the input with higher subscript value. The pin diagram of IC 74147 is as shown in figure.

PROCEDURE: 1. 2. 3. 4. Test all the ICs manually/ using IC tester. Connect VCC and the ground. Connect the appropriate pins to the input and output LEDs and switches. Give various combinations of the inputs and verify the truth table.

PIN DIAGRAM, TRUTH TABLE & LOGIC DIAGRAM: , 8 to 3 encoder using Logic Gates: Inputs D3 D4 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 Outputs Y 0 0 1 1 0 0 1 1

D0 1 0 0 0 0 0 0 0

D1 0 1 0 0 0 0 0 0

D2 0 0 1 0 0 0 0 0

D5 0 0 0 0 0 1 0 0

D6 0 0 0 0 0 0 1 0

D7 0 0 0 0 0 0 0 1

X 0 0 0 0 1 1 1 1

Z 0 1 0 1 0 1 0 1

Boolean Expression for the outputs are, X = D4 + D5 + D6 + D7 Y = D2 + D3 + D6 + D7 Z = D1 + D3 + D5 + D7

Figure. Logic diagram for 8 to 3 encoder using Logic gates .

Decimal to BCD Encoder: IC 7414 47: PIN DIAGRAM FOR IC 74147:

Figure. Connection diagram for Decimal to BCD Encoder using IC 74147 74

Truth Table: Inputs X5 1 1 1 1 1 0 x x x x Outputs B C 1 1 1 1 1 0 1 0 0 1 0 1 0 0 0 0 1 1 1 1

X1 1 0 x x x x x x x x

X2 1 1 0 x x x x x x x

X3 1 1 1 0 x x x x x x

X4 1 1 1 1 0 x x x x x

X6 1 1 1 1 1 1 0 x x x

X7 1 1 1 1 1 1 1 0 x x

X8 1 1 1 1 1 1 1 1 0 x

X9 1 1 1 1 1 1 1 1 1 0

A 1 1 1 1 1 1 1 1 0 0

D 1 0 1 0 1 0 1 0 1 0

RESULT:

You might also like