how to create mplabx project - infotehnoloogia …ati.ttu.ee/~hartz/mplabx/mplabx-tutorial.pdf ·...

10
How to create MPLABX project Hardi Selg

Upload: lythuy

Post on 10-Sep-2018

219 views

Category:

Documents


1 download

TRANSCRIPT

How to create MPLABX project

Hardi Selg

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

• After running the script this window should open

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

april 2016 Hardi Selg 3

Creating a project

Select „Standalone Project“ Select Device : PIC16F690

april 2016 Hardi Selg 4

Creating a project

Select „NONE“ Select PICkit2

april 2016 Hardi Selg 5

Creating a project

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

april 2016 Hardi Selg 6

• 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

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

• Save them to your previously defined project location

april 2016 Hardi Selg 8

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

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