Continue to Site

# Description of grey code and folded binary code

Status
Not open for further replies.

#### rizwanspirit

##### Member level 4
any one please give me a short discription of "grey code" and "folded binary code"
with their table

Re: codes

in gray code:
one bit changes from one entry to the next:

Gray codes are particularly useful in mechanical encoders since a slight change in position only affects one bit. Using a typical binary code, up to n bits could change, and slight misalignments between reading elements could cause wildly incorrect readings.

below is 4 bit grey code.. you can notice only one bit is changing..from 0 to 1 or vice versa

0000
0001
0011
0010
0110
0111
0101
0100
1100
1101
1111
1110
1010
1011
1001
1000

https://en.wikipedia.org/wiki/Gray_code

### rizwanspirit

Points: 2
Re: codes

thanks, can you please give me information about folded binary code likewise.

Re: codes

For different codes there is difference only in one bit

Re: codes

folded binary code is also called
Symmetrical code and reflected binary code
in this code most significant bit gives polarity information

below fig compares all three code..
natural
folded
gray

In folded u can upper half is exactly mirror of lower half
thats why its called
folded binary code
Symmetrical code
or
Reflected binary code

### rizwanspirit

Points: 2
Re: codes

Thanks nikhilele
The figure is also informative can u post its code, like u have posted for gray code

codes

you can make code by ur own replace crossed box by zeros and empty box by 1...
in folded binary code picture..

Re: codes

hi
as you know in gray code every value differs from the next only in one bit.
for example a binery value must change from 0111 to 1000.if one bit changes slower than the others a middle-value 1001 is created which may be undesireable.this problem may not accure when gray codes are using because only one bit have to change.

hi
as you know in gray code every value differs from the next only in one bit.
for example a binery value must change from 0111 to 1000.if one bit changes slower than the others a middle-value 1001 is created which may be undesireable.this problem may not accure when gray codes are using because only one bit have to change.

Points: 2