Jinx wrote: >With all due and sincere respect to David, Tony and James >and farts in Microchip's general direction, there is something >screwy going on. The various routines I've tried and modified >do write to the EEPROM (any value, any location) yet previously >written-to locations revert to FF. This is not a good thing "Go away or I shall taunt you some more!" (Monty Python - Holy Grail) Seriously, do they really revert to FF? Have you checked them by reading the chip back into MPLAB & checking the EE window? One thing that drove me crazy was that I was changing the value of EEADR before the write was completed. I think I was trying to read a different EE location when the EE write was still in progress. This really screws things up because the write routine is still using EEADR and it suddenly gets moved by the EE read routine! Send me your code if you like & I will take a look for you. Regards... -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu