EEPROM(M24128) Page write using I2C- s32k144
In this data sheet for after each page write eeprom will take 5msec gap for next page write
using provied api's i wrote the code to write data page by page in eeprom. Instead of waiting 5msec data sheet provided polling mechanism, it's saying first i need to check start and device address checking if master get ack then send reg address
with provied api's I can't check upto start and device address to check the slave is responding or not. because that api itself start, device address then provied address it is transmitting. we can't stop in middle,start again from reg address from middle.
below i am adding my code and data sheet please help me in this to check upto device address, if got ack then immidiate send from reg address then data using provided api's.
Hi,
I think you can send the device address + the register address and if the master receives NACK it will terminate the transfer with a STOP condition. And you can repeat this until the slave is ready.
BR, Daniel