Hi. Welcome to the "Banked World" :):) You might check the bank asigment for 16F876. Probably It doesn't match with 16F872's. Check also the status of RP0 and RP1 in STATUS register. regards. ---------------------------------------------------------- Ing. G. Quilosa Development Dept. ---------------------------------------------------------- ----- Mensaje original ----- De: Ian Jordan Para: Enviado: domingo 2 de septiembre de 2001 17:29 Asunto: [PIC]: 16F876 EEPROM Write Problem > 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 can read the EEPROM, and I don't get an error on the '876, but when I go > back and read it again, it hasn't changed. I can change the value the EEPROM > read sees when programming the chip, but not in operation. My EEPROM address > block begins at 0x2100, and I have a loop that waits for EECON1,WR to go > low. > > Is there anything really different between the '872 and '876 when it comes > to writing to the EEPROM? I looked over the datasheets and didn't really see > anything different. Seems strange to be that the '872 would write fine but > the '876 doesn't. They are using identical code and on the same breadboard, > same circuit. > > -- > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > email listserv@mitvma.mit.edu with SET PICList DIGEST in the body > _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu