Get Knowledge About The Binary To Gray Code Conversion
The representation of data using two values 0’s and 1’s is known as Binary Code (mainly used in the computer the world). Gray code is the ordering of binary number system in such a way that each incremental is differed by only one bit. With the help of a logic circuit, the conversion of binary to gray code is done. The gray code is a non-weighted. Binary to gray code convertor is a logic circuit by which the binary code is converted to equivalent gray code. Following are the steps for binary to gray code conversion:
Step-1 The first bit of the given binary number is equal to the Most Significant Bit (MSB) of the Gray Code.
Step-2 Now, XOR of the first and second bit of the given binary number will be the second bit of code.
Step-3 Then, XOR of the second and third bit of the given binary number will be the third bit of gray code.
Â