How to use Mplab X IDE for 16bit Microcontrollers.
This tutorial will help you to migrate from Mplab 8.xx to Mplab X IDE and from PIC 8bit microcontroller to 16bit microcontroller.
To get started with programing on PIC microcontroller 16bit you need to install two software packages.
- Mplab X IDE.
- C30 compiler.
After installing click on Mplab X. A window will open as shown in figure below.
|Mplab X IDE.|
Now go to File>New Project. A new window will open. As shown below.
Click next…then select the 16bit (PIC24) family and controller name on which you want to work on it.
Click next. Then next and then select the compiler C30 for C language. Now the green sign shows that you have installed these compilers. Otherwise there will be red circle.
|Compiler Selection C30.|
And then click next. Choose Project name and the directory in which you want to save this project. It is recommended to make a separate folder for project.
Then click on finish. Now you will see on left side we have a project window.
Now your Project is started to add C files inside your project right click on source files in project window New>C main File.
|C main File.|
Now your file is added in source file on left side project window. And main file open on right side. Now you have to edit in this file.
Now the question arises where is hex file which you will burn in Microcontroller Flash. You can find its location just below the build successful as shown in figure.