The gray code is reflected binary, the first eight values compare with those of the last 8 values after we remove MSB, but in reverse order.
Consider :
0000
0001
0011
0010
0110
0111
0101
0100
1100
1101
1111
1110
1010
1011
1001
1000
Remove the most significant bit (MSB) and you obtain a nice reflected sequal:
x000
x001
x011
x010
x110
x111
x101
x100
------ -- mirror
x100
x101
x111
x110
x010
x011
x001
x000
Please note that the same kind of result can be seen for Gray code of any width.
The change of bits and thus, the error is reflected in the code itself and there is no need of other error detecting codes during transmission.
Gray code is a 'reflected code', why is it named so will be illustrated soon. The advantage of Gray code over binary code is that only one bit in the code group changes when going from one number to the next. By, Ashish Kumar (Roh, Nawada, Bihar)
The reflected binary code, also known as Gray codeafter Frank Gray, is a binary numeral system where two successive values differ in only one bit.Here is an example of a 4-bit Gray code:0000000100110010011001110101010011001101111111101010101110011000
Gray Code is Reflective Binary code. One of the main disadvantages of Gray code is that it is very difficult to come up with an arithmetic logic unit to support Gray code.
characteristic of Gray code
Gray code, named after Frank Gray, a Bell Labs researcher who originally called it "reflected binary code", is used to help correct errors in digital communications. It was developed as a response to preventing desynchronized switching actions, requiring only one switch be flipped to increment or decrement a binary value represented by a hardware-based switch array. The simplest method, without using a whole lot of CPU or brain power, is to create an array of Gray code values that correspond to their binary representation. For example, a 2-bit Gray code array would consist of the following values: int gray2bit[]={0, 1, 3, 2}; A 3-bit Gray code array would be declared and initialized as follows: int gray3bit[]={0, 1, 3, 2, 6, 7, 5, 4}; To find the Gray code for a particular value, simply reference that offset in the desired array: int n=gray2bit[2]; /* results in 3 */ int m=gray3bit[6]; /* results in 5 */ See the related links for more information on Gray codes as well as sample source code that will assist you further.
The Gray Code is a type of binary code developed by a programmer named Frank Gray. Gray code is a binary numeral system that differ than normal binary code, and is used widely to detect errors in software.
The light which enters is called the incident ray and the reflected light is called the reflected ray.
The airport code for Gray Army Airfield is GRF.
The Code of Marcia Gray was created on 1916-03-16.
The angle is called the reflected angle.
Gray code
help PLA use convert excess-3 to gray code