Amateur Extra Question E8C09
E8C: Digital signals: digital communication modes; information rate vs. bandwidth; error correction; constellation diagrams
Which digital code allows only one bit to change between sequential code values?
- Binary Coded Decimal Code
- Extended Binary Coded Decimal Interchange Code
- Extended ASCII
- Gray code (correct answer)
Correct answer: D, Gray code
Explanation
In Gray code, each value differs from the next by exactly one bit. For example, 3 to 4 is 010 to 110, while plain binary goes 011 to 100. Shaft encoders use this so a reading caught between positions is never wildly wrong. QAM and PSK use it to label neighboring constellation points, so a symbol misread as its neighbor causes only a single bit error.
Why the other answers are wrong
- A, Binary Coded Decimal Code: BCD stores each decimal digit as plain 4-bit binary, so stepping from 7 (0111) to 8 (1000) changes all four bits.
- B, Extended Binary Coded Decimal Interchange Code: EBCDIC is IBM's 8-bit character set for text; its codes are assigned to characters, not arranged so adjacent values differ by one bit.
- C, Extended ASCII: Extended ASCII is an 8-bit character set that uses ordinary binary numbering, so consecutive codes can differ in several bits.