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