Basic BinaryCoded Decimal (BCD) Code
~ on ~ 0 commentsBASIC (CONVENTIONAL) BINARYCODED DECIMAL (BCD) CODE:
We now discuss binary codes that are used in mathematical operations of addition, subtraction, multiplication and division. We begin our discussion with the standard binary code that is used to convert decimal numbers into equivalent binary numbers. This is the basic binary number scheme just like the decimal number scheme. Table 1.21 shows this basic binary coding scheme.
Decimal number

Binary equivalent

0
1
2
3
4
.
.
.
9

0000
0001
0010
0011
0100
.
.
.
1001

In Table 1.21, we have shown binary numbers using 4 bits. The binary numbers using 4 bits can represent decimal numbers from 0 to 15. Now, in an 8bit representation, the numbers would be from 0 to 127 (i.e., from (0000,0000 to 1111,1111). We can thus use any number of bits to represent decimal numbers. However, the number of bits to be used depends ultimately on the designer.
No comments: