Hex value of ASCII character back to text.
I am trying to take the hex value of an ASCII character stored in EEPROM , convert it back to a text character and send it to a device on the PIC serial port using serout or serout2.
So lets say I have 31 stored in EEPROM location 00, this is the equivalent of "1" as text. How do I turn 0x31 in to "1"?
Thanks.
Re: Hex value of ASCII character back to text.
chr var byte
read 0,chr
SEROUT pin,mode,[chr]
Re: Hex value of ASCII character back to text.
As simple as that, eh? lol