What is Gray code and why is it used?
What is Gray code and why is it used?
Model answer
Gray code is a binary code in which adjacent values differ in only one bit. This reduces ambiguity from simultaneous bit transitions in applications such as rotary encoders and is also used for safe pointer representation across clock domains when paired with appropriate synchronizers.