Hi,
Looking for advice here with the 12F509 and temperature sensor. Using hte DS18B20 since it's one wire.
My first issue, is the 12F509 won't accept the word as variable and any variable is seen as a byte. Spinning wheels a bit on this issue and lookig for some simple code to read the sensor.
Using cut down of the sample code:
temperature VAR WORD ' Temperature storage
OWOUT DQ, 1, [$CC, $44] ' Start temperature conversion
pause 2000
OWOUT DQ, 1, [$CC, $BE] ' Read the temperature
OWIN DQ, 0, [temperature.LOWBYTE, temperature.HIGHBYTE]
Not seeing data come in from the sensor so suspect it's got something to do with the inability to setup a word variable??
I've got the DS18 operating previously on 18 series micros hence don't think it's a hardware issue at this point.
Did read somewhere I need to run PBPW to support word variables, which I can't seem to find but I'm using PBPX 3.1.6.4
Bookmarks