Gray encoding of decimal numbers ensures that only one bit changes when the decimal number changes by
Question:
Gray encoding of decimal numbers ensures that only one bit changes when the decimal number changes by one unit. Let b1b2b3 ... bn represent an ordinary bi nary representation of a decimal number, with b1 being the most significant bit. Let the corresponding Gray code bits be g1g2g3 ... gn. Then the Gray code representation is obtained by the algorithm
g1 = b1
gn = bn ⊕ bn-1
where ⊕ denotes modulo-2 addition (i.e., 0 ⊕ 0 = 0, 0 ⊕ 1 = 1, 1 ⊕ 0 = 1, and 1 ⊕ 1 = 0). Find the Gray code representation for the decimal numbers 0 through 32.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Principles of Communications Systems, Modulation and Noise
ISBN: 978-8126556793
7th edition
Authors: Rodger E. Ziemer, William H. Tranter
Question Posted: