In this tutorial we will see how to upload hex file using the below PICKit 2 programmer.
Installing Pickit 2 Software
Download and Install the Pickit2 software from the below link
Pickit 2 Software Setup
Step1: Once we download the PICKit programmer Software, start the PICkit 2 Software by selecting Start>Programs>Microchip>PICkit 2. When the PICkit 2 Programmer application is first opened, it will attempt to identify the connected device by the device ID and display it in the Configuration window. In our case it is showing PICkit 2 not found because PICkit 2 is not connected to target device yet. Refer below image.
Step2:
Connect the Pickit2 programmer to target board as shown below. Ensure the pic programmer is connected to your PC/Laptop.
Step3:
Run the Pickit2 application and check the device communication.
Go to Tools tab click on the Check communication.
Now status window should show PICkit 2 connected, with proper device(PIC16F877A), else double check the connections and try again
- Refer the below labeled image of PICkit 2 programmer application software.
Step4:
Import the .hex file from the menu File->Import Hex as shown below.
Step5:
The Configuration bits should be set to 0x3F3A.
Now click on Write to upload the hex file to target device.
Status window will show the uploading status.