If i look on the chip, it says DS1820, but on my order sheet from digikey it says DS18S20+CT-ND
You think they sent me the wrong chip ?
I got it working, juste did not seperate th loe and high bytes
k
If i look on the chip, it says DS1820, but on my order sheet from digikey it says DS18S20+CT-ND
You think they sent me the wrong chip ?
I got it working, juste did not seperate th loe and high bytes
k
Last edited by lerameur; - 17th December 2006 at 23:03.
HI I found this program ,
it seems to work , but it is 2 degrees higher then my other thermometer.
Ken
DQ var PortB.3
temp var word
loop:
owout DQ,1,[$cc]
owout DQ,0,[$44]
Pause 500
owout DQ,1,[$cc]
owout DQ,0,[$be]
owin DQ,0,[temp.byte0,temp.byte1]
lcdout $FE,1
temp=temp*5
lcdout " Temp = ",DEC2 temp/10,".", dec1 temp," ",$DF,"C"
goto loop
End
Bookmarks