Sean Breheny wrote: > Hi Bob, > > > On Fri, Mar 28, 2008 at 2:31 PM, Bob Axtell wrote: > >> This MIGHT be related to what I found, in that the CCS routine does NOT >> use the Microchip- >> recommended workaround for the issue. The issue, as explained by MC, was >> that people were >> testing a bit in the PIR register to determine when flash writes had >> ended. The problem was that >> the EEIF bit in the PIR register could be set early erroneously, causing >> people to assume that it >> was done when in fact it was not. The symptoms were that bytes were >> either not written at all >> or only partially written (some LOW bits missing). >> >> > > Except that his problem is that the code is hanging after 172 or 176 > bytes (I can't offhand remember which it is at the moment), not that > bad data is being written. > > Sean > Pretty odd problem alright. Good luck! --Bob -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist