Difference between revisions of "Pic16f877a MPLABx Setup"
(2 intermediate revisions by the same user not shown) | |||
Line 39: | Line 39: | ||
[[File:Pic16F877A_MplabX_Setup09.png]] | [[File:Pic16F877A_MplabX_Setup09.png]] | ||
<html> | <html> | ||
− | <script src="https://gist.github.com/SaheblalBagwan/ | + | <script src="https://gist.github.com/SaheblalBagwan/de54372474c563ebac014cd718aaa1d1.js"></script> |
</html> | </html> | ||
<br> | <br> | ||
Line 57: | Line 57: | ||
=Uploading the Hex file= | =Uploading the Hex file= | ||
− | After generating the .hex file check | + | After generating the .hex file check the below tutorials for uploading it using Pickit2 or Ds30 Software. |
+ | # [[Uploading Hex File Using Pickit2|Uploading Hex File Using Pickit2.]] | ||
+ | # [[Uploading Hex File Using Ds30 Bootloader|Uploading Hex File Using Ds30 Bootloader.]] | ||
<br><br> | <br><br> |
Latest revision as of 16:28, 22 April 2016
In this tutorial we will see how to setup a Mplabx project to generate .hex file for Pic16f877a
MPLABx Setup Steps
Step1: Open the MPLABx software and select the New project from File Menu as shown below.
Step2: Select the Standalone option for the project.
Step3: Choose the Controller(PIC16f877A) from the device drop down.
Step4: Select the required programmer. In this case it is Pickit2.
Step5: Choose the xC8/Hitech compiler which ever is installed.
Step6: Provide the project name and project location.
Step7: Now the required project is created. Create a new .c/main.c to write the code.
Step8: Save the file with C extension.
Step9: Type the code or Copy paste the below code snippet and save it
Step10: Build the project and fix the compiler errors/warnings if any.
Step11: Code is compiled with no errors. The .hex file is generated.
Step11: Check the project folder for generated .hex file.
Uploading the Hex file
After generating the .hex file check the below tutorials for uploading it using Pickit2 or Ds30 Software.