Philippe wrote: > > At 09:38 07/04/1997 +0200, you wrote: > >> > >> At 09:02 07/04/1997 +0200, you wrote: > >> >Hi, > >> > > >> > Is there anybody that's able to help me about the temp sensor from > >> >Dallas: DS1620? I am trying to find out if it is doing self > >> >thermostating while in CPU mode (3wire interface). Can anybody help. > >> >Thanks a lot. > >> > > >> Dowload the DS1620 datasheet at DALLAS URL, the data sheet is very complete: > >> http://www.dalsemi.com/DocControl/PDFs/pdfindex.html > >-- > > I already got this, but in fact they don't tell if the sensor is doing > >temp. regulation when in CPU mode. They also have an example of > >communication between DS1620 and CPU, but they don't wait 10ms between > >each write to TH or TL register, nor CONFIG. What am I supposed to > >understand? > > This is what the data sheet said: > > NVB = Nonvolatile Memory Busy Flag. > 1=write to an E 2 memory cell in progress. > 0=nonvolatile memory is not busy. > A write to E 2 may take up to 10 ms. > > I think better is to test the BIT NVB in CONFIGURATION/STATUS REGISTER > before doing something else. This chip seems to have a RAM copy > of the EEPROM section (like NOVRAM). > > In all case writing into an EEPROM take a certain time, this is due > to physical matter and charge accumulation, then, it's normal to wait > about 10ms before EEPROM is wrote correctly. > Best way is to test NVB bit until wrote is completed, or in the > worst case to wait 10ms. > Note 10ms is a maximum, at the begining it will take 2ms for example > and after 10.000 write operations it will take 9,9ms. > > Regards, > Philippe. > > +---------------------------------------------------------+ > | Virtual Micro Design | > | | > | Try UMPS: the best microcontroller simulator | > | | > | E-Mail: p.techer@idls.izarbel.tm.fr | > | WEB: http://idls.izarbel.tm.fr/entp/techer/P01.HTM | > +---------------------------------------------------------+ Ok, mais est-ce que ce foutu capteur joue au thermostat lorsqu'il est en mode CPU? Est-ce que tu as du code pour un PIC afin de le controler? Merci. -- _____________ \ / David BALDWIN \ ALCATEL / Design engineer \TELECOM/ \ / SdM (Societe de Microelectronique) \ / \ / B.P. 4205 Phone : +32 (0)71 442932 V B-6000 Charleroi Fax : +32 (0)71 442905 (Belgium) mailto:baldwin@etca.alcatel.be