Connecting PICkit2 to PIC microcontrollers

Ver.01.0900606

 

INTRODUCTION

The PICKIT2 is an inexpensive yet reliable programmer/debugger for a number of popular PIC devices including PIC16 and PIC18 series of controllers. Refer to the manufacturer’s website for technical details about the programmer/debugger.


OBJECTIVE

Demonstrate the proper connection of PICKit2 programmer/debugger to a PIC micro.

 
 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


PINOUTS

 

The PICKIT2 has 6 connectors of which only 5 will be used for programming/debugging.

Pin 1 is marked by the triangle at the right most connector. The figure below shows the pinouts.

 
 

 

 




 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


Using a PIC18 device, you may connect as follows:

 

PICkit 2 pin

PIC18XXXX pin

1 = VPP/MCLR 

1  = MCLR/VPP/RE3

2 = VDD Target

20 = VDD

3 = VSS (ground)

8  = VSS

4 = ICSPDAT/PGD

28 = RB7/KBI3/PGD

5 = ICSPCLK/PGC

27 = RB6/KBI2/PGC

6 = Auxiliary

No Connection



You may also want to build an extension for the programmers connector when it is difficult to secure a connection or when horizontal headers is not an option. It can be built from a five-wire ribbon cable or a group of 5 wires. Solder a male header and a mating female connector at opposite ends as in the picture below.

 

 
 

 

 

 

 

 

 

 

 

 

 


Secure and insulate the solder point on both sides with hot glue.

 
 

 

 

 

 

 

 

 

 

 

 

 


With the extension cable, you may now add vertical programming headers on your target PCB.

 

 

Contribution by user kulinti

___________________________________________________________________________________________________________________________________________________________________________

Disclaimer: The information contained in this website is for general information purposes only. The information is provided by layadcircuits.com or its contributing users, whilst we endeavor to keep the information up-to-date and correct, we make no representations or warranties of any kind, express or implied, about the completeness, accuracy, reliability, suitability or availability with respect to the website or the information, products, services, or related graphics contained on the website for any purpose. Any reliance you place on such information is therefore strictly at your own risk.