What is Gray Code?
This code belongs to a class of codes called minimum change code in which only one bit in the code group changes when going from one step to the next.
This is an un-weighted code which means that there are no specific weights assigned to the bit positions.
Because of this the Gray code is not suited for arithmetic operations but finds applications in input/output devices and some types of analog to digital converters (ADCs)
Advantages of Gray Code
In Gray code, if we go from one decimal number to the next, only one bit of the gray code changes. Because of this feature, the amount of switching is minimized and the reliability of the switching systems is improved.
The advantage of grey code over binary is only one-bit changes for each step. This will be useful in circuits that are sensitive to glitches.
Example: When you use grey code to trim the output impedance of IO blocks, there won’t be a huge jump in codes momentarily that would cause reflection.
The reflected binary code was originally designed to prevent spurious output from electromechanical switches. Today, Gray codes are widely used to facilitate error correction in digital communications such as digital terrestrial television and some cable TV systems.
Gray code evaluates the nature of binary code or data that is composed of on and off indicators, commonly represented by ones and zeros. … Gray code is also known as reflected binary code.