(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
[[Category:Starter PIC16F877]]
 
[[Category:Starter PIC16F877]]
In this tutorial we will see how to upload hex file using [https://www.exploreembedded.com/product/PIC%20USB%20Programmer PICKit 2 programmer]. PICkit 2 is low cost programmer. It is capable to program most of the  PIC controllers. <br>
+
In this tutorial we will see how to upload hex file using the below [https://www.exploreembedded.com/product/PIC%20USB%20Programmer PICKit 2 programmer]. <br>
Below shown image is Explore Embedded PIC programmer which is PICkit 2 compatible. <br>
+
 
[[File:PICKIT 2 programmer.png|none]]
 
[[File:PICKIT 2 programmer.png|none]]
 +
<br>
  
=Installing PICkit 2 Programmer Application=
+
=Installing Pickit 2 Software=
For installing PICkit2 Programmer Application we need to download the below mentioned PICKit 2 Programmer software. <br>
+
Download and Install the Pickit2 software from the below link.
* [https://www.exploreembedded.com/wiki/images/1/14/PICkit2.zip PICkit 2 Programmer Software] <br>
+
* [https://www.exploreembedded.com/wiki/images/1/14/PICkit2.zip PICkit 2 Programmer Software] <br><br>
  
=Launching  PICkit 2 Programmer Application=
+
=Pickit 2 Software Setup=
* Once we download the PICKit programmer Software, start the PICkit 2 Programmer application 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. <br>
+
<b>Step1:</b>  
[[File:PICkit 2 not found.png|none]]
+
Connect the Pickit2 programmer to target board as shown below. <b>Ensure the Boot Jumper is disconnected</b>.
* Plug one end of the USB cable into PICkit 2 USB connector. Plug the other end into a USB port on your PC. <br>
+
[[File:PICkit2andstater.jpeg#sthash.oRFNF44v.dpuf|none]]<br><br>
* Connect the PICkit 2 to a target board via a 6-pin connector. The target board can be the Explore Starter PIC board or Explore PIC Breakout board.Refer the below image for board connection.
+
 
[[File:PICkit2andstater.jpeg#sthash.oRFNF44v.dpuf|none]]
+
 
* Go to Tools tab click on the Check communication,now status window will show PICkit 2 connected. <br>
+
<b>Step2:</b>
* Refer the below labeled image of PICkit 2  programmer application software.
+
Run the Pickit2 application and check the device communication as shown below.<br>
[[File:PICKit2 application software.png|none]]
+
[[File:PICkit2 check communication.png|none]] <br><br>
*To import a compiled program (hex file) to be programmed into the target device, select File>Import HEX as shown in below image.
+
 
[[File:PICkit 2 import hex file.png|none]]
+
<b>Step3:</b>
*After a device family has been selected and a hex file has been imported, the target device can be programmed by clicking '''Write'''. The device will be erased and programmed with the hex code previously imported. Status window will show Programming Successful.Refer below image.
+
Now status window should show PICkit 2 connected, with proper device(PIC16F877A), else double check the connections and try again.
[[File:0PICkit2 succesful.png|none]]
+
[[File:PICKit2 application software.png|none]]<br><br>
 +
 
 +
 
 +
<b>Step4:</b>
 +
Import the .hex file from the menu File->Import Hex as shown below.
 +
[[File:PICkit 2 import hex file.png|none]]<br><br>
 +
 
 +
 
 +
<b>Step5:</b>
 +
<b>The Configuration bits should be set to 0x3F3A.</b>
 +
Now click on Write to upload the hex file to target device.<br>
 +
Status window will show the uploading status.<br>
 +
[[File:0PICkit2 succesful.png|none]] <br><br>
 +
 
 +
Have a opinion, suggestion , question or feedback about the article let it out here!
 +
{{DISQUS}}

Latest revision as of 17:59, 14 March 2017

In this tutorial we will see how to upload hex file using the below PICKit 2 programmer.

PICKIT 2 programmer.png


Installing Pickit 2 Software

Download and Install the Pickit2 software from the below link.

Pickit 2 Software Setup

Step1: Connect the Pickit2 programmer to target board as shown below. Ensure the Boot Jumper is disconnected.

PICkit2andstater.jpeg



Step2: Run the Pickit2 application and check the device communication as shown below.

PICkit2 check communication.png


Step3: Now status window should show PICkit 2 connected, with proper device(PIC16F877A), else double check the connections and try again.

PICKit2 application software.png



Step4: Import the .hex file from the menu File->Import Hex as shown below.

PICkit 2 import hex file.png



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.

0PICkit2 succesful.png


Have a opinion, suggestion , question or feedback about the article let it out here!