Bingo! Thanks Tony & Jinx. Ideally, I'd think it would be better to clear the EEIF at the start of the write routine (seems more logical), but that would involve switching to bank 0 first. And it still works this way. I believe Tony is in Aus, but are you in that corner of the planet Jinx? Or are you in the US like I am and just have no life? :-) Cheers, -Neil. -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Pic Dude Sent: Friday, June 07, 2002 1:08 AM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC]: EEPROM write woes Testing this now. Stay tuned.... -Neil. -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Tony Nixon Sent: Friday, June 07, 2002 12:15 AM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC]: EEPROM write woes Pic Dude wrote: > > WaitEEWriteComplete: > btfss PIR2,EEIF > goto WaitEEWriteComplete > > return Shouldn't you clear the EEIF bit after it is set by hardware ready for the next write. -- Best regards Tony mICros http://www.bubblesoftonline.com mailto:sales@bubblesoftonline.com -- 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 -- 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 -- 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