The easiest way to complete the pragmas that are required to configure the
device is to use the Configuration Bits Window, a feature of MPLAB X IDE.
Follow these steps to get the information to complete the pragmas:
- Open the Configuration Bits Window
(Window > Target Memory Views > Configuration Bits or
Production > Set Configuration Bits).
- Review every setting in the
Configuration Bits Window.
- Generate the pragma derivatives that
implement the chosen settings by clicking the Generate Source Code to Output
button.
- Copy the generated code from this
window to a source file.
For more details, see the following references: