Dear Nordic Team,
Thanks for supporting.
I want example code for I2C interface with AT24C32
Dear Nordic Team,
Thanks for supporting.
I want example code for I2C interface with AT24C32
so you have checked that the (or any) communication happens on the bus? Since you do get an NRF_SUCCESS response from init function, I would suggest to spy on the communication on hardware side to see what is actually happening. If the TWI is setup correctly, than you definitely would see the communication using an osci, even if writing and reading is not working correctly. Than we would be able to figure out where from here we would have to go --> digging deeper into your project configuration and setup or towards the AT24 and its connection to the devkit.
hi how are you. After small gab i continue the I2C WITH external memory.
I want to know the busy check for I2C.
I am using 2.8v vcc for AT24C32 EEPROM it is enough for read and write operation
Hi Johannes , TWI running successfully. Little bit modification in your read function after write the address give small delay as like below.
nrf_drv_twi_tx(&m_twi_master, I2C_24C128_SLAVE_ADDR, eep_by_address, 2, true);
// read a byte
nrf_drv_twi_rx(&m_twi_master, I2C_24C128_SLAVE_ADDR, val,1);
nrf_delay_ms(5);