Hello again,
No smoke… yet.
I made and plugged in a 2.000 Volt reference for Vref+.
The old brain is partially hibernating and I can’t get the decimal to appear correctly.
Some changes to the code:
ANSEL = %00001111 ‘ not sure if I need both AN2 and AN3 for Vref since I only use Vref+ on AN3.. well seems to work so far. Perhaps better to make AN3 an output?
ADCON1 = %11100000 ‘ right justify – clock/2 - use Vref+.
ADCIN 0,T
T = (T*/200)>> 2
LCDOUT $FE,1,"TEMP= ",DEC T, “.”, DEC1 T, “C”
Could use a sharper brain!
Yes, I have fun!
Bookmarks