Getting a NACK from slave device communication through IIC

Thread Starter

Nirupama.T

Joined May 3, 2019
2
Hi all,
I am trying to communicate with Kionix 124-1051 in my nRF52832 board using IIC. The slave is not responding after sending the slave address. I have checked all the possible conditions to make this work. Every time i get the same result. Clock, slave address, etc are all correct. But i don't know what's the problem. Any help could be appreciated.

Thanks,
Nirupama.T
 

Thread Starter

Nirupama.T

Joined May 3, 2019
2
Yes, ADDR pin is grounded and address of the sensor is 0x1E. I tried running TWI scanner app, there I am not getting any No device is found, but I am also not getting the address of the slave.
 

Attachments

Ian Rogers

Joined Dec 12, 2012
1,136
And does the TWI code take care of the read / write bit? The SAD is 7 bit so it will end up as 0x3C + R/Wbit..

Is there pullup resistors on the dev board for SDA and SCL?
 

BobaMosfet

Joined Jul 1, 2009
2,211
Hi all,
I am trying to communicate with Kionix 124-1051 in my nRF52832 board using IIC. The slave is not responding after sending the slave address. I have checked all the possible conditions to make this work. Every time i get the same result. Clock, slave address, etc are all correct. But i don't know what's the problem. Any help could be appreciated.

Thanks,
Nirupama.T
Do you understand i2c communications? It's very straightforward and the signal levels will tell you what state it's in. Use an oscilloscope and watch the signals.
 
Top