decoding a gray code
Archiver
Posts: 46,084
An old computer fundamentals book on my shelf shows the
following for binary gray code:
Dec 8421
0 0000
1 0001
2 0011
3 0010
4 0110
5 0111
6 0101
7 0100
8 1100
9 1101
10 1111
11 1110
12 1010
13 1011
14 1001
15 1000
16 11000
Using this scheme binary is converted to gray code:
Write the msb of the binary number as the msb of the gray
code number. The sum of the msb of the binary number
and the first digit to it's right, disregarding the carry if any,
is the next digit of the gray code number. This process is
continued until the least significant order is reached.
Dennis
Subject: decoding a gray code.
>
>
> OK, I give up. I have looked everywhere and need a shove in the
> right direction.
>
> An aircraft blind encoder puts out an 8 bit gray code for the
> altitude its pressure transducer sees. The gray scale is in 100 ft
> increments and all I want to do is read the code, look up the
> altitude and then display it in 4 digits on some kind of screen.
>
> I saw this someplace and I just can find it.
>
> Any help would be appreciated.
>
> tia
>
> Jim
>
[noparse][[/noparse]Non-text portions of this message have been removed]
following for binary gray code:
Dec 8421
0 0000
1 0001
2 0011
3 0010
4 0110
5 0111
6 0101
7 0100
8 1100
9 1101
10 1111
11 1110
12 1010
13 1011
14 1001
15 1000
16 11000
Using this scheme binary is converted to gray code:
Write the msb of the binary number as the msb of the gray
code number. The sum of the msb of the binary number
and the first digit to it's right, disregarding the carry if any,
is the next digit of the gray code number. This process is
continued until the least significant order is reached.
Dennis
Subject: decoding a gray code.
>
>
> OK, I give up. I have looked everywhere and need a shove in the
> right direction.
>
> An aircraft blind encoder puts out an 8 bit gray code for the
> altitude its pressure transducer sees. The gray scale is in 100 ft
> increments and all I want to do is read the code, look up the
> altitude and then display it in 4 digits on some kind of screen.
>
> I saw this someplace and I just can find it.
>
> Any help would be appreciated.
>
> tia
>
> Jim
>
[noparse][[/noparse]Non-text portions of this message have been removed]