EEPROM(M24128) Page write using I2C- s32k144

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

EEPROM(M24128) Page write using I2C- s32k144

1,128 Views
sandhyaj
Contributor I

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 

pastedImage_1.png 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

pastedImage_2.png

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.

Tags (3)
0 Kudos
1 Reply

850 Views
danielmartynek
NXP TechSupport
NXP TechSupport

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

0 Kudos