Binary ,Gray Code Conversion
Binary and Gray Code Conversion
Gray code is a type of unit distance code. In unit distance code the bit patterns for two consecutive numbers will differ in one bit position. We can also say it as Cyclic codes.
Binary to Gray Code ConversionFollow the below Steps to convert Binary number to gray code.
Lets Consider The Binary number B1 B2 B3 B4 ... Bn and the Gray code is G1 G2 G3 G4 ... Gn
Gray Code to Binary ConversionFollow the below steps to convert Gray Code to Binary
Look at the below example for Converting Binary to Gray Code.