Pages

Monday 25 May 2015

PICKIT2

OVERVIEW
PICKIT2
The PICkit 2 Development Programmer/Debugger is a low-cost development programmer.
It is capable of programming most of Microchip.s Flash microcontrollers and serial
EEPROM devices.

The PICkit 2 Development Programmer/Debugger kit contains the following items:
  1. The PICkit 2 Development Programmer/Debugger
  2. USB cable
  3. PICkit Starter Kit and MPLAB IDE 
PICKIT2 USER’S GUIDE
USB Port Connection
The USB port connection is a USB mini-B connector. Connect the PICkit 2 to the PC using
the supplied USB cable.
Status LEDs

The Status LEDs indicate the status of the PICkit 2.
  1. Power (green) . Power is applied to the PICkit 2 via the USB port.
  2. Target (yellow) . The PICkit 2 is powering the target device.
  3. Busy (red) . The PICkit 2 is busy with a function in progress, such asprogramming
INSTALLATION OF PICKIT2

  1. Download the pickkit2 software.
  2. Run the setup.exe file 

  • Click on next


  • Click on next ->Exit

Check communication 
Check Communication . Verifies USB communication with the PICkit 2 and ICSP
communication with a target device by attempting to identify the connected device
by its device ID.
Setting the VDD
  • This will automatically set VDD when external supply is given .
  • If there is no external supply
Calibrate VDD & Set Unit ID . Opens a wizard that steps the user through calibrating
the PICkit 2 VDD supplied voltage so it is more accurate, and optionally
assigning a Unit ID to identify between multiple PICkit 2 devices

After setting the VDD

Load the hex file


  • Click on open

  • Click on Write


To erase the memory
Click on erase


The Blank Check function will read the entire device to determine if Program Memory,
EEPROM Data memory, User IDs and Configuration bits are erased.

USING MPLAB
  •  Open MPLAB 
  •  Create a folder in any drive.


SELECT DEVICE


SELECT LANGUAGE SUITE

CREATE NEW PROJECT

ADD FILES

PROJECT WIZARD SUMMARY

Write the Program

Save the program in respective folder

Add file 

Select the  .c file

CONFIGURATION BIT SETTINGS

SELECT DEVICE DIALOG

Choosing the pick kit 2 IC (16F877A)

Selecting PICkit 2 as the Debug Tool

Load the program on to pickit2

ICSP(In Circuit Serial Programming)

Pin 1: Ground
Pin 2: VCC
Pin  3: MCLR
Pin 4:PGC
Pin 5:PGD
NOTE:Connect Red strip  to PGD

ICSP is a technique where programmable device is programmed after device is placed in the circuit board


ICSP CONNECTION WITH DEVELOPMENT BOARD