Exp 4 CODE CONVERTERS
Exp 4 CODE CONVERTERS
– To design the code converter which converts 4-bit binary to gray code.
Apparatus:-
2 LED’s As Required
3 IC 7486 1 No
4 Bread Board 1 No
Circuit Diagram
B3 B2 B1 B0
1 2 4 5 9 10
3 6 8
G3 G2 G1 G0
Pin Diagram
VCC 14 (+5V)
1 13
2
12
3 11
4 10
5 9
6 8
7 GND
IC 7486
Theory:-
– A code converter is a combinational logic circuit that changes data presented in one type of binary
code to another type of binary code. A general block diagram of a code converter is shown in below
Fig.
Design Procedure
1. The block diagram of a 4-bit binary to gray code converter is shown in following figure. If has
four inputs (B3 B2 B1 B0) representing 4-bit binary numbers and four outputs (G3 G2 G1 G0)
representing 4-bit gray code.
Now the above expressions can be implemented using X-OR gates to yield the
desired code converter circuit shown in Fig 1(a).
Procedure:-
1. Connect the circuit diagram as shown in figure using IC7486.
2. Apply 5 volts for logic ‘1’ level and 0 volts for logic ‘0’ level at the
input terminals of the gate. Also apply +5V and GND of fixed dc
power supply as Vcc and ground at pins 14 and 7 of IC7486.
3. Apply inputs to the gate from the DC regulated power supply as per
the truth table.
4. Note down the outputs of the logic gate using multimeter or LED for
each combination of inputs.
5. Verify the observed values with corresponding values in the truth
table.
Truth table:-
Binary Code (Input) Gray Code(Output)
B3 B2 B1 B0 G3 G2 G1 G0
0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 1
0 0 1 0 0 0 1 1
0 0 1 1 0 0 1 0
0 1 0 0 0 1 1 0
0 1 0 1 0 1 1 1
0 1 1 0 0 1 0 1
0 1 1 1 0 1 0 0
1 0 0 0 1 1 0 0
1 0 0 1 1 1 0 1
1 0 1 0 1 1 1 1
1 0 1 1 1 1 1 0
1 1 0 0 1 0 1 0
1 1 0 1 1 0 1 1
1 1 1 0 1 0 0 1
1 1 1 1 1 0 0 0
Precautions:-
– The open circuit voltage of the power supply must be exactly 5 volts
– Correct components should be connected on the breadboard with proper polarities.
Result:-
Viva Questions