CONFIGURATION BITS WINDOW

8.15 CONFIGURATION BITS WINDOW

The Configuration Bits window displays information on configuration bit settings. MPLAB IDE v6.xx now recognizes configuration bits set in code as well as in the Configuration Bits window. Any configuration bit whose value is not set in code or the window defaults to 1.

Configuration bit settings made in code are reflected in the window upon loading a program (i.e., build, import or open a project). Configuration bit settings made in the window are reflected immediately. MPLAB IDE uses the current values of the window during debugger execution.

If “Clear program memory upon loading a program” is checked in Configure>Settings, Program Loading tab, configuration bits are cleared and then code changes are loaded upon loading a program. If no configuration bit settings are specified in code, the bits are simply cleared.

When you close a workspace, MPLAB IDE saves the latest configuration bit informa- tion in the workspace file. When you open a workspace, MPLAB IDE clears memory, loads code setups of configuration bits and then loads the last Configuration Bits window information saved in the workspace.

• Configuration Bits Window Display • Configuration Bits Window Menu • Configuration Bits Window FAQ

8.15.1 Configuration Bits Window Display

Selecting Configure>Configuration Bits opens the Configuration Bits window. Use this window to set configuration bit values for your selected device.

Note: These values are obtained when building a source file and are used to

control the operation of the debug tool. • Address – The address of the configuration word/byte.

• Value – The current value of the configuration word/byte. • Category – The name of the configuration bit in the corresponding configuration

word/byte. • Setting – The current setting of the configuration bit. Use the drop-down list to

change the setting. The Value of the configuration word/byte will change accordingly.

8.15.2 Configuration Bits Window Menu

Below are the menu items in the Configuration Bits right mouse button menu. Click on an item to expand or collapse the description.

• Close Close this window. • Reset to Defaults Restore the window defaults. This would correspond to the power-up state of the

configuration bits on the actual device. • Refresh Refresh the data in this window. • Properties Set up window properties. See Section 9.17 “Properties Dialog”.

 2005 Microchip Technology Inc.

DS51519A-page 125

MPLAB ® IDE User’s Guide

8.15.3 Configuration Bits Window FAQ

How do I: • Clear configuration bits upon loading a program?

Select Configure>Settings and click on the Program Loading tab. Check the box for Clear configuration bits upon program loading.

• Develop with the Configuration Bits window? To use only the Configuration Bits window to develop your application: - Do not set any configuration bits in code, i.e., do not use initialization data. - Configure>Settings, Program Loading tab, “Clear program memory upon

loading a program” should be unchecked. Once you have completed development, you will then have to copy your

Configuration Bits window settings into initialization data. • Develop with configuration bits set in code? To use only configuration bits in code, i.e., initialization data, to develop your

application: - Do not change any configuration bit settings in the Configuration Bits window. - Configure>Settings, Program Loading tab, “Clear program memory upon

loading a program” should be checked.