0% found this document useful (0 votes)
23 views5 pages

Exp 2 New

Uploaded by

sak.jadhav.21
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)
23 views5 pages

Exp 2 New

Uploaded by

sak.jadhav.21
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/ 5

Semester F.E.

Semester I
Subject FLC Lab
Subject Professor In- Prof. Kanchan Dhuri
charge
Assisting Teachers Ajit Ghadage/Kiran Hemale/Nikita Gharat
Laboratory M201/M414/Lab14

Student Name Nirmiti Sawant


Roll Number 24101C0064
Grade and Subject
Teacher’s Signature

Experimen 2
t Number
Title To design Binary to Gray & Gray to Binary code converter.
Resources Hardware: Software:
/ Logic Circuit Trainer Kit, TTL IC no. 7408, 7432, 7404, 7400, 7402, 7486, Logi Sim
Apparatus 74266 ICs , Connecting wires etc.
Required
Objectives
(Skill Set / In this experiment, student should understand the design of an electronic circuit to
Knowledge convert Binary to Gray code & Gray to Binary.
Tested /
Imparted)
Theory: Theory: Code is a symbolic representation of discrete information. Codes are of different
types. Gray Code is one of the most important codes. It is a non-weighted code which
belongs to a class of codes called minimum change codes. In this codes while traversing
from one step to another step only one bit in the code group changes. In case of Gray Code
two adjacent code numbers differs from each other by only one bit. The idea of it can be
cleared from the table given below. As this code it is not applicable in any types of
arithmetical operations but it has some applications in analog to digital converters and in
some input/output devices. Now let us concentrate on the table of Gray Code given below
where we can find the difference of binary code from gray code while traversing through the
table for their respective decimal numbers.

a) Binary to gray code conversion:


Binary to gray code conversion is a very simple process.
1. The M.S.B. of the gray code will be exactly equal to the first bit of the given
binary number.
2. Now the second bit of the code will be exclusive-or of the first and second bit of
the given binary number, i.e if both the bits are same the result will be 0 and if
they are different the result will be 1.
3. The third bit of gray code will be equal to the exclusive-or of the second and third
bit of the given binary number. Thus the Binary to gray code conversion goes on.
b) Gray code to binary conversion:
Gray code to binary conversion is again very simple and easy process.
1. The M.S.B of the binary number will be equal to the M.S.B of the given gray
code.
2. Now if the second gray bit is 0 the second binary bit will be same as the
previous or the first bit. If the gray bit is 1 the second binary bit will alter. If it
was 1 it will be 0 and if it was 0 it will be 1.
3. This step is continued for all the bits to do Gray code to binary conversion.

Circuit Diagram:

Fig.1 Binary to Gray Code Convertor Fig.2 Gray to Binary Code Convertor

Procedure 1. Connect the power supply & switch ON the circuit


2. Check the supply LED glows.
3. Use IC of EX-OR gate i.e.7486, to create combination of logic binary to gray code
converter, with no. 7-pin ground & no. 14-pin Vcc, and according to the design
makes the connection of breadboard using wires.
4. Give different logic inputs to the gates & check the according to the truth table.
5. If the output is high, the LED, will glow otherwise, it will not glow.

Observatio
n&
Output:
Add Logisim circuit
Add Truthtable for a) Binary To Gray b) Gray to Binary
Conclusion Gray code is a useful code in which a decimal number is represented in binary form in
such a way so that each gray-code number differs from the preceding and the succeeding
number by a single bit.

You might also like