Am I right in assuming IF i dont use the constants then it would default to 0.0625°C resolution and take 750ms to take a reading?
BUT IF I want to change the resolution I'd use the constants, but the code would be
Code:
OWOUT DQ, 1, [$CC, $4E, 0, 0, DS18B20_9bit]
OR OWOUT DQ, 1, [$CC, $4E, 0, 0, DS18B20_10bit] etc?
and this would take 187.5ms?
OK figured out $33 is skip rom command, and $4E is Write scratchpad
but what's the 0,0 after it?
ANd IF I was using more than 1 temp sensor then it would be something like
Code:
OWOUT DQ, 1, [$55,$28,$B1,$FE,$22,$00,$00,$00,$5D,$44, $3F ]
; or do I HAVE to use the DS18B20_10bit instead of $3F?
Assuming the ROM address is $B1,$FE,$22,$00,$00,$00?
I know that Match ROM is $55, Read ROM is $33, and Search Rom is $F0
And I know the $44 at the end is telling it to start a temperature conversion
Sorry for asking so many questions
Bookmarks