How to connect any PICkit to a microcontroller (2024)

To program a microcontroller, you will need a tool such as the PICkit. This device links the IDE from the computer with the microcontroller, usually by a USB port. Continue reading to learn how to connect a PICkit 4 or any other PICkit to the microcontroller.

Do you know what are the requirements for programming a microcontroller? Here you will find a fresh guide to start; click in the link below:

https://www.techzorro.com/blog/requirements-pic-microcontrollers/

Table of Contents

USB Cable

I will use for this tutorial the PICkit 4. If you have the PICkit 3, it will work equally good. Connect the PICkit to the computer with the included USB cable. Notice that PICkit 3 uses mini-USB-B and PICkit 4 uses micro-USB-B.

  • How to connect any PICkit to a microcontroller (1)
  • How to connect any PICkit to a microcontroller (2)

How is the Microcontroller placed?

Is the microcontroller connected to a breadboard (left) or to a PCB (right)?

  • How to connect any PICkit to a microcontroller (3)
  • How to connect any PICkit to a microcontroller (4)

How to connect PICkit in a Breadboard? Use Jumper Cables

If the microcontroller is placed in a breadboard, then I recommend that you connect them with jumper cables o wires like ones below. They have to be 5 male-male units and at least 2,5cm long.

How to connect any PICkit to a microcontroller (5)

How to connect PICkit in a PCB? Use Pin Headers

If the microcontroller is already in the PCB, then it might be good idea to plug it with a pin header. It can be either soldered or unsoldered. It provides better mechanical grip than with jumper cables. (The square copper pad indicates the first pin).

  • How to connect any PICkit to a microcontroller (6)
  • How to connect any PICkit to a microcontroller (7)

How to connect the pins from the PICkit

From all connections or pins available in the PICkit, you will need only 5:

  1. MCLR: Master Clear.
  2. VDD: The power source (5V or 3.3V); the positive ‘ + ‘.
  3. VSS: The ground (GND) of the circuit; the negative ‘ ’.
  4. PGD: The programming data from the PICkit.
  5. PGC: The programming clock from the PICkit.
How to connect any PICkit to a microcontroller (8)

Pick your PICkit up. To find out which is which, refer to the following images.

Both images were taken from the PICkit 3 and PICkit 4 User Guides, respectively.

  • How to connect any PICkit to a microcontroller (9)
  • How to connect any PICkit to a microcontroller (10)

Matching the Correct Pins

This pins from the PICkit must be connected to the same pins of the microcontroller (for example, the PIC16F628A is pictured below).

How to connect any PICkit to a microcontroller (11)

The red arrows indicate the pins that must be connected near the microcontroller. The green arrows indicate the pins that can be connected to the power bus.

  1. TheMCLRfrom the PICkit must be connected to the RA5/MCLR/Vpp pin, which corresponds to the pin 4 of the microcontroller.
  2. TheVDD(or in the 5V+ power bus) from the PICkit must be connected toVDDwhich corresponds to thepin 14 of the microcontroller. (Some microcontrollers have more than 1 power pin).
  3. TheVSS(or in the GND power bus) from the PICkit must be connected toVSSwhich corresponds to thepin 5. (Some microcontrollers have more than 1 power pin).
  4. ThePGDfrom the PICkit must be connected to the RB7/T1OSI/PGDpin, which corresponds to thepin 13.
  5. ThePGCfrom the PICkit must be connected to the RB6/T1OSO/T1CKI/PGCwhich corresponds to thepin 12.

Examples

In the pictures below you will find examples of connecting the PICkit with microcontrollers.

PIC16F628A in a breadboard

  • How to connect any PICkit to a microcontroller (12)
  • How to connect any PICkit to a microcontroller (13)
  • How to connect any PICkit to a microcontroller (14)
  • How to connect any PICkit to a microcontroller (15)

Next Chapter

Now you need to set up everything with MPLAB IDE; the program where you will write your code for the microcontroller. Follow the link below:

https://www.techzorro.com/blog/requirements-mplab/

techZorro's Index of Content

Keep Reading!

Electronics Category

  • How to connect any PICkit to a microcontroller (17)

    008 – Variable Frequency Drives: how this controller can transform induction motors forever

    AC induction motors can be transformed into a highly controllable machine with Variable Frequency Drives or VFD. Click here to listen.

  • How to connect any PICkit to a microcontroller (18)

    006 – Regenerative Braking, an awesome Feature found in Electric Motors

    This episode is related to this hidden feature of electric motors called regenerative braking. Click here to listen.

  • How to connect any PICkit to a microcontroller (19)

    005 – 7 types of Electric Motors that you should know about

    There are several types of electric motors that differs in efficiency, power, cost, torque output, etc. Click here to listen.

  • How to connect any PICkit to a microcontroller (20)

    004 – AC Voltages, Frequencies and Plugs around the World

    Let's talk about electricity! Specifically about how the standards around the world. Click here to listen.

  • How to connect any PICkit to a microcontroller (21)

    002 – RISC vs CISC, how a few Differences are crucial to Computing

    Today in the market is found two kinds of processor architectures: RISC and CISC. Both have some advantages. Click here to listen.

You have reached this far!

Thank you for reading the blog post. Your comments and suggestions are welcomed. At the bottom of this page, leave a message or just say hi! The whole team of techZorro will appreciate it. Don't forget to share it on social media as well.

techZorro’s Index of Content

Click on the following link to browse likewise content in theblogin techZorro.This indexwill help you see what you are looking for in a bird’s eye view.

techZorro's Newsletter!

If you enjoyed this blog post, please subscribe to techZorro’s newsletter so you don’t miss any future blog posts!

Related

How to connect any PICkit to a microcontroller (2024)

References

Top Articles
Latest Posts
Article information

Author: Laurine Ryan

Last Updated:

Views: 5753

Rating: 4.7 / 5 (57 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Laurine Ryan

Birthday: 1994-12-23

Address: Suite 751 871 Lissette Throughway, West Kittie, NH 41603

Phone: +2366831109631

Job: Sales Producer

Hobby: Creative writing, Motor sports, Do it yourself, Skateboarding, Coffee roasting, Calligraphy, Stand-up comedy

Introduction: My name is Laurine Ryan, I am a adorable, fair, graceful, spotless, gorgeous, homely, cooperative person who loves writing and wants to share my knowledge and understanding with you.