Gonzalo Jiminez wrote: > I'm worrking with a 16F876A, I've made a macro following datasheet > instruction to read and write EEPROM, but I guess there is something > really wrong, I program the PIC, the program runs acordingly, then when > I try to read the PIC to see if any change happened in EEPROM I can not > do that because it says that it's code protected. The software may be using the term "code proteced" for all the various code/data protection mechanisms. These are all set in the config word. Change the config bits to turn off all code/data protection and you should be able to read the EEPROM data back with your programmer. > I know if a PIC is code protected I can not over write it, No, you can't read it. Code protection is meant to keep someone from copying your product. If everything is protected, then you can only write a new program into the chip be first bulk erasing it. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, 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