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.

Jon, I put my ADC program in slot 1, then tacked on your neat little routine.· I set flags to jump to slot 1 immediately after the LCD displays time and date, and it works fantastic.· I was running out of space so I aliased temp as AD0 and idx as com.· I'll probably go back and just change the variable names - that would be simpler.· I deleted the two lines that said:

temp = 3
GOSUB Pront_Temp

They generated an extra·"Temp = " on the LCD.· I couldn't figure out what you had in mind do I just deleted them.· Would like to add another temp - AD1 but I have no variable space left.· Maybe after the LCD displays AD0, I could rerun the whole thing and just reuse AD0.· That should work - I've done that before.

The demo program was setup just to show that it would correctly "print" values from 0.0 to 6553.5 correctly. I'm glad it worked for you.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax

Newzed

06-05-2005, 03:16 AM

I connected my TLC2543 AppMod into the Super Carrier board and now I'm reading actual room temperature.· I'm going to have to adjust the ADC output with a· */· so it will read the accurate temp.· Thanks again, Jon.