You can change the resolution of the DS18B20, but not the older DS1820.
And yup, it goes much faster.
<br>
You can change the resolution of the DS18B20, but not the older DS1820.
And yup, it goes much faster.
<br>
DT
Ok, we'll go the easy way then.
Assuming you're not using the alarms ...HTH,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) OWOUT DQ, 1, [$CC, $4E, 0, 0, DS18B20_10bit]
DT
Thanks Darrel
Would it be possible to share your 9/10bit conversion routine to degrees centigrade
? Walter
The conversion is the same, no matter which resolution you use.
At lower res, the least signifcant bit's become 0's.
<br>
DT
Using the resolution setting would it be possible to make the 18S20 and the 18B20 interchangeable with the same software? I have tried setting the 18B20 to 9 bit and get readings using my 18S20 programming but get some very high temp readings.
Bookmarks