I have been tearing my hair (not much to pull) out with writing to the PIC18F1320s Data EEPROM. I finally went to a routine which repeatedly writes and reads until the two agree. However, this is taking up to 85 retries and although I now have a working solution, it is really only working on my bench and I am not comfortable fielding the product. I must be missing the obvious. I have posted the code here I am aware of a silicon errata relating to reading EEPROM, but this doesn't seem to be my problem. Any help would be greatly appreciated. Peter H Anderson, pha(at)phanderson.comhttp://www.phanderson.com --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.