4.6 MCC Code Generation

When the code is configured (as shown in the previous figures), click the Generate button on the “Project Resources” window. Code generated by the MCC is modular. Therefore main, system, and peripheral code are all in individual files. Also, each peripheral has its own header file.

Editing of main.c is always required to add functionality to your program. Review the generated files to find any functions or macros you may need in your code.

Figure 4-12. Code Generated in Project Tree
Figure 4-13. Code Generation Progress in Output Window