How to Use PICKit3 to upload code to pic microcontroller




How to Use PICKit3: This tutorial is about how to use a burner for programming of pic microcontrollers. I have already posted a article on how to use MikroC for pic for programming of pic microcontrollers in c.  The programmer is a debugger system used for software and hardware development of Microchip PIC microcontrollers. The debugger system executes code like an actual device because Instead of using a special debugger chip for emulation it uses a device with built-in emulation circuit. All available features of a given device are accessible interactively, and can be set and modified by the MPLAB IDE interface. I recommend you to check this list of pic microcontroller tutorials. You can also check a complete list of pic microcontroller projects.

how-to-use-Pickit-3-to-program-pic-microcontroller

Video lecture on how to upload code to pic microcontroller

Pickit3 comes with following components.

  1. Lanyard Connection
  2. USB Port Connection
  3. Pin 1 Marker
  4. Programming connector
  5. Status LEDs
  6. Push Button

1-fig

Lanyard Connection:

A convenient lanyard connection is provided on the programmer.

USB Port Connection:

The Port connection is a USB mini-B connector. It is used to connect the PICKit3 with PC through USB cable.

Pin 1 Marker:

It indicated the location of Pin 1 for proper connection with minimum developer board on which PIC microcontroller is placed.

Programming Connector:

It is a six pin connector and is used to connect the target device with PICKit3. It consists of following pins with pin 1 starting from marker.

  1. Vpp/MCLR (Power)
  2. VDD Target (Power on Target)
  3. Vss (Ground)
  4. ICSPDAT/PGD (Standard COM Data)
  5. ICSPCLK/PGC (Standard COM Clock)
  6. LVP (Low Voltage Programming)

2-pins

Status LED:

Three LED’s are provided on PICKit3. Different colors indicate different status of PICKit3 as follows:

  1. Power(Green)
READ  "Fluffy" - A Scenix (and PIC) Programmer

Power is supplied to the PICKit3 through USB port.

  1. Active (Blue)

Communication link is active and PICKit3 has connection with PC through USB cable.

  1. Status

Busy (Yellow)

Some function is in progress and PICKit3 is busy with it like programming

Error (Red)

The PICKit3 encounter some error.

Connection with PIC Microcontroller:

To connect the PICKit3 with PIC Microcontrollers following connection are used

  1. Pin 1 of  burner with     Pin4 of PIC Microcontroller
  2. Pin 2 of burner with     Pin14 of PIC Microcontroller
  3. Pin 3 of burner with     Pin 5 of PIC Microcontroller
  4. Pin 4 of burner with     Pin 13 of PIC Microcontroller
  5. Pin 5 of burner with     Pin 12 of PIC Microcontroller
  6. Pin 6 is not connected for normal usage.

3-inteface

This configuration is only for PIC18F1x20. For every microcontroller pin configuration will be different and you can consult datasheet of your respective microcontroller for this these connections.To connect this programmer with programming board consult following picture for help.

4-board

Usefulness of PICKit 3 Programmer:

  • Debug your application on your own hardware in real time
  • Debug with hardware breakpoints
  • Set breakpoints based on internal events
  • Monitor internal file registers
  • Emulate at full speed
  • Program your device

Programmer Board Pin OUT:

Programmer board is provided with 6 out output pins at one side for connections with PICKit3. Following are the pins.

  1. Vpp/MCLR (Power)
  2. VDD Target (Power on Target)
  3. Vss (Ground)
  4. ICSPDAT/PGD (Standard COM Data)
  5. ICSPCLK/PGC (Standard COM Clock)
  6. LVP (Low Voltage Programming)

3-board

Connecting Programmer Board with PICKit3:

Place you controller on programmer board and then connect it with PICKit3 as follows. Pickit3 pins counting starts from arrow marker.

  1. Pin 1 of PICKit3 with     MCLR of Programmer Board
  2. Pin 2 of PICKit3 with     VCC of Programmer Board
  3. Pin 3 of PICKit3 with     GND of Programmer Board
  4. Pin 4 of PICKit3 with     PGD of Programmer Board
  5. Pin 5 of PICKit3 with     PGC of Programmer Board
READ  Simple Digital Voltmeter (DVM) using PIC12F675 (Code+Proteus simulation)

Pin 6 is not connected for normal usage.

4-Connect

Connecting Microcontroller with Programmer Board

Following connections are used in Programmer board and PIC18F46K22

  1. MCLR of Programmer Board with     Pin 1 of PIC18F46K22
  2. VCC of Programmer Board with     Pin 11 of PIC18F46K22
  3. GND of Programmer Board with     Pin 12 of PIC18F46K22
  4. PGD of Programmer Board with     Pin 40 of PIC18F46K22
  5. PGC of Programmer Board with     Pin 39 of PIC18F46K22

Pin 6 is not connected for normal usage

These connections are only for PIC18F46K22. For other microcontrollers consult data sheet of respective microcontroller.

Circuit for Project:

Connect the following circuit. You don’t need to connect Crystal oscillator and capacitor. Jus connect LEDs, Power and resistors. You will provide connections from programmer board to LEDs.

Read More Information…

How to Use PICKit3 to upload code to pic microcontroller




Leave a Comment

*
= 5 + 5

Read previous post:
MSO5000 is ready with 2 or 4 analog and 16 digital input channels
MSO5000 is ready with 2 or 4 analog and 16 digital input channels

Rigol Technologies announces a significant addition to its UltraVision II family of oscilloscopes with the introduction of the New MSO5000...

Close
Scroll to top