Top Banner
How to create MPLABX project Hardi Selg
10

How to create MPLABX project - Infotehnoloogia …ati.ttu.ee/~hartz/mplabx/MPLABX-tutorial.pdf · How to launch MPLAB_X •First thing is to run „cad“ •Then go to your „P“

Sep 10, 2018

Download

Documents

lythuy
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: How to create MPLABX project - Infotehnoloogia …ati.ttu.ee/~hartz/mplabx/MPLABX-tutorial.pdf · How to launch MPLAB_X •First thing is to run „cad“ •Then go to your „P“

How to create MPLABX project

Hardi Selg

Page 2: How to create MPLABX project - Infotehnoloogia …ati.ttu.ee/~hartz/mplabx/MPLABX-tutorial.pdf · How to launch MPLAB_X •First thing is to run „cad“ •Then go to your „P“

How to launch MPLAB_X• First thing is to run „cad“

• Then go to your „P“ folder

• Download and store the start script to „P“ folder

• Link is shown below

• Change the file permissionswith chmod

• And then run the start script

april 2016 Hardi Selg 2

http://blue.pri.ee/ttu/files/Prog2/Files/start

Page 3: How to create MPLABX project - Infotehnoloogia …ati.ttu.ee/~hartz/mplabx/MPLABX-tutorial.pdf · How to launch MPLAB_X •First thing is to run „cad“ •Then go to your „P“

• After running the script this window should open

• After that from the „File“ menu create a „New Project“

april 2016 Hardi Selg 3

Page 4: How to create MPLABX project - Infotehnoloogia …ati.ttu.ee/~hartz/mplabx/MPLABX-tutorial.pdf · How to launch MPLAB_X •First thing is to run „cad“ •Then go to your „P“

Creating a project

Select „Standalone Project“ Select Device : PIC16F690

april 2016 Hardi Selg 4

Page 5: How to create MPLABX project - Infotehnoloogia …ati.ttu.ee/~hartz/mplabx/MPLABX-tutorial.pdf · How to launch MPLAB_X •First thing is to run „cad“ •Then go to your „P“

Creating a project

Select „NONE“ Select PICkit2

april 2016 Hardi Selg 5

Page 6: How to create MPLABX project - Infotehnoloogia …ati.ttu.ee/~hartz/mplabx/MPLABX-tutorial.pdf · How to launch MPLAB_X •First thing is to run „cad“ •Then go to your „P“

Creating a project

Select XC8 compiler Change the project location to you „P“ folder

april 2016 Hardi Selg 6

Page 7: How to create MPLABX project - Infotehnoloogia …ati.ttu.ee/~hartz/mplabx/MPLABX-tutorial.pdf · How to launch MPLAB_X •First thing is to run „cad“ •Then go to your „P“

• After pushing „Finish“ a project should appear to the left side of the main window

• Now the next step is to download default files for the project

• They can be found on this link:

http://ati.ttu.ee/~hartz/mplabx/

april 2016 Hardi Selg 7

Page 8: How to create MPLABX project - Infotehnoloogia …ati.ttu.ee/~hartz/mplabx/MPLABX-tutorial.pdf · How to launch MPLAB_X •First thing is to run „cad“ •Then go to your „P“

Downloading default files (http://ati.ttu.ee/~hartz/mplabx/ )

• Save them to your previously defined project location

april 2016 Hardi Selg 8

Page 9: How to create MPLABX project - Infotehnoloogia …ati.ttu.ee/~hartz/mplabx/MPLABX-tutorial.pdf · How to launch MPLAB_X •First thing is to run „cad“ •Then go to your „P“

Adding files to project• To add files make a right click on

the Header/Source Files name and select „Add Existing Item“

• From there you should see your downloaded files and add them accordingly

april 2016 Hardi Selg 9

Page 10: How to create MPLABX project - Infotehnoloogia …ati.ttu.ee/~hartz/mplabx/MPLABX-tutorial.pdf · How to launch MPLAB_X •First thing is to run „cad“ •Then go to your „P“

Now you can start writing your code!

• All your code goes to the while(1) loop in main file.

• Variables, of course, should be in the beginning of the main function

April 2016 Hardi Selg 10