hey that' SOS right?
hey that' SOS right?
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
That is affirmative.![]()
Dave
Always wear safety glasses while programming.
Code:.-- .... .- - . ...- . .-. / -.-- --- ..- / -.. --- --..-- / -.. --- / .. - / .-- . .-.. .-.. / .- -. -.. / . -. .--- --- -.--![]()
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
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!
try
Code:LCDOUT $FE,1,"TEMP= ",DEC (T/10), ".", DEC T DIG 0, "C"
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Thanks Steve,
However this only moved the dot so instead of 26 C I got 2.6 C!
so you just need to adjust this line
T = (T*/200)>> 2
PBP works with integers only. If your result=263, you will display 26.3C with the LCDOUT line i've suggested.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks