write alarms to ds18b20

Hi
Can someone please tell me how to write the TH and TL alarm values to a DS18B20
I know one uses the 4Eh command but don't have a clue how to do it
Cheers
Paul
 

westaust55

Moderator
Not at home to test anything myself.

Based on response from BeanieBots to another DS18B20 thread, if you have the 28X1 or 40X1 PICAXE, I would suggest that you look at the one-wire commands (OWIN and OWOUT).

Read the Manual 2 pages 105 and 106.
There are example for for initiating and reading the temp from a DS18B20.
So with the temp sensor datasheet this is the starting point.
 
Last edited:
Thanks for your post.
I am using owin and out to read temp values, but don't really know how it works.
The information in the manual and especially the data sheet is so geek speak specific that i find it difficult to get my head around.
I would really like to find out how write the alarm values and then how to read them befor my head exploded all over my screen, makes such a mess!!
I will keep lookin and hoping
cheers
 
Top