Wow!
I do have a P (In the part number that is)
So that is a different datasheet, difference in the code and different connection.
Pin 3 of DS18B20 originally presumed to be VDD is now NC so disconnected.
I modified the code as follow:
I should have used another port to drive an MOSFET but I don't have one right now and it still works by driving the DQ high.Code:ReadSensor: OWOUT DQ, 1, [$55,str id\8,$44] 'instructs sensors to match[$55] this[ID] rom code and 'initiates[$44] temperature conversion on matching sensor high DQ ; added for parasite device pause 750 ; added for parasite device low DQ ; added for parasite device CkAgn: OWIN DQ, 4, [busy] ' Check for still busy converting IF busy = 0 THEN ckagn ' Still busy?, then loop owout dq,1,[$55,str id\8,$BE] 'instructs sensors to match[$55] this[ID] and start sending back scratchpad[$BE] OWIN DQ, 2, [Raw.LOWBYTE,Raw.HIGHBYTE]' Read two temperature bytes, then end communications return
So its all good now.
Thank you Darrel
Mike





Bookmarks