Due to grey code it is less chance to clamp Wrong....
if something is wrong then due to color code it is identified,,
Presuming the question is about Gray Codes, aka reflected binary code, the primary benefit is that it requires only a single binary digit to change when incrementing or decrementing a binary number.
That is, the Grey Code representation of X (base 10) has N binary digits in it. The Grey Code representation of either X-1 or X+1 requires only a single binary digit to change, out of the N digits which make up the number. Normal binary code can require up to all N digits to change when adding or subtracting a single increment.
The advantage here is cleanliness, in particular for mechanical and electrical circuits. Since it is impossible to absolutely synchronize change of digits, in a normal binary representation of a number, incrementing or decrementing it can leave the number in a variety of intermediary states, of which an outside observer cannot tell which is correct. This can cause all sorts of problems when constructing working devices, that otherwise appear to be perfectly designed in the abstract.
For a better explanation of the mechanics and usefulness of Gray Code, look at the Wikipedia article below.
Chat with our AI personalities
Gray codes are commonly found in analog to digital conversion processors. As a simple example, consider the stadiometer typically found in doctor's surgeries to measure a patient's height while standing. The analog version (typically) consists of a vertical scale with 1 mm incremental markings from 20 cm to 220 cm, with a slider that can move up and down the scale. When the doctor measures your height, he moves the slider down until it touches your head and takes a reading from the scale. The slider will probably land somewhere between two increment marks but that's good enough for the purpose of measuring one's standing height to within a 1 mm tolerance. Indeed, with an imperial scale, half-an-inch tolerance would be considered more than adequate.
With the digital version, however, the slider contains a photo-sensor that can read incremental bit patterns directly off the scale, thus converting the analog data (the height of the slider from the ground) into digital data (a binary value). The digital readout needs to update in real time, thus every time a change occurs in our binary value we want that change immediately reflected in our readout.
The problem is that most of the time the photo-sensor will be reading two bit patterns simultaneously. Very rarely will it land precisely on a single mark so our binary value will be in a transitional state most of the time. To make matters worse, we also cannot guarantee that all the bits in our binary value will be updated simultaneously. During a transition from one pattern to the next, we might only get a partial update, leading to an erroneous readout.
While we could resolve the problem simply by throwing money at it (more accurate sensors, smaller increments, precision engineering, and so on), do keep in mind that we're attempting to fix something that was never actually broken to begin with. Analog stadiometers are perfectly adequate for measuring one's height.
The solution, of course, is to use Gray codes rather than natural binary values in our bit patterns. With Gray codes, we can guarantee that during a transition in either direction, only 1 bit will change. In this way we can keep the digital readout in perfect sync with the analog height, to within a tolerance of 1 mm.
Analog to digital conversion is really just an example of two domains running at different frequencies thus you will find Gray code cropping up wherever clocks or counters need to be reliably passed between two such domains, or where "off-by-one-bit" is an acceptable tolerance. This also includes error detection where Gray codes can be combined with forward error detection algorithms to resolve single bit errors. Gray codes can also be used to solve sequential mechanical problems (like tower of Hannoy) and for implementing mechanical position encoders.
. Error correction is another Modern computers are full of devices running at different clock rates and Gray codes are one of the simplest methods of ensuring that a value that crosses clock domains is not in a transitional state or to provide a means of error correction where "off-by-one-bit" is an acceptable tolerance. Gray codes can also be used to solve
The reflected binary code, also known as Gray code after Frank Gray, is a binary numeral system where two successive values differ in only one bit (binary digit). The reflected binary code was originally designed to prevent spurious output from electro mechanical switches. Today, Gray codes are widely used to facilitate error correction in digital communications such as digital terrestrial television and some cable TV systems.
There is no disadvantage as such, unless you happen to be using Gray code for an application where Gray code is not a requirement in which case the conversion to or from Gray code would have a negative impact upon overall performance.
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)
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
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.