- 2076 Chaitra · 1.5 marks
Convert (17)₁₀ to Gray
Short answer
17₁₀ = 10001₂. Gray code: keep MSB 1, then XOR each adjacent binary bit: 1⊕0=1, 0⊕0=0, 0⊕0=0, 0⊕1=1 → 11001 (Gray).
Convert (17)₁₀ = (?)gray.
First convert decimal to binary, then to Gray code: the MSB stays the same and each next Gray bit is the XOR of two adjacent binary bits, .
Step 1:
Step 2: Binary to Gray
| Binary bits | Operation | Gray bit |
|---|---|---|
| 1 | copy MSB | 1 |
| 1, 0 | 1 | |
| 0, 0 | 0 | |
| 0, 0 | 0 | |
| 0, 1 | 1 |
Answer:
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Convert (17)excess-3 to BCD · Digital Logic, chapter 1
- Gray vs binary code, convert (10110)₂ to Gray · Digital Logic, chapter 1
- Convert (101001001)₂ to Gray · Digital Logic, chapter 1
- Convert (19)₁₀ to Gray · Digital Logic, chapter 1
- Convert (10101)gray to decimal · Digital Logic, chapter 1
- Convert (110111)gray to binary · Digital Logic, chapter 1