Binary Coded DecimalOne of the most widely used representations of numerical data is the binary coded decimal (BCD) form in which each integer of a decimal number is represented by a 4bit binary number (see conversion table). It is particularly useful for the driving of display devices where a decimal output is desired. BCD usually refers to such coding in which the binary digits have their normal values, i.e., 8421. Sometimes it is written "8421 BCD" to clearly distinguish it from other binary codes such as the 4221 Code, but when BCD is used without qualification, the 8421 version is assumed.

Index Electronics concepts Digital Circuits  

Go Back 
Excess3 CodeIn this code, a digit is represented by adding 3 to the number and then converting it to a 4bit binary number. It can be used for the representation of multidigit decimal numbers as can BCD. This code along with the 4221 code have some advantages for performing decimal arithmetic.

Index Electronics concepts Digital Circuits  

Go Back 
4221 CodeThere are several codes which use binary numbers to code for single digits in multidigit decimal numbers. This code assigns the values 4,2,2,1 instead of 8,4,2,1 to the four binary digits. It can properly be called binary coded decimal, but that designation (BCD) is usually reserved for the 8,4,2,1 code. This code is sometimes written 4221 BCD. This code along with the excess3 code have some advantages for performing decimal arithmetic.

Index Electronics concepts Digital Circuits  

Go Back 
Gray CodeA code designed to minimize errors during the transition between one code value and another, this code changes only one bit from one sequential value to another. It is used for shaft encoders and other applications where mechanical control using a digital code requires the minimizing of stresses which might occur if an erronius value was sent during a transition. The rule for generating the code is: begin with all zeros and change the least significant bit that will bring you to a new state.

Index Electronics concepts Digital Circuits  

Go Back 