Ben,
Did you set the AN inputs to Digital?
ANSEL = 0, or at least ANSEL.5 = 0 (RB6 = AN5)
The way it is now, when temperature = 65535, you get 74degF. So it's reading the DS18B20 as all HIGH bits.
And the conversion is direct to deg F, so you shouldn't have to divide by 100 before displaying to the LCD.
<br>
Bookmarks