BCD question

Thread Starter

TsAmE

Joined Apr 19, 2010
72
Convert 10000 to the 8421 BCD equivalent.

Attempt:

10000 = 2^4
=(16) base 10
= 8 + 8
= 1000 + 1000

I am not sure if this is right, but I do know that BCD 8421 represents 0 to 9
 

beenthere

Joined Apr 20, 2004
15,819
In binary and BCD:

Bit 0 = 1
Bit 1 = 2
Bit 2 = 4
Bit 3 = 8

BCD only represents decimal numbers, so the largest BCD value is 1001 (8 + 1).

Is that the decimal value 10,000, or 20h?
 

Thread Starter

TsAmE

Joined Apr 19, 2010
72
its 10 000. i understand that the max value for BCD is 1000 (8) + 1 = 9. But how would you convert 10 000 (32) to be in the range 0 to 9?
 
Top