I've always been interested in
Gray codes. More recently, I became aware of the concept of a "balanced Gray code", i.e. one in which each bit in the code will "toggle" (transition from 0 to 1 or vice-versa) an equal number of times. I once wrote a program to find a 4-bit balanced Gray code almost instantaneously, but searching for an 8-bit version
(
Read more... )
Comments 7
But hey, if it's useful, bully for you.
-2trick
Reply
could you go in to detail how you constructed this and how one might construct even n-bit versions.
this would be very useful for storing large counter values in an eeprom.
thanks.
Reply
Reply
i am not so much interested in saving bits more in the balanced toggling of the bits.
i need to count up to 290 000 000 but can only toggle each bit 100 000 times.
do you have a formula for the 8-bit version?
thx.
Reply
I would be very interested if you happen to find more information on this topic!
Reply
http://sciyoshi.com/2010/12/gray-codes/
Reply
Reply
Leave a comment