User manual

MPLAB
®
PM3 User’s Guide
DS51464C-page 42 © 2006 Microchip Technology Inc.
4.5.5 Programming the Device
You are ready to program your device. Select Programmer>Program to program the
entire device (i.e., all of the program memory, Configuration bits, etc.).
If you want to program selectively (e.g., part of program memory, only Configuration
bits), select Programmer>Settings
to open the Programmer Settings dialog. Click the
Memory Ranges tab (see Table 4-1 and Section 7.5.1 “Memory Ranges Tab”) and
select the options for programming. Areas that are grayed out are not available on the
device. Click OK. Then, select Programmer>Program
to program the device. The
memory area corresponding to the checked boxes will be programmed.
After MPLAB PM3 programs a device, it automatically performs a verify operation and
displays any errors found. An additional verify operation may be done via selecting
Programmer>Verify
.
4.6 VERIFYING THE PROGRAMMING
Click Programmer>Verify to verify that the programming on the device matches the
program memory, Configuration bits, ID locations, EEPROM and calibration memory
values in MPLAB IDE and in the Settings dialog and Configuration Bits dialog.
If there are more errors than expected and those errors claim that the bad data is all
zeros (0000), the socket module might not be seated properly. Remove and reseat the
socket module. It is always a good practice to insert a known blank device and do a
Blank Check whenever the socket module is changed.
TABLE 4-1: MEMORY RANGES TAB OPTIONS
Option Description
Program Memory Start Address Type the start address for the range of program
memory.
Program Memory End Address Type the end address for the range of program
memory.
Reset Addresses Click this button to reset the program memory
addresses.
Program Memory Select this check box if you want to program
Program Memory. The program memory range is
determined by the program memory start and end
address fields.
Configuration Bits Select this check box if configuration memory is to
be programmed.
ID Location Select this check box if the ID location is to be
programmed.
EEPROM Data Select this check box if the EEPROM data memory
is to be programmed.
Calibration Memory Select this check box if calibration memory to be
programmed.
Erase All Before Program Select this check box if the device is to be erased
before programming.
Note: A verify is automatically done after a program command.