THINK I've sussed a bit more:
IF I want to change the resolution from the default I can use something like
Code:
OWOUT DQ, 1, [$CC, $4E, 0, 0, $5F] ' 11 bit resolution
and to address individual 1wire devices I'd use something like
Code:
OWOUT DQ, 1, [$55,$28,$B1,$FE,$22,$00,$00,$00,$5D,$44,$5F] THEN
OWIN DQ, 4, [Stat] ' Stat is constant + Check for still busy converting
IF Stat = 0 THEN W1 ' Still busy?, then loop
OWOUT DQ, 1,[$55,$28,$B1,$FE,$22,$00,$00,$00,$5D,$BE]
OWIN DQ, 2, [Temp.LOWBYTE,Temp.HIGHBYTE] 'Read two bytes, + end communications
GOSUB Convert_Temp
Bookmarks