Microchip MPLAB programming environment
This tutorial will show how to set up a new project in the MPLAB programming environment.
First you need to download and install the software described here. When you install it remember to enable 16bit processors because the microprocessor on the opensensor is a 16bit processor.
Step 1
When you have installed the MPLAB programming environment and C30 compiler and started the application, you are able to see the file tree and the output window.
Step 5
Give your project a name i.e. opensensor and choose the directory where the project should be saved.
Step 7
Add the Library files
- libp30F3013-coff.a
- libp30F3013-elf.a
And the Linker script
- p30f3013.gld
These files are usually located in the directories:
- C:/Programs/Microchip/MPLAB C30/lib
- C:/Programs/Microchip/MPLAB C30/support/gld
Step 8
Create a main.c file with this content and add it to the source files of the project. Press Build All to build the project.
The output window prints build succeeded and your project is compiled.








