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

how to read slave address in iic(twi)

hello, i am using nrf52 dk .I was testing example twi scanner.I want to read slave address.So i am using twi scanner example but i got error message as follow:

TWI:INFO:Transfer type: XFER_RX. TWI:INFO:Transfer buffers length: primary: 1, secondary: 0. TWI:WARNING:Function: nrf_drv_twi_xfer, error code: NRF_ERROR_DRV_TWI_ERR_ANACK.

can any help me to resolve the issue

Parents
  • I got error message "NRF_ERROR_DRV_TWI_ERR_ANACK" & during scan I got "No devices found" at the end .I am giving vdd 2.8 volts to the master slave circuit .can you please confirm nrf52 iic can operate at 2.8 volts. I am connecting PCA9536 module as slave & address of that module is 0x41. The operating voltage range of PCA9536 module is 2.3 volts to 5.5 volts, So slave pca9536 will work on 2.8 volts but i want to know will nrf52 i2c work on 2.8 volts & I also wanted to know possible ways to find the reason for "NRF_ERROR_DRV_TWI_ERR_ANACK" error. Can anyone suggest me to debug this issue.

Reply
  • I got error message "NRF_ERROR_DRV_TWI_ERR_ANACK" & during scan I got "No devices found" at the end .I am giving vdd 2.8 volts to the master slave circuit .can you please confirm nrf52 iic can operate at 2.8 volts. I am connecting PCA9536 module as slave & address of that module is 0x41. The operating voltage range of PCA9536 module is 2.3 volts to 5.5 volts, So slave pca9536 will work on 2.8 volts but i want to know will nrf52 i2c work on 2.8 volts & I also wanted to know possible ways to find the reason for "NRF_ERROR_DRV_TWI_ERR_ANACK" error. Can anyone suggest me to debug this issue.

Children
No Data
Related