User`s guide
© 2006 Microchip Technology Inc. DS51519B-page 79
MPLAB
®
IDE
USER’S GUIDE
Chapter 6. Additional Features
6.1 INTRODUCTION
MPLAB IDE contains additional features to aid in device setup, code debugging and
general support.
• Configuration Bits
• Watch Window
• Breakpoints
• High-Level Language Support
• Microchip Help
6.2 CONFIGURATION BITS
Configuration bits can be programmed (read as ‘0’), or left unprogrammed (read as ‘1’),
to select various device configurations. Consult your device data sheet for more
information.
6.2.1 Setting in MPLAB IDE or in Code
Configuration bits may be set in code (i.e., using the __config/config command or
init code) or using the Configuration Bits window (Configure>Configuration Bits
).
Although you can use both methods, you probably should chose one to avoid confusion
and overwriting of bit values.
If you want to change Configuration bit values in the window, do not enter any in code
until you have completed development. Then put your window values into code, rebuild
the project (which will then enter the code values into the window) and perform a final
run to make sure all is correct.
If you want to change Configuration bit values in code, do not make changes to the
window. Every time you build, the code values will be loaded into the window and you
will lose any changes you have made in the window.
6.2.2 Saving/Clearing Values
Configuration bit window values are saved/restored on close/open of the workspace.
If “Clear program memory upon loading a program” is checked in the Settings dialog
(Configure>Settings
), Program Loading tab, Configuration bits are cleared upon
loading a program (i.e., build, import or open a project).
6.2.3 Setting the Watchdog Timer
By default, the watchdog timer (WDT) is enabled on most devices. This could interfere
with program execution. You may wish to disable the WDT unless you know you will be
using it in your program.
The WDT pre/postscaler is set in the Configuration bits as well.