> I'm having trouble writing to the EEPROM on a 16F876. I have code that was > written for a 16F872, and it works fine on that chip. If I burn the exact > same code into a 16F876, it doesn't work. I don't have the 16F872 data sheet in front of me, but it probably has different register banks. Take a look at your bank selection code very carefully. Most likely you ended up doing something like accessing an aliased register on the 872 that isn't aliased on the 876, or something similar. If the 872 only has two banks, maybe you aren't setting RP1 at all? ******************************************************************** Olin Lathrop, embedded systems consultant in Littleton Massachusetts (978) 742-9014, olin@embedinc.com, http://www.embedinc.com -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body