Creating New Project With MPLAB
Creating New Project With MPLAB
MPLAB
by Khaled Magdy · Published June 22, 2018 · Updated
June 24, 2018
1.
Head over to the File option in the menu bar at the top of
the screen. And choose to create a new project.
3.
5.
6.
Choose the compiler for your project. We’ll be using XC8
compiler for our projects. Then Next.
Note
At this step, some of you might not find compilers in the options windo
problem which is installing XC8 before MPLAB IDE. The solution to this
XC8 and reinstall them again in the right order. MPLAB first, then XC8
7.
Choose the path to save your project into. And give your
project a relevant name. In the future, you’ll need to reuse
some of the code listings which you’ll be righting nowadays
so do yourself a favor and give them relevant names.
8.
Click Finish and you should see something like this screen
down below.
9.
Now, let’s create the file in which we’ll write our source C-
Code. Right-Click on the source files and choose to create a
new main.c file. And give it a relevant name.
It’s usually named as main.c
10.
The last step is to create a header file that will contain our
project’s configurations for the target PIC chip. The next
tutorial will show you in detail what exactly the configuration
bits are and how to properly set every single bit of them.
For now, we’ll just create the header file in preparation for
the next tutorial in which we’ll learn what are and how to set
the configuration bits.