I have these two reference images:
and
and I'm trying to put a 6-pin header on my circuit so that I can easily reprogram the PIC if needed, without having to resolder. (I'm using the surface mounted version of the PIC, but I assume that makes no difference.)
So far, I have PK-pin1 goes to PIC-pin4, PK-pin2 goes to PIC-pin1, PK-pin3 goes to PIC-pin20, PK-pin4 goes to PIC-pin19, PK-pin5 goes to PIC-pin18, but I'm not sure about PK-6?
First of all, if I do this with the header, I will be able to reprogram the PIC in the circuit, right? Or will I need to put a jumper to isolate the PIC from the rest of the electronic components on the board? I will only have caps, resistors and microswitches. I am otherwise not using the MCLR/PGC/PGD pins at all.
And secondly, do I need to use the PICKit pin6 for anything?
Thanks
Best Answer
In your case you can leave pin 6 of the PICkit unconnected. You wont need it. Pin 6 is, as far as I can remember, for devices that need a special codeword to get into programming mode.
You dont need to seperate the programming circuit from your rest of the circuit, when you follow some rules (See Section 3 of the PICkit 2 manual):