Hi Art,
Here's a quote from the manual on the WRITE command:If interrupts are used in a program, they must be turned off (masked, not DISABLEd) before executing a WRITE, and turned back on (if desired) after the write instruction is complete. An interrupt occurring during a WRITE may cause it to fail.
And here's a quote from the datasheet on the PIC18F25K22To write an EEPROM data location, the address must first be written to the EEADR register and the data written to the EEDATA register. The sequence in Example 7-2 must be followed to initiate the write cycle.The write will not begin if this sequence is not exactly followed (write 55h to EECON2, write 0AAh to EECON2, then set WR bit) for each byte. It is strongly recommended that interrupts be disabled during thiscode segment.
So, I think the answer is Yes - Interrupts can interfere with writes to the EEPROM.
/Henrik.
Bookmarks