Hello,
I am using TMP102. Reading a temp value or writing low or high limits is aslo working perfectly. But when I am trying to put this sensor in Shut down mode with One shot/ conversion ready then it stops providing temp value.
Will anyone plz tell me, what is missing in my code?
Here is the code
I2c.Start(SLAVE_ADDRESS);I2c.putc(0x01); //Write to config. regI2c.putc(0xE1); //Value to be written OS = 1 and SD = 1I2c.Stop();
I am writing this value just on init or do I need to write it again and again.
Thanx
Andy
Are you still addressing and reading the temperature registers? In SD mode the TMP102 will not provide a new temperature conversion value until another OS read is performed. Is this your question?
Yes. After setting SD mode I am addressing and reading the RXBUF every 2sec.
What do you mean by another OS read? Is it different than normal RXBUF read?
andy I am writing this value just on init or do I need to write it again and again.
Yes, you will have to write OS=1 to the configuration register each time you want it to wake up and measure temperature. Otherwise, while in Shutdown mode, the device is idle.