Quote Originally Posted by Luciano
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?


-
Hi,Luciano

Sorry, but that won't give anything ... as the EEPROM writing time is controlled by the PIC Hardware ...

For the Osc speed, it's correct : 1.52 ms input signals give ( 279 + 7H ) Hex.

( EEPROM addresses are: 01 high byte, 02 low byte, and 30 Offset )

Thanks for the idea ...

Alain