Microchip Technology Universal Device Programmer DV007004 DV007004 User Manual

Product codes
DV007004
Page of 140
MPLAB
®
 PM3 User’s Guide
DS51464C-page 38
© 2006 Microchip Technology Inc.
4.5
PROGRAMMING A DEVICE
The steps to program a device include:
• Setting up the Configuration bits in the Configuration Bits dialog
• If needed, editing the ID in the User ID Memory dialog
• Loading the hex code into program memory or building the project into program 
memory
• Checking for a blank device (non-flash devices)
• Programming the device
• Verifying the programming
• Reading a device
4.5.1
Configuration Bits Dialog
The Configuration Bits dialog opens when you select Configure>Configuration Bits
The type and number of Configuration bits you see in this dialog will depend on the 
device you have selected.
You can also specify the Configuration bit values in your source code. Use the 
__CONFIG
 directive in MPASM assembler to set the Configuration bits for the device 
to be programmed. Each time you rebuild your project or reload your hex file, the 
Configuration bits will be set according to the values from this directive.
If you do not set Configuration bits in your source code, then these bits will not be 
changed. You can manually change them from their default values using the 
Configuration Bits dialog and they will be programmed into the device when you 
program the microcontroller.
A value set in the Configuration Bits dialog overrides any value set in the program. 
To change the Configuration bits settings:
1. Make sure the Configuration Bits window is opened wide enough to view the 
Settings column (Figure 4-1).
FIGURE 4-1:
CONFIGURATION BITS DIALOG
2. Click on the setting value you wish to change. A down arrow appears to the right 
of the value. Select a value from the drop-down list box.
Note: Setting Configuration bits here will not affect emulator or simulator 
operation.