BCD question

Discussion in 'Homework Help' started by TsAmE, Mar 15, 2011.

  1. TsAmE

    Thread Starter Member

    Apr 19, 2010
    72
    0
    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
     
  2. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    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?
     
  3. TsAmE

    Thread Starter Member

    Apr 19, 2010
    72
    0
    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?
     
  4. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    You have two digits - 3 in the 10's place, and 2 in the unit's place, just as it is written.

    So, 32 in BCD is 0011 0010
     
Loading...