Skip to main content

Convert (101001001)₂ to Gray

Short answer

MSB unchanged; each next Gray bit is XOR of current and previous binary bits. 101001001 binary gives 111101101 Gray.

Convert (101001001)binary = (?)Gray.

Rule: the MSB of the Gray code equals the MSB of binary; every other Gray bit is the XOR of the corresponding binary bit and the bit to its left: Gi=Bi+1⊕BiG_i = B_{i+1} \oplus B_i.

Binary pairXORGray bit
MSB 1copy1
1, 01 ⊕ 01
0, 10 ⊕ 11
1, 01 ⊕ 01
0, 00 ⊕ 00
0, 10 ⊕ 11
1, 01 ⊕ 01
0, 00 ⊕ 00
0, 10 ⊕ 11

Answer: (101001001)2=(111101101)Gray(101001001)_2 = (111101101)_{Gray}

✓ Answer checked by Claude Opus 5.5 (high effort)

All Digital Logic chapter 1 questions →