By clicking the PROJECTS tab, in MCC, the folder structure, as well as the generated code based on the current configuration, can easily be previewed. Header files with .h file extensions are separated from source files with .c or .asm file extensions. For example, the figure below shows the project structure from the PROJECTS tab in leftmost frame of theMPLAB X IDE.
The Header Files folder contains header files generated by MCC. The files have the file extension .h. The API function prototypes can be found in these header files.
The Header Files folder contains the following files
device_config.h– Defines _XTAL_FREQ macro that dictates the value of the clock frequency used in delays
mcc.h– Contains the API for initializing the MCU, the Oscillator, and the PMD module
pin_manager.h– Defines macros for common pin configurations (ex. high/low, input/output) and the API for initializing the states of the pins of the MCU
The Important Files folder contains files that contains instructions and settings for the compilers and MCC core
The root folder contains the following files and folders:
main.c– Contains the main application and the enabling of interrupts.
MCC Generated Files– Folder that contains the following files:
device_config.c– Contains code to set the device configuration bits.
mcc.c– Contains the code implementations of the system, oscillator, and PMD initializations.