Splitting numbers and recombining them(EEPROM Error)


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Here's my guess...

    You have all of the variables - TenThousand, Thousand, Hundred etc. declared as BIT instead of BYTE?

    Code:
    DEC             3     2     2     6     4
    BIN          0011  0010  0010  0110  0100
    Bitvar          1     0     0     0     0
    multiplier 10,000 1,000   100    10     1
               ------ -----  ----  ----  ----
               10,000     0     0     0     0
        HEX =    2710h
    
    DEC             0     3     2     0
    BIN          0000  0011  0010  0000
    Bitvar          0     1     0     0
    multiplier  1,000   100    10     1
               ------ -----  ----  ----
                    0   100     0     0
        HEX =    0064h
    DT

  2. #2
    Join Date
    Aug 2006
    Location
    In a world of german electrons
    Posts
    102


    Did you find this post helpful? Yes | No

    Smile Thank you

    Yes, it works after this change.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts