BCD numbers are numerical numbers. So, arithmetic operations can be performed on BCD numbers. Imagine a seven-segment timer display system showing 2 digits for the count of seconds. After every second, the timer should be incremented by 1. This means that the timer display system requires a BCD adder at the backend, whose output is shown on display.
So, let’s learn how to add two BCD numbers. Though BCD addition follows the rules of binary arithmetic, there are some additional things that need to be taken care of.
Steps of BCD Addition
|
Example 1: Find the sum of the BCD numbers 01000011 + 00110101
Solution:
Decimal number of the given BCD numbers are as below:
01000011BCD = 4310 and 00110101BCD = 3510
In the above example, all the 4-bit BCD additions generate valid BCD numbers, which means less than 9. So, the final correct result is 7810 = 01111000BCD.
Let’s take an example where the addition generates an invalid BCD number.
Example 2: Find the sum of the BCD numbers 01110101 + 00110101
Solution:
The decimal number of the given BCD numbers are as below:
01110101BCD = 7510 and 00110101BCD = 3510
In the above example, both the BCD code addition generated result larger than 9, so invalid. To get the correct result, we added 6 (01102) to both the invalid sum. Notice that the carry generated from the left group is forwarded to the right group. The final correct result is 11010 = 000100010000BCD.
Previous Table of Content Next
1 comment for “BCD Addition”