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 gray
000 000
001 001
010 011
011 010
100 110
101 111
110 101
111 100
000 000
Chat with our AI personalities
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
BCD codes,gray code,error detecting code,ASCII character code,Excess 3 code
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 gray code for the decimal number 6 in four-bit format is 1011. To convert from binary to gray code, the most significant bit (MSB) remains the same, and each subsequent bit is derived by XORing the current bit with the previous bit in the binary representation. The binary representation of 6 is 0110, which converts to gray code as follows: 0 (MSB), 1 (0 XOR 1), 1 (1 XOR 1), 1 (1 XOR 0), resulting in 1011.
0101 0011 (2) = 53 (16) which in BCD means 53