0101 0011 (2) = 53 (16) which in BCD means 53
Chat with our AI personalities
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
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)
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.
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