Alain,
The oscillator speed of your PIC is 20MHz.
Can you try to change "DEFINE OSC 20" in "DEFINE OSC 25" and flash
the PIC running at 20 MHz with this code? If you try that you will
probably increase the EEPROM writing time and see if ONE write is
enough. This is just a test.
Best regards,
Luciano
EDIT:
Are you absolutely sure that the oscillator speed is correct?
-
Bookmarks