Sort of Gray code to binary converter
- From: "John B" <spamj_baraclough@xxxxxxxxxxxxxxxxxxx>
- Date: 11 Dec 2005 14:18:22 GMT
I say 'sort of' because the input I have is not true reflected binary
Gray code. The input is a wind direction sensor with eight discrete
positions. They are activated by a small magnet which triggers either
one or two sensors at any time. Thus the eight sensors produce the
following sequence:
00000001
00000011
00000010
00000110
00000100
00001100
00001000
00011000
00010000
00110000
00100000
01100000
01000000
11000000
10000000
10000001
What logic do I need to convert these 16 values to a 4-bit binary
number.
Thanks for your attention.
--
John B
.
- Follow-Ups:
- Re: Sort of Gray code to binary converter
- From: Jim Thompson
- Re: Sort of Gray code to binary converter
- From: Charlie Edmondson
- Re: Sort of Gray code to binary converter
- From: Charlie Edmondson
- Re: Sort of Gray code to binary converter
- From: John B
- Re: Sort of Gray code to binary converter
- From: John B
- Re: Sort of Gray code to binary converter
- From: Robert Scott
- Re: Sort of Gray code to binary converter
- From: Andrew Holme
- Re: Sort of Gray code to binary converter
- From: Fred Bloggs
- Re: Sort of Gray code to binary converter
- From: Ken Smith
- Re: Sort of Gray code to binary converter
- From: martin griffith
- Re: Sort of Gray code to binary converter
- From: Frank Bemelman
- Re: Sort of Gray code to binary converter
- From: Dave
- Re: Sort of Gray code to binary converter
- From: Rich Webb
- Re: Sort of Gray code to binary converter
- From: Luhan
- Re: Sort of Gray code to binary converter
- Prev by Date: Re: Big Bangs (OT)
- Next by Date: Re: Big Bangs (OT)
- Previous by thread: Big Bangs (OT)
- Next by thread: Re: Sort of Gray code to binary converter
- Index(es):
Relevant Pages
|