16 Configuration Settings Summary
Examples of how to set configuration bits in code for different language tools and related devices are shown below. For more information on how to set configuration bits, see your language tool documentation. For some language tools, a configurations settings document is available listing all configuration settings for a device. Otherwise, consult your device header file for macros.
Another option is to use the Configuration Bits window to set bits and then click Generate Source Code to Output. See 5.22 Set Configuration Values in the Configuration Bits Window.
Tools that can be used to generate configuration bits, as well as project code, are accessible through the MPLAB Code Configurator (MCC). For 8- and 16-bit devices, use MCC Melody or MCC Classic. For 32-bit devices, use MPLAB Harmony. See the Microchip website for more information on these tools.