At 12:28 AM 08/10/00 +0000, you wrote: Hi Kevin, Relax, I'm sure the chip is fine. The problem appears to be that you have tried to "half activate" code protection with the config value in your HEX file. Instead the chip has revolted and programmed all the code protect bits (they should have been defined to the same value in you hex file but were not.) 0xf32 is NOT a valid config word, it tells the chip to program only one set of CP0 & CP1 and there are two sets. The chip is taking it on itself to program the other set (bits 4 and 5). (Ok, this is an educated guess, I have not proven this is what the chip is doing but I do know from experience that PICs will change code protection bits during programming if it does not like what it gets.) Because you have not defined this in the HEX file you get a verify error on the config word. Your 0xf32 returns as 0xf02. To fix this: Change your config word so that it is 0xf02 Reprogram the Config word (This forces the software to break CP next program) Change your config word so that it is 0x3f32 (Code protection off) Reprogram the config word. Reprogram the chip with your code and config word as 0x3f32. BTW, Your other config bits are just fine. You have done well to get them right on the 16F87x first go. Good luck! -Jim >I know this has been answered before, but the piclist archives don't >seem to be working at the moment and I'm itching to continue working. > >After successfully programming an '84, I took a test program from >http://members.optushome.com.au/donmck/vicuni/16f877.html and tried to >load it on a fresh '877. Unfortunately, it fails to program when trying >to program the configuration fuses and I fear I may have enabled code >protection. The code does not verify either. > >When programming (using Brian Lane's PICPRG and Dontronics DT101 >programmer under Linux), the software fails saying that at address >0x2007: 0xf02 != 0xf32. > >Assuming I trashed the chip, can someone tell me why (and how) this >happened? Regards, Jim Robertson NEWFOUND ELECTRONICS Email: newfound@pipeline.com.au http://www.new-elect.com MPLAB compatible PIC programmers. -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! use mailto:listserv@mitvma.mit.edu?body=SET%20PICList%20DIGEST