Gray Code. Benchmark Companies Inc PO Box 473768 Aurora CO 80047. Gray Code:. The Gray Code is a widely used non-weighted code system. Gray Code:. Also known as the cyclic , unit distance or reflective code , the Gray code can exist in either the pure binary or BCD formats. Gray Code:.
Benchmark Companies Inc
PO Box 473768
Aurora CO 80047
The Gray Code is a widely used non-weighted code system.
Also known as the cyclic, unit distance or reflective code, the Gray code can exist in either the pure binary or BCD formats.
The Gray code is shown in the table. As with the pure binary code, the first ten codes are used in BCD operations.
Notice that there is a change in only one bit from one code number to the next in sequence.
You can get a better idea about the Gray code sequence by comparing it to the standard four-bit 8421 pure binary code also shown in the table.
For example, consider the change from 7 (0111) to 8(1000) in the pure binary code. When this change takes place all bits change.
Bits that were 1’s are changed to 0’s and 0’s are changed to 1’s. Now, notice the code change from 7 to 8 in the Gray code.
Here 7(0100) changes to 8 (1100). Only the first bit changes.
The Gray code is generally known as an error-minimizing code because it greatly reduces the possibility of ambiguity in the electronic circuitry, when changing from one state to the next.
When binary codes are implemented with electronic circuitry, it takes a finite period of time for bits to change from 0 to 1 or 1 to 0. These state changes can create timing and speed problems.
This is particularly true in the standard 8421 codes where many bits change from one combination to the next.
When the Gray code is used, however, the timing and speed errors are greatly minimized because only one bit changes at a time.
This permits code circuitry to operate at higher speeds with fewer errors.
The biggest disadvantage of the Gray code is that it is difficult to use in arithmetic computations.
Where numbers must be added, subtracted or used in other computations, the Gray code is not applicable.
In order to perform arithmetic operations the Gray code number must generally be converted into pure binary form.
End of Presentation