0% found this document useful (0 votes)
6 views10 pages

1b. BCD Addition

Uploaded by

f2023065013
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)
6 views10 pages

1b. BCD Addition

Uploaded by

f2023065013
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
You are on page 1/ 10

Digital Design

BCD Addition

M. Morris Mano
Edition 5
BCD ADDITION
Consider the addition of two decimal digits in BCD : (digits in BCD range from 0 to 9)

4 0100 (BCD Code)


When the binary sum is equal to or less than
5 0101 (BCD Code)
1001, the corresponding BCD digit is correct.
--- --------
9 1001 Binary Sum

9 has same binary representation of Binary Code and BCD Code


BCD ADDITION
Consider the addition of two decimal digits in BCD : (digits in BCD range from 0 to 9)

4 0100 (BCD Code) Since each digit in BCD does not exceed 9,
8 1000 (BCD Code) so, when the binary sum is greater than 1001,
--- -------- the result is an invalid BCD digit
12 1100 Binary Sum
(Invalid BCD digit)
BCD ADDITION
Consider the addition of two decimal digits in BCD : (digits in BCD range from 0 to 9)

8 1000 (BCD Code)


9 1001 (BCD Code)
--- --------
17 1 0001 Binary Sum
(Incorrect Answer in BCD)
BCD ADDITION
Consider the addition of two decimal digits in BCD : (digits in BCD range from 0 to 9)

4 0100 4 0100 8 1000


5 0101 8 1000 9 1001
--- -------- --- -------- --- --------
9 1001 12 1100 17 1 0001
0110 0110
Correct Answer
-------- --------
000 1 0010 000 1 0111
1 2 1 7
(Correct Sum in BCD) (Correct Sum in BCD)

In case of wrong answer, the addition of 6 to the binary sum converts it to the correct digit
BCD ADDITION
The addition of two n‐digit unsigned BCD numbers follows the same procedure.

0001 1000 0100 184


0101 0111 0110 576
-------- -------- -------- ------
1010 760
0110
--------
1 0000

Incorrect
Answer
BCD ADDITION
The addition of two n‐digit unsigned BCD numbers follows the same procedure.

1
0001 1000 0100 184
0101 0111 0110 576
-------- -------- -------- ------
1 0000 1010 760
0110
--------
0000

Incorrect
Answer
BCD ADDITION
The addition of two n‐digit unsigned BCD numbers follows the same procedure.

1
0001 1000 0100 184
0101 0111 0110 576
-------- -------- -------- ------
1 0000 1010 760
0110 0110
----------- --------
1 0110 0000

Incorrect
Answer
BCD ADDITION
The addition of two n‐digit unsigned BCD numbers follows the same procedure.

1 1
0001 1000 0100 184
0101 0111 0110 576
-------- -------- -------- ------
0111 1 0000 1010 760
Correct 0110 0110
Answer ----------- --------
0110 0000

Incorrect
Answer
BCD ADDITION
The addition of two n‐digit unsigned BCD numbers follows the same procedure.

1 1
0001 1000 0100 184
0101 0111 0110 576
-------- -------- -------- ------
0111 1 0000 1010 760
0110 0110
----------- --------
0110 0000
7 6 0

You might also like