Converting Binary to Gray Code

Let

be the bits representing the binary numbers, where

is the LSB and

is the MSB, and Let

be the bits representing the gray code of the binary numbers, where

is the LSB and

is the MSB. The truth table for the conversion is

To find the corresponding digital circuit, we will use the K-Map technique for each of the gray code bits as output with all of the binary bits as input. K-map for

–

K-map for

–

K-map for

–

K-map for

–

Corresponding Minimized Boolean Expressions and Digital Circuit for Gray Code Bits

Generalized Boolean Expression for conversion of Binary to Gray Code

Boolean expression for conversion of binary to gray code for n-bit :

G n = B n

G n-1 = B n XOR B n-1 : :

G 1 = B 2 XOR B 1

Code Converters – Binary to/from Gray Code

In this article, we will go through Code Converters – Binary to/from Gray Code,we will start our article by defining Code converters, Binary code and Gray code, and then we will go through the conversion of binary code to gray code and vice versa. At last, we will conclude our article with some faqs.

Table of Content

  • Code Converters
  • Binary Code
  • Gray Code
  • Converting Binary to Gray Code
  • Converting Gray Code to Binary
  • Application


Similar Reads

What are Code Converters?

Code Converters are the digital circuits or algorithms that are designed to translate data representation from one format to the other format. In this article, we will go through binary to gray code converters. The binary-to-Gray code converter takes binary input and translates it to its corresponding gray code representation....

What is a Binary Code?

The Binary code is the numerical system used in digital electronics. It only consists of two Symbols which are 0 and 1.In binary code each digit is represented by power of 2 with the starting bit (right most bit) as 20 and bit as 21 and so on.The binary code is serves as the basis for encoding text,number and various other types of data in the digital devices....

What is a Gray Code?

Gray Code system is a binary number system in which every successive pair of numbers differs by only one bit. It is used in applications in which the normal sequence of binary numbers generated by the hardware ,is read while the system changes from the initial state to the final state. This could have serious consequences for the machine using the information. The Gray code eliminates this problem since only one bit changes its value during any transition between two numbers....

Converting Binary to Gray Code

Let...

Converting Gray Code to Binary

Converting gray code back to binary can be done in a similar manner. Let...

Application of Code Converters – Binary to/from Gray Code

Given Below are the Applications of the Code Converters – Binary to/from Gray Code...

Conclusion

In this Article we have gone through Code Converters – Binary to/from Gray Code,we have gone through the definition of the Code converters,Binary code and Gray code,then we have gone through Code conversion between Binary to Gray code and vice versa....

Code Converters – Binary to/from Gray Code – FAQs

How do you minimize the logic gates required for a Binary-to-Gray Code Converter circuit?...