Newzed
06-04-2005, 07:49 PM
I have a small problem.
I have a Super Carrier hardwired as a driver for a parallel LCD.· It receives serial data from a circuit on·my PDB which conveys date and time.· The PDB data is received into an array, which is loop read by the LCD program.
Everything works just fine.
Now I want to incorporate temperature.· I have an TLC2543 built up as an AppMod.· However, the PDB has no AppMod connector but the Super Carrier board does.· So...I can plug it into the Super Carrier and derive a temperature.· Now I have a variable - AD0 - that contains the temp.
Let's say the ADC reports 798.· Problem - how do I get 798 into a string that says "dec AD0/10, ".". dec1 AD0" so that the Put_LCD_String routine can read it one byte at a time and send each byte to LCD_Write_Char.
My array is defined as msg·· VAR· byte(20).
I tried msg\20 = ..AD0 stuff and
STR msg\20 = ...AD0 stuff but that didn't work.
I can write "Temp is: ", 0 to DATA and get that much OK, then I could append AD0 if I can get it into a string.
Any suggestions?
Sid
I have a Super Carrier hardwired as a driver for a parallel LCD.· It receives serial data from a circuit on·my PDB which conveys date and time.· The PDB data is received into an array, which is loop read by the LCD program.
Everything works just fine.
Now I want to incorporate temperature.· I have an TLC2543 built up as an AppMod.· However, the PDB has no AppMod connector but the Super Carrier board does.· So...I can plug it into the Super Carrier and derive a temperature.· Now I have a variable - AD0 - that contains the temp.
Let's say the ADC reports 798.· Problem - how do I get 798 into a string that says "dec AD0/10, ".". dec1 AD0" so that the Put_LCD_String routine can read it one byte at a time and send each byte to LCD_Write_Char.
My array is defined as msg·· VAR· byte(20).
I tried msg\20 = ..AD0 stuff and
STR msg\20 = ...AD0 stuff but that didn't work.
I can write "Temp is: ", 0 to DATA and get that much OK, then I could append AD0 if I can get it into a string.
Any suggestions?
Sid