You are on page 1of 41

ACEE 4

BCD to Gray Code


Conversion
Members:
MALABANAN, ISMAEL J.
VILLAMAYOR, JULZ HENRYK L.
LAPITAN, AARON RONALD S.
DELOS SANTOS, KYLE ANDRIE B.
CARPIO, VINCH HIZON L.
BSEE 3B
Actual Breadboard Design in BreadBoard
Multisim Design of BCD to Gray Code Conversion
Multisim Design of BCD to Gray Code Conversion
Introduction
The binary numeral system is ordered in the reflected binary code or Gray code so that two subsequent values only differ by
one bit (binary digit). In the typical sequence of binary numbers produced by the hardware that could provide an error or
ambiguity during the change from one number to the next, gray codes are highly helpful. Since only one bit changes its value
during any transition between two values, the Gray code can readily solve this problem.

Karnaugh maps, rotary and optical encoders, and error detection all make use of gray codes. Since the hamming distance
between any two neighboring Gray codes, as well as the distance between the first and last Gray codes, is always 1, these
codes are also known as cyclic codes.

The term "binary to gray code converter" refers to the logical circuit that transforms binary code into its equivalent gray code.
By reflecting an n-1 bit code about an axis after 2n-1 rows and placing the MSB (Most Significant Bit) of 0 above the axis and
the MSB of 1 below the axis, an n-bit gray code can be produced.
BCD to Gray Code using XOR Gate
In NI MULTISM Software

INPUT OUTPU
T
A B Y

0 0 0

0 1 1

1 0 1

1 1 0
BCD to Gray Code using XOR Gate
In Actual Board Design

8421 Gray Code


0000 0000
BCD to Gray Code using XOR Gate
In Multisim 8421 Gray Code
0000 0000
BCD to Gray Code using XOR Gate
In Actual Board Design
8421 Gray Code
0001 0001
BCD to Gray Code using XOR Gate
In Multisim 8421 Gray Code
0001 0001
BCD to Gray Code using XOR Gate
In Actual Board Design
8421 Gray Code
0010 0011
BCD to Gray Code using XOR Gate
In Multisim 8421 Gray Code
0010 0011
BCD to Gray Code using XOR Gate
In Actual Board Design
8421 Code Gray Code
0011 0010
BCD to Gray Code using XOR Gate
In Multisim 8421 Gray Code
0011 0010
BCD to Gray Code using XOR Gate
In Actual Board Design
8421 Gray Code
0100 0110
BCD to Gray Code using XOR Gate
In Multisim 8421 Gray Code
0100 0110
BCD to Gray Code using XOR Gate
In Actual Board Design

8421 Gray Code


0101 0111
BCD to Gray Code using XOR Gate
In Multisim 8421 Gray Code
0101 0111
BCD to Gray Code using XOR Gate
In Actual Board Design

8421 Gray Code


0110 0101
BCD to Gray Code using XOR Gate
In Multisim 8421 Gray Code
0110 0101
BCD to Gray Code using XOR Gate
In Actual Board Design

8421 Gray Code


0111 0100
BCD to Gray Code using XOR Gate
In Multisim 8421 Gray Code
0111 0100
BCD to Gray Code using XOR Gate
In Actual Board Design

8421 Gray Code


1000 1100
BCD to Gray Code using XOR Gate
In Multisim 8421 Gray Code
1000 1100
BCD to Gray Code using XOR Gate
In Actual Board Design

8421 Gray Code


1001 1101
BCD to Gray Code using XOR Gate
In Multisim 8421 Gray Code
1001 1101
BCD to Gray Code using XOR Gate
In Actual Board Design

8421 Gray Code


1010 1111
BCD to Gray Code using XOR Gate
In Multisim 8421 Gray Code
1010 1111
BCD to Gray Code using XOR Gate
In Actual Board Design

8421 Gray Code


1011 1110
BCD to Gray Code using XOR Gate
In Multisim 8421 Gray Code
1011 1110
BCD to Gray Code using XOR Gate
In Actual Board Design

8421 Gray Code


1100 1010
BCD to Gray Code using XOR Gate
In Multisim 8421 Gray Code
1100 1010
BCD to Gray Code using XOR Gate
In Actual Board Design

8421 Gray Code


1101 1011
BCD to Gray Code using XOR Gate
In Multisim 8421 Gray Code
1101 1011
BCD to Gray Code using XOR Gate
In Actual Board Design

8421 Gray Code


1110 1001
BCD to Gray Code using XOR Gate
In Multisim 8421 Gray Code
1110 1001
BCD to Gray Code using XOR Gate
In Actual Board Design

8421 Gray Code


1111 1000
BCD to Gray Code using XOR Gate
In Multisim 8421 Gray Code
1111 1000
Conclusion
BCD stands for binary coded decimal. Gray code is a binary encoding where two successive values differ in
only one bit. The purpose of this paper is to present the conversion from BCD to gray code. The conclusion is
that the conversion is possible with a simple formula.

A Gray code converter that transforms binary coded numbers to Gray coded numbers and vice versa was
created and tested. Our target specifications were met

The circuit is relatively portable, small, and has many uses. Most often, it is used in the sphere of
communication.

The added benefit is the straightforward design and affordable manufacture.


PICTURES OF THE GROUP WORKING TOGETHER
PICTURES OF THE GROUP WORKING TOGETHER

You might also like