0% found this document useful (0 votes)
257 views8 pages

Exp 4 CODE CONVERTERS

This document describes the design of a circuit to convert a 4-bit binary code to a 4-bit gray code. The circuit uses a 7486 IC and includes binary to gray code truth table, logic expressions derived from the truth table, a circuit diagram, testing procedures, and sample viva questions. The design procedure involves deriving the logic expressions for each gray code output from the truth table, implementing the expressions using XOR gates, building the circuit on a breadboard, applying test inputs, and verifying the output matches the truth table. The aim is to successfully design a binary to gray code converter circuit.

Uploaded by

kishorebab
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
257 views8 pages

Exp 4 CODE CONVERTERS

This document describes the design of a circuit to convert a 4-bit binary code to a 4-bit gray code. The circuit uses a 7486 IC and includes binary to gray code truth table, logic expressions derived from the truth table, a circuit diagram, testing procedures, and sample viva questions. The design procedure involves deriving the logic expressions for each gray code output from the truth table, implementing the expressions using XOR gates, building the circuit on a breadboard, applying test inputs, and verifying the output matches the truth table. The aim is to successfully design a binary to gray code converter circuit.

Uploaded by

kishorebab
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Design of Code Converter

 Aim of the experiment :-

– To design the code converter which converts 4-bit binary to gray code.

 Apparatus:-

S.No Apparatus/Component Range/ Number Quantity


1 Fixed DC power supply 5V 1 No

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.

2. Truth table for binary to gray code converters is tabulated in Table-1.


3. From the truth table, the logic expressions for the gray code outputs can be written as
a) G3 = ∑ (8, 9, 10, 11, 12, 13, 14, 15)
b) G2 = ∑ (4, 5, 6, 7, 8, 9, 10, 11)
c) G1 = ∑ (2, 3, 4, 5, 10, 11, 12, 13)
d) G0 = ∑ (1, 2, 5, 6, 9, 10, 13, 14)
4. The above expressions can be simplified using K-map
Design Procedure continued

Map for G2:


Map for G3:
From the two quads, we get
From the octet, we get G2 = B3' B2 + B3 B2'
G3 = B3 = B3 Å B2.

Map for G1: Map for G0:


From the two quads, we get From the two quads, we get
G1 = B2 B1' + B2' B1 G0 = B1'B0 + B1B0'
= B2 Å B1 = B1 Å B0

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:-

– Binary to gray code converter designed and verified.

 Viva Questions

– What is the advantage of Gray code?


– What is meant by distance in cyclic codes?
– What is the Classification of the binary codes?
– What is meant by error detecting and correcting codes?
– Represent decimal digits from 0 to 9 by using Excess-3 code.
– What is meant by Self complementing BCD codes?
– What are the character codes?
– Design the circuit which converts from ----------- code to --------- code

You might also like