Ian Jordan wrote: > > I've checked both the '872 and '876 data sheets- they both use Bank 3 as the > initialization area for the EEPROM. > > In fact, the code I am using to write to the EEPROM is direct off the '876 > data sheet- it doesn't work on the '876, but it works fine on the '872. This > code specifically changes to certain banks when needed. Ian Last week I posted my EEPROM write code to help somebody with a bank problem. Do a search in the archives for: Re: [PIC]: EECON1,WR is not set!! I don't mind sharing the code here, as it is just my adaptation for what is in the Data Sheet. I've used the same code on various '876 and '877, both with 4Mhz, 20Mhz xtal and 2Mhz RC. It is a macro where I load the data into Wreg and the address in a special reg before calling. Please test it on both your '876 and '872 and let us know if it works. Maybe you can find the problem by trying somebody elses code. Quentin -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu