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.
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.
Give your project a name i.e. opensensor and choose the directory where the project should be saved.
Add the Library files
And the Linker script
These files are usually located in the directories:
- C:/Programs/Microchip/MPLAB C30/lib
- C:/Programs/Microchip/MPLAB C30/support/gld
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.