Oli Glaser wrote: > It must either not be getting programmed to 0, or MPLAB is reading > back from the wrong register, or something along those lines.. What he showed was the output of the TEST_PICPRG program that talks to the LProg directly. MPLAB was out of the loop at the time. > I'd go > for the not getting programmed as I assume that you have read F8000E > back correctly, but Olin said he checked the config bit masks and > they were correct. I checked the mask in my PICPRG.ENV file for my PIC programmers software. One possible bug was that I accidentally indicated that bit as unwriteable, which would make it impossible for the LProg to set it to 0. However, that's not the case. Here is the config bits definition block for the 33FJ64GP802: config 16#F80000 2#11001111 config 16#F80001 2#00000000 config 16#F80002 2#11001111 config 16#F80003 2#00000000 config 16#F80004 2#00000111 config 16#F80005 2#00000000 config 16#F80006 2#10000111 config 16#F80007 2#00000000 config 16#F80008 2#11000111 config 16#F80009 2#00000000 config 16#F8000A 2#11011111 config 16#F8000B 2#00000000 config 16#F8000C 2#00000111 config 16#F8000D 2#00000000 config 16#F8000E 2#11100011 config 16#F8000F 2#00000000 It shows bit 5 of F8000E being a valid programmable bit. > Is there a way to manually select the config bits > with the LProg? You can read and write any programmable bits with the TEST_PICPRG program. I already showed him how to manually set the offending bit to 0 in a previous message. > If you can confirm it's actually trying to program that bit to a 0, > then the only thing left seems to be silicon issue of some sort. More likely something in the toolchain is setting the bit to 1, like a incorrect mask in the include file, or maybe some errant logic that sets JTAG if some other debugging is enabled. A silicon issue the least likely source of the problem in my opinion. ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .