Are you disabling interrupts during the EEPROM write? Also, make sure the EEPGD bit is cleared. (for data write) Does the whole thing 'hang' or just have wrong values? Regards... At 05:26 AM 30/10/00 -0700, you wrote: >I followed the app notes int eh F871 doc's on reading and writing to the >internal EEPROM, but it does not seem to be working. Algorithim is basically >I load a register and begin to count down...at some point I stop the counter >with an external input, and write the value of the counter to the EEPROM, then >continue to count down. Another input again halts the counter and loads from >the previous value. But it does not work...and not sure if its the read or >write routine. > >Does anyone have a WORKING routine for this? -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics