How to view and set configuration bits

How to display the Configuration Bits window

ConfigBitsMenu.png
Click image to enlarge

From the main menu select Window ▶ PIC Memory Views ▶ Configuration Bits

How to set configuration bits and generate initialization code

ConfigBits.png
Click image to enlarge

In the configuration bits window, click on any value in the Option column and it will turn into a combo box that will allow you to select the value you desire.


GenConfigBits.png
Click image to enlarge

Click on the Generate Source Code to Output button:


ConfigBitsOutput.png
Click image to enlarge

The IDE will automatically generate the code necessary to initialize all the configuration bits to the settings you specified in the window. This code may now be copied and pasted into one of your source files, or you may save it to its own file and add it to your project. To save the file, right click anywhere in the output window and select Save As from the popup menu as shown in the screenshot at left.


Information contained in this publication regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.

© Microchip Technology Inc.