Printer Friendly
The Free Dictionary
1,074,270,427 visitors served.
?
Dictionary/
thesaurus
Medical
dictionary
Legal
dictionary
Financial
dictionary
Acronyms
 
Idioms
Encyclopedia
Wikipedia
encyclopedia
?

Gray code

   Also found in: Wikipedia 0.06 sec.
(hardware)Gray code - A binary sequence with the property that only one bit changes between any two consecutive elements (the two codes have a Hamming distance of one).

The Gray code originated when digital logic circuits were built from vacuum tubes and electromechanical relays. Counters generated tremendous power demands and noise spikes when many bits changed at once. E.g. when incrementing a register containing 11111111, the back-EMF from the relays' collapsing magnetic fields required copious noise suppression. Using Gray code counters, any increment or decrement changed only one bit, regardless of the size of the number.

Gray code can also be used to convert the angular position of a disk to digital form. A radial line of sensors reads the code off the surface of the disk and if the disk is half-way between two positions each sensor might read its bit from both positions at once but since only one bit differs between the two, the value read is guaranteed to be one of the two valid values rather than some third (invalid) combination (a glitch).

One possible algorithm for generating a Gray code sequence is to toggle the lowest numbered bit that results in a new code each time. Here is a four bit Gray code sequence generated in this way:

0 0 0 0 0 0 0 1 0 0 1 1 0 0 1 0 0 1 1 0 0 1 1 1 0 1 0 1 0 1 0 0 1 1 0 0 1 1 0 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 0 0 1 1 0 0 0

The codes were patented in 1953 by Frank Gray, a Bell Labs researcher.

http://nist.gov/dads/HTML/graycode.html.


How to thank TFD for its existence? Tell a friend about us, add a link to this page, add the site to iGoogle, or visit webmaster's page for free fun content.
?Page tools
Printer friendly
Cite / link
Email
Feedback
? Mentioned in ? References in periodicals archive
 
Reduction of codewheel misalignment errors due to gray code correction to +/- 1 LSB
An ST proprietary 4/12 coding scheme for servo Gray code paired with a matched Trellis detector can be used to allow better disk formatting compared to today's 1/4 Gray code rates; 1/4 Gray code rates are anyway automatically supported by the Bramante chip to overcome any servo formatting legacy issue.
The thiNcoder Rotor is highly versatile offering multiple output configurations such as an analog potentiometer, multi-bit encoder or dual-function push-and-turn switch and a variety of product designs, including encoders (quadrature, gray code, binary), switches and potentiometers.
 
Encyclopedia browser? ? Full browser
 
 
Encyclopedia
?

Disclaimer | Privacy policy | Feedback | Copyright © 2008 Farlex, Inc.
All content on this website, including dictionary, thesaurus, literature, geography, and other reference data is for informational purposes only. This information should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional.. Terms of Use.