ok, i got it to output the voltage... so, the analog input now output as a voltage over serial connection... so i'm posting my code for anyone else that wants to use it...
Code:
Loop:
ADCIN 0, ADT1
ADT1 = ADT1 / 64
VARHIGH = ((48 * ADT1) / 10000)
VARLOW = ((48 * ADT1) - (((48 * ADT1) / 10000) * 10000)) / 100
HSEROUT ["DEC: ", DEC5 ADT1," V: ",DEC5 VARHIGH,".",DEC5 VARLOW,10]
GOTO Loop:
It's actually reading 2% low in the simulation... but thats good enough for me... may be a completely diferent case when in hardware...
Bookmarks