Gray Code
Gray code
Generating a Gray code Commence with the simplest Gray code possible; that is, for a single bit. Create a mirror image of the existing Gray code below the original values. Prefix the original values with 0s and the mirrored values with 1s. Repeat steps 2) and 3) until the desired width is achieved.
What is BCD and Gray code?
Binary Coded Decimal (BCD) is a way to store the decimal numbers in binary form. The number representation requires 4 bits to store every decimal digit (from 0 to 9). Since there are 10 different combinations of BCD, we need at least a 4-bit Gray Code to create sufficient number of these combinations.
What is the advantage of Gray code?
Compared to binary, the advantage of Gray Code is that just one bit changes for each step. This will come in handy in circuits that are sensitive to glitches and other errors.
Post a Comment for "Gray Code"