Gray Code To Binary
Reverse Conversion
How This Converter Works
Decodes reflected binary Gray bits to a binary word of the same width.
Formula or rule
The first binary bit equals the first Gray bit; each later binary bit is the previous decoded binary bit XOR the current Gray bit.
Example
- Input
- 111011
- Calculation
- Cumulative XOR gives 1, 1⊕1=0, 0⊕1=1, 1⊕0=1, 1⊕1=0, 0⊕1=1.
- Result
- 101101