(Created page with "Category:Starter PIC18F4520 In this tutorial we will see how to upload hex file using the below [https://www.exploreembedded.com/product/PIC%20USB%20Programmer PICKit 2 pr...")
 
 
(2 intermediate revisions by the same user not shown)
Line 20: Line 20:
 
<b>Step3:</b>
 
<b>Step3:</b>
 
Now status window should show  PICkit 2 connected, with proper device(PIC16F877A), else double check the connections and try again.
 
Now status window should show  PICkit 2 connected, with proper device(PIC16F877A), else double check the connections and try again.
[[File:PICKit2 application software.png|none]]<br><br>
+
[[File:Flashing HEX file to pic18f4520.png]]<br><br>
  
  
<b>Step2:</b>
+
<b>Step4:</b>
 
Import the .hex file from the menu File->Import Hex as shown below.
 
Import the .hex file from the menu File->Import Hex as shown below.
 
[[File:PICkit 2 import hex file.png|none]]<br><br>
 
[[File:PICkit 2 import hex file.png|none]]<br><br>
Line 32: Line 32:
 
Now click on Write to upload the hex  file to target device.<br>
 
Now click on Write to upload the hex  file to target device.<br>
 
Status window will show the uploading status.<br>
 
Status window will show the uploading status.<br>
[[File:0PICkit2 succesful.png|none]]
+
[[File:Flashing HEX file to pic18f4520 1.png]]<br><br>

Latest revision as of 18:00, 9 August 2016

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. Flashing HEX file to pic18f4520.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.
Flashing HEX file to pic18f4520 1.png