English
Language : 

PIC32MX795F512L-80IPT Datasheet, PDF (28/68 Pages) Microchip Technology – PIC32 Flash Programming Specification
PIC32
13.0 INITIATING A FLASH ROW
WRITE
Note:
Certain PIC32 devices have available
ECC memory. When the ECC feature is
used, Flash memory must be pro-
grammed in groups of four 32-bit words
using four, 32-bit word alignment. If ECC
is dynamically used, the programming
method determines when the feature is
used. ECC is not enabled for words pro-
grammed with the single word program-
ming command. ECC is enabled for words
programmed in groups of four, either with
the quad word or row programming com-
mands. Failure to adhere to these meth-
ods can result in ECC DED errors during
run-time. See the specific device data
sheet for details regarding ECC use and
configuration.
Once a row of data has been downloaded into the
device’s SRAM, the programming sequence must be
initiated to write the block of data to Flash memory.
See Table 13-1 for the op code and instructions for
initiating a Flash row write.
13.1 With the PE
When using the PE, the data is immediately written to
the Flash memory from the SRAM. No further action is
required.
13.2 Without the PE
Flash memory write operations are controlled by the
NVMCON register. Programming is performed by
setting NVMCON to select the type of write operation
and initiating the programming sequence by setting the
WR control bit (NVMCON<15>).
FIGURE 13-1:
INITIATING FLASH WRITE
WITHOUT THE PE
Unprotect Control Registers
Select Write Operation
Load Addresses in NVM Registers
Unlock Flash Controller
Start Operation
Done
DS61145L-page 28
 2007-2013 Microchip Technology Inc.