4.5 Modifying Components, Configurations and Regenerating Code for the PLIB Demonstration

To modify or change a peripheral in the Project Graph window, the user must open the MPLAB Code Configurator first. Once the MCC is opened, the user can add or remove any peripheral to the Project Graph. In the Tree view, change the configuration of the included peripherals per the needs of the application and regenerate the code.

To regenerate the code for the new configuration, go to Resource Management [MCC] > Project Resources and then click Generate.

Figure 4-9. Generate Code

Before regenerating the new code, the MCC shows the files with the changes that are going to be done (line wise) as the result of the re-configuration. The user can accept or reject the changes (line wise) based on the result.

Figure 4-10. Line Wise Change
Note: This option is useful to view the changes made by the user and MCC to each file.