This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

TWI send NACK after receiving data.

SensirionHumiditySensorsSHT3x.pdf

I'm using a Sensirion sensor (see attached datasheet). I'm running SDK 12.2 and SD132. I've set up the TWI to be a master, and I'm using Nordic's TWI Driver.

My application needs to read the temperature and humidity every few minutes. I set the sensor for a single shot acquisition. I then read the sensor data, which is a 6 byte packet. I'm getting good data for the first read, however the sensor is expecting a NACK after sending the 6th byte (see page 10). Without the NACK the sensor rejects any new requests for a single shot acquisition.

Is there a way in Nordic TWI driver to force a NACK on the TWI after receiving a fixed number of bytes?

I can force a reset on the sensor, but I'm hoping for a more elegant solution.
Thanks

Parents Reply Children
No Data
Related