EEPROM polling in I2C interrupt routine
2006-03-03 by Jacek Domanski
Hello All, I have a problem with EEPROM polling in my I2C interrupt routine (for LPC2114). After write sequence, there should be done polling and EEPROM should not ack when I'm trying to access it - for time of internal write sequence (as Microchip write in the EEPROM datasheet). I don't know why but unfortunatelly this is not a true - EEPROM always answers ACK (probably - there is no 0x20 or 0x30 state from I2STAT). When I completely switch off EEPROM - this states shows, so it looks that LPC works fine. When I'm trying to read memory immediately after write - there are some errors, and received bytes differs from that I just wrote. When I put a delay routine between write and read - it works. It looks that internal address counter in the memory is set wrong (too fast access after write?) So - the question is - what can I do with it? :-) I'm new in the field of ARM processors, so maybe I make some mistakes? -- Best Regards, Jado.