Try this way:
Or if you need decimalsCode:ADCIN 6, lmtemp vout =(lmtemp*100)/205 temp = Vout-50
Make Vout a word variable ; Interger_Byte and Decimal_Byte byte variablesCode:ADCIN 6, lmtemp vout =(lmtemp*49)-5000 Integer_Byte = Vout/100 Decimal_Byte = Vout//100 Hserout ["Temp = ",Dec Integer_Byte,".",Dec2 Decimal_Byte," °C",13,10]
Al.
Bookmarks