# How to connect the pic16f59 to a pickit 3?

I have already asked a question on this forum on how to get an LED light up using a pic16f59 with pickit 3 (The post can be found here). Some people have pointed out that it must be a problem connected a pickit on my pic. I wonder how to do this. As for now, I am using the pickit 3 and I am connecting the PIC as follow:

     pickit 3          PIC
-----------        -----
1            14
2            35
3            5
4            13
5            12


Also, I am connecting the VDD (pin 15 and 35) to 5V, VPP to 12V and I have also added a bypassing 1microfarad capacitor on VDD. I also connected all VSS to ground. Please refer to the PIC16F59 pinout below.

I wonder what I am doing wrong? Should I add more capacitors? I am using the right capacitor (1 micro-farad) in the first place? Please someone help. I have been doing this for more than two days with no success.

• You should add a capacitor to every VDD/VSS pair. I use 100nF for decoupling caps. Have you external circuitry on your reset pin or the programming pins (pin 12, 13, 14)? This could disturb the programming. See page 68 (Appendix B) of the PICkit 3 manual. – PetPaulsen May 6 '12 at 7:38
• This is a fairly old device. Do you got an oscillator hooked up on pins 33/34? It requires this to be able to run. – Hans May 6 '12 at 15:28