0% found this document useful (0 votes)
160 views9 pages

How to Add BCD Numbers Guide

BCD addition involves adding two BCD numbers in binary and correcting any sums greater than 9 by adding 6 to get a valid BCD number. It is done in steps: 1) Add the two numbers in binary 2) If the 4-bit sum is >9, add 6 to correct it 3) If there is a carry, add it to the next 4-bit group and add 6 if needed

Uploaded by

wild flower
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
160 views9 pages

How to Add BCD Numbers Guide

BCD addition involves adding two BCD numbers in binary and correcting any sums greater than 9 by adding 6 to get a valid BCD number. It is done in steps: 1) Add the two numbers in binary 2) If the 4-bit sum is >9, add 6 to correct it 3) If there is a carry, add it to the next 4-bit group and add 6 if needed

Uploaded by

wild flower
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

BCD addition

BCD is a numerical code


Used in arithmetic operations
How to add two BCD numbers
• Step1 - Add the two BCD numbers ,using the rules for
binary addition
• Step2 – if a 4-bit sum is equal to or less than 9 it is a
valid BCD number.
• Step 3- if a 4-bit sum is > 9 ,or if a carry out of the 4-
bit group is generated, it is an invalid result. Add 6
(0110) to the 4-bit sum in order to skip the six
invalid states and return the code to 8421. if a carry
results when a 6 is added ,simply add the carry to the
next 4-bit group.
Add the following BCD numbers
a) 0011 + 3+
0100 4
-------- ----
0111 7
b) 0010 0011 + 23+
0001 0101 15
-------- ---- ----
0011 1000 38
example
c) 1000 0110 + 86+
0001 0011 13
-------- ---- ----
1001 1001 99

The sum in any 4-bit column does not exceed 9


and the results are valid BCD numbers
Add 450+417
Example (invalid BCD number (>9))
b) 1001 + 9+
0100 4
-------- ----
1101 invalid BCD number (>9) 13
+ 0110 add 6
----------
1 0011
0001 0011 valid BCD number
1 3
invalid because of carry
b) 1001 + 9+
1001 9
-------- ----
1 0010 invalid because of carry 18
+ 0110 add 6
----------
1 1000

0001 1000 valid BCD number


1 8
c) 0001 0110 + 16+
0001 0101 15
-------- ---- ---- 31
0010 1011 Right group is invalid(>9) ,
Left group is valid
+ 0110 add 6 to invalid code, add carry
-------- ,0001 to the next group.
0011 0001 valid BCD number
3 1
both groups are invalid (>9)
d) 0110 0111 + 67+
0101 0011 53
-------- ---- ---- 120
1011 1010 both groups are invalid (>9)
+ 0110 +0110 add 6 to both groups
------ ------- ---
1 0010 0000
0001 0010 0000 valid BCD number

1 2 0
• Add the BCD numbers
1) 0100 1000+0011 0100
2)

You might also like