Re: [bascom] DS1621?


From Yves Pilloud <yves.pilloud@epfl.ch>
Date Wed, 13 Jun 2001 16:44:42 +0200

I did it for a DS1624 and all is ok.
I can send you the code if you want.

yves

Wong Sy Ming wrote:

Hi, I am trying to use a DS1621 I2C thermometer with a 89c2051 CPU, but when I read the temperature register all I get is rubbish like 85 (not possible ! :). Program goes something like this:DS1621 is wired up as address $4F (A0-A2=high) i2csend &H4f, &HACi2csend &H4f, &H03   'one shot mode dowait 1     'wait 1 sec for ds1621 to convert tempi2csend &h4f, &hee    'start conversioni2csend &h4f, &haa    'read temp registeri2creceive &H4f, templcd "temp="; temploop Any help??Thank you!! :)