faiz18
Newbie level 6
Hi All,
I am trying to interface the SHTW2 sensor from Sensirion with the nordic nrf52810 mcu. The Sensor uses I2C to communicate and nordic has its own version of I2C called TWI. From the datasheet of the sensor, The flow to get successful measurement is as follow:
I am able to send the data over to the sensor as I get ACK for all the writes but when I try to read data, I get an NACK.
Does anyone have any idea as to what could be the problem here?
This is what I do for measurement:
1. The I2C slave address is 0x70. We start by sending the write condition i.e. I2C address + write bit (0).
2. Then send the command one by one
3. The read condition i.e. I2C address + read bit (1).
4. Read back sensor data into an array. -> this is where I receive a NACK.
Thanks for the help in advance.
Faizan.
I am trying to interface the SHTW2 sensor from Sensirion with the nordic nrf52810 mcu. The Sensor uses I2C to communicate and nordic has its own version of I2C called TWI. From the datasheet of the sensor, The flow to get successful measurement is as follow:
I am able to send the data over to the sensor as I get ACK for all the writes but when I try to read data, I get an NACK.
Does anyone have any idea as to what could be the problem here?
This is what I do for measurement:
1. The I2C slave address is 0x70. We start by sending the write condition i.e. I2C address + write bit (0).
2. Then send the command one by one
3. The read condition i.e. I2C address + read bit (1).
4. Read back sensor data into an array. -> this is where I receive a NACK.
Thanks for the help in advance.
Faizan.