I've seen many examples of code for the DS18B20 and I've successfully made it work before
However there is one thing I dont understand and could someone please explain it to me?
IN this code
Code:
DS18B20_9bit CON %00011111 ; 93.75ms, 0.5°C
'DS18B20_10bit CON %00111111 ; 187.5ms, 0.25°C <-- My favorite
'DS18B20_11bit CON %01011111 ; 375ms, 0.125°C
'DS18B20_12bit CON %01111111 ; 750ms, 0.0625°C (default)
I can see how the various resolutions are BUT when it comes to this line
Code:
OWOUT DQ, 1, [$CC, $4E, 0, 0, DS18B20_9bit
HOW do I tell it I want to have 10 or 11 or 12 bit resolution?