Gray code is useful because only one bit changes at a time. When used as encoders for a position sensor, for instance, if the sensor were right at the edge of a change boundary, there is uncertainty as to position. Binary code would introduce variable uncertainty in position, because more than one bit can change at a time, but gray code would reduce that uncertainty to being only one bit position in size.
Chat with our AI personalities
Gray codes are primarily used to synchronise reads and writes across clock domains, such as analog to digital conversions. Knowing that only one bit of Gray code can change between two successive data writes allows the reader to determine precisely when a write is complete.
gray code is one which changes one bit at a time but binary code is one which changes one or more bit at a time. for example three bit binary and gray code the left one is binary and the right one is gray code.binary gray000 000001 001010 011011 010100 110101 111110 101111 100000 000
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)
one bit change at a time .
BCD refers to Binary Code Decimal there are no diagrams it is just a numbers system GRAY code is a means to make one reliable state to change at a time eliminating false coding because of transitions in counters and such
It is a non-weighted code, that is, each position of its bit isn't assigned a particular value.