AnsweredAssumed Answered

Write HEX to LCD

Question asked by Maria Otero on Sep 29, 2015
Latest reply on Sep 30, 2015 by Maria Otero

Hello, i'm kinda new in all this world. So, i'm trying to display like decimal an hexadecimal value into a LCD 16x2 display.

I know the i need to write it in ASCII, but my problem is the i can't figure it out how to split that value into 4 or 5 bytes, for example:
0x270F = 0x39 0x39 0x39 0x39 (9999)
0xFFFF = 0x36 0x35 0x35 0x33 0x35 (65535).

 

Don't even know how to search for what i'm looking . Some guidance would be useful.

Thank you . (sorry for my bad english not my native language

 

PD: Working with S08AW32 Relocatable ASM in CodeWarrior 10.2

Outcomes