MPLAB C18 Tutorial - Setting up a new C18 project and creating an application - Setting up the project folder structure

Setting up the project folder structure for the application

PLEASE NOTE!

If you would rather handle the configuration bits in your main code instead of a separate header file, you will need to ommit the above line of code from the tutorial main code and include the ...

#pragma config
... lines manually. A quick study of the file p18f452 ConfigBits.h should give you adequate information so you can do them manually. See the datasheet for your particular device for information as to what adjustments need to be made. Later on in the tutorial, I've included my pragma directives for the configuration bits related to the 18F452.

Create a folder somewhere close to the root of whatever drive you select. For my projects, I created a subfolder of one of my Linux system drives called "mcu". You can pick any drive in Windows as well, but again, keep it close to the root, I.E. "C:\mcu". The reason for this is that MPLAB use to and may still have a problem with long path names. Keeping your project folder short and sweet and close to the root helps to keep that path name small. To further help that process, keep your individual project folder names small as well. For this project, I advise creating the "mcu" folder, then create a sub-folder in "mcu" called "blink_led". When completed you should have a project folder path like "C:\mcu\blink_test\".