Gray Codes



The reflected binary code, also known as Gray code, is a binary numeral system where two successive values differ in only one bit (binary digit). This means that it is arranged so that every transition from one value to the next value involves only one bit change.

The following table shows the GRAY CODE with its corresponding binary code in 4 digits:






Conversion of binary code into gray code:




Conversion of gray code into binary code: