You will need a +12V power supply for this. The trick is to hold the microcontroller(In my case PIC16F877A) MCLR line to +12V until just the programming operation begins and you have to quickly remove the power or else the programming will fail. This short time pull is needed only when entering the Debug mode or programming mode. You have to work around at what time exactly you remove the connection. Now my PICKIT2 is working properly with a extra 12V adaptor. Hope yours works too.. 😉
One comment
Fábio
Maybe you could use a mosfet to drive the external 12v using the mclr to the gate. This way the programmer would control the exact momment to go high or low.