Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/08/08 17:54
Read: times


 
#159907 - 16bit number to LCD
Hello there, I'm newbie to microcontrollers and ASM, and was thinking how to put a value on the LCD and with little time I could easily achieve for 8bit...

        MOV A,#VALUE

        MOV B,#100          ;A=100's
        DIV AB
        ADD A,#48
        CALL WRITE_TEXT
        MOV A,B
        MOV B,#10
        DIV AB              ;A=10's ... B=1's
        ADD A,#48
        CALL WRITE_TEXT
        MOV A,B
        ADD A,#48
        CALL WRITE_TEXT

 


But I dont have any clue how to do this same with a 16bit value, can you help me?


Thanks


List of 2 messages in thread
TopicAuthorDate
16bit number to LCD            01/01/70 00:00      
   look for "hex to ascii" or similar...            01/01/70 00:00      

Back to Subject List