Binary To Gray Code And Gray To Binary Code

AIM: To realize 4-Bit Code Converter: Realization using XOR gates.

  1. Binary to Gray Code Converter
  2. Gray to Binary Code Converter

LEARNING OBJECTIVE:

COMPONENTS REQUIRED:

THEORY:

Binary to Gray:

The 4 bit combination assigned to Binary Code to Gray. four bits to represent a decimal digit. There are four inputs and four outputs. The input variable are defined as B3, B2, B1, B0 and the output variables are defined as G3, G2, G1, G0. from the truth table, combinational circuit is designed.

B3 = G3

B2 ⊕ B3 = G2

B1 ⊕ B2 = G1

B0 ⊕ B1 = G0

BINARY TO GRAY
BINARY TO GRAY
BINARY TO GRAY OUTPUT
BINARY TO GRAY OUTPUT

BINARY TO GRAY OUTPUT TRUTH TABLE

Sno.Binary CodeGray Code
B3B2B1B0G3G2G1G0
000000000
100010001
200100011
300110010
401000110
501010111
601100101
701110100
810000100
910011101
1010101111
1110111110
1211001010
1311011011
1411101001
1511111000

Gray to Binary:

The 4 bit combination assigned to Gray to Binary Code. four bits to represent a decimal digit. There are four inputs and four outputs. The input variable are defined as G3, G2, G1, G0 and the output variables are defined as B3, B2, B1, B0. from the truth table, combinational circuit is designed.

G0 ⊕ G1 ⊕ G2 ⊕ G3 = B0

G1 ⊕ G2 ⊕ G3 = B1

G2 ⊕ G3 = B2

G3 = B3

GRAY TO BINARY
GRAY TO BINARY
GRAY TO BINARY OUTPUT
GRAY TO BINARY OUTPUT

GRAY TO BINARY OUTPUT TRUTH TABLE

Sno.Gray CodeBinary Code
G3G2G1G0B3B2B1B0
000000000
100010001
200110010
300100011
401100100
501110101
601010110
701000111
801001000
911011001
1011111010
1111101011
1210101100
1310111101
1410011110
1510001111
(Visited 11,169 times, 1 visits today)
Binary To Gray Code & Gray To Binary Code
Share with Friends :
Tagged on:     

Er. Arvind Ahir

Im Er. Arvind Ahir Skills Web Developer in Php, Networking, Arduino . Education 10th : KV Suranussi Jal. (2010-12) Diploma in CSE : Mehr Chand PolyTechnic Jal. (2012-15) B.Tech CSE : CT INSTITUTE OF TECHNOLOGY & RESEARCH, JALANDHAR (2015-19)

One thought on “Binary To Gray Code & Gray To Binary Code

  • 25/02/2022 at 11:25 am
    Permalink

    Very well explained

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *