Well Bruce, seems like I'm in 1's hell
I tried putting ADCON1=15 at the beginning of my program and my raw temperature (the 16-bit data from DS18B20) reads %1111-1111-1111-1111 ... all the time.
Not only that, but I tried reading the unique 64-bit ROM address of the sensor using a modified version of the program I found at [http://www.rentron.com/PicBasic/PBP1-wire.htm]. The address reads FFFFFFFFFFFFh.
I connected a voltmeter at the DQ pin. It toggles between 4.7V and 4.4V while the program is gunning. I checked the pin-connections of the sensor (making sure I match the "bottom view" of the datasheet) and my GND pin is connected to ground, my Vdd to the output of the 5-Volt regulator, and my DQ to RB4 with a 4.7k resistor connected between RB4 and Vdd. Seems ok to me.
Any idea what the hell is going on? Thanks in advance for any suggestions.
Bookmarks