Gayan Soyza
Active Member
Hi I'm using DS18S20.I'm confused with the scratchpad.
When I use
Read Scratch pad command according to the datasheet it says it will reads the whole memory in the scratchpad.
How I read the temperature? Is it ok if I read the DS (Data Pin) after the above command?Will it automatically select the result registers?
When I use
Code:
movlw H'BE'
call DS_Transmitt ;Read Scratch pad
Read Scratch pad command according to the datasheet it says it will reads the whole memory in the scratchpad.
How I read the temperature? Is it ok if I read the DS (Data Pin) after the above command?Will it automatically select the result registers?