Yes, first I tried immediately before the call to the write subroutine, and when this failed to work I switched to clearing the WDT before the write of each byte. The routine writes a total of 8 bytes. I'm stuck ! Olin Lathrop wrote: >>I have some code for a 12F675 which writes config parameters to EEPROM >>once they have been captured. This code works fine, but as soon as I >>enable the Watchdog timer, the EEPROM write fails. >> >>I can't find any reference in the data sheets for this, and I wondered >>if anyone else has experienced this problem. I did wonder if this could >>be related to the time taken for an EEPROM write, but haven't been able >>to find specific timings. > > > Have you tried kicking the watchdog right before and right after the > EEPROM write? > > > ***************************************************************** > Embed Inc, embedded system specialists in Littleton Massachusetts > (978) 742-9014, http://www.embedinc.com > > -- > http://www.piclist.com hint: PICList Posts must start with ONE topic: > [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads -- Andy Pryer Email: andy.pryer@cubecomputing.com Web: http://www.cubecomputing.com Tel/Fax: 01582 703872 ------------------------------------------------------------------ PGP Fingerprint FF1A 67E9 8E52 8689 68DF C86A FCE9 002B 61B8 5C73 -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads