English
Language : 

PIC32MX795F512L-80IPT Datasheet, PDF (49/68 Pages) Microchip Technology – PIC32 Flash Programming Specification
18.0 CONFIGURATION MEMORY
AND DEVICE ID
PIC32 devices include several features intended to
maximize application flexibility and reliability, and
minimize cost through elimination of external
components. These features are configurable through
specific Configuration bits for each device.
Refer to the “Special Features” chapter in the specific
device data sheet for a full list of available features,
Configuration bits, and the Device ID register.
See Table 18-4 for a full list of Device ID and
revision number for specific devices.
18.1 Device Configuration
In PIC32 devices, the Configuration Words select various
device configurations that are set at device Reset prior to
execution of any code. These values are located at the
highest locations of Boot Flash Memory (BFM) and since
they are part of the program memory, are included in the
programming file along with executable code and pro-
gram constants. The names and locations of these Con-
figuration Words are listed in Table 18-1 through
Table 18-3.
Additionally, Table 18-3 includes Configuration Words for
PIC32MZ EC family devices with dual boot and dual
panel Flash. Refer to Section 3. “Memory Organiza-
tion” (DS61115) in the “PIC32 Family Reference
Manual” for a detailed description of the dual boot
regions.
TABLE 18-1: DEVCFG LOCATIONS
Configuration Word
Physical Address
DEVCFG0
DEVCFG1
DEVCFG2
DEVCFG3
0x1FC02FFC
0x1FC02FF8
0x1FC02FF4
0x1FC02FF0
TABLE 18-2: DEVCFG LOCATIONS FOR
PIC32MX1X0 AND
PIC32MX20X DEVICES ONLY
Configuration Word
Physical Address
DEVCFG0
DEVCFG1
DEVCFG2
DEVCFG3
0x1FC00BFC
0x1FC00BF8
0x1FC00BF4
0x1FC00BF0
On Power-on Reset (POR), or any reset, the Configu-
ration Words are copied from the boot Flash memory to
their corresponding Configuration registers. A Configu-
ration bit can only be programmed = 0 (unprogrammed
state = 1).
PIC32
During programming, a Configuration Word can be
programmed a maximum of two times for PIC32MX
devices and only one time for PIC32MZ EC devices
before a page erase must be performed.
After programming the Configuration Words, a device
Reset will cause the new values to be loaded into the
Configuration registers. Because of this, the programmer
should program the Configuration Words just prior to ver-
ification of the device. The final step is programming the
code protection Configuration Word.
These Configuration Words determine the oscillator
source. If using the 2-wire Enhanced ICSP mode the
Configuration Words are ignored and the device will
always use the FRC; however, in 4-wire mode this is
not the case. If an oscillator source is selected by the
Configuration Words that is not present on the device
after reset, the programmer will not be able to perform
Flash operations on the device after it is reset. See the
“Special Features” chapter in the specific device data
sheet for details regarding oscillator selection using the
Configuration Words.
 2007-2013 Microchip Technology Inc.
DS61145L-page 49