MPLAB is a toolset, developed by Microchip, used to develop embedded system applications involving PIC Microcontroller.
Creating a new project in MPLAB IDE
Before creating a project with MPLAB ensure that MCC18 is installed in your system.
STEP 1: Open MPLAB.
STEP 3:In that window Expand Microchip C18 Tollsuite and then expand Default Search Paths & Directories
STEP 4: Select Library Search Path and press Browse button. Search for the MCC18 Directory (It is preferable to install MCC18 in C Drive). Expand MCC18 folder and select lib and press OK button.
STEP 5: Select Linker-Script Search Path and press Browse button. . Search for the MCC18 Directory. Expand MCC18 folder and select lkr and press OK button. Close the Set Language Tool Location Window.
STEP 6: Select Project->Project Wizard.
Project Wizard window will open as show below. Press Next.
STEP 6: Select the appropriate device (Microcontroller). In my case it is PIC18F4550.Press Next.
STEP 7: In the next window select Active Toolsuite drop down list box and select Microchip C18 Toolsuite. Select Next.
STEP 8: Create your Project by giving a name and a path.
STEP 9: If you have exiting files(.c) you can add it to your project in the next window. If not you can simply press Next and then press Finish. Now you have successfully created your new project.
You can directly jump from STEP 1 to STEP 6 provided Active Toolsuite in STEP 7 is not empty. If you see nothing in Active Toolsuite it is necessary to do all the steps.