English
Language : 

PXD10RM Datasheet, PDF (626/1332 Pages) Freescale Semiconductor, Inc – PXD10 Microcontroller
Table 17-59. Flash Modify Operations (continued)
Operation
Sector Erase
Array Integrity Check
Margin Read
ECC Logic Check
Select bit
MCR.ERS
None
UT0.MRE
UT0.EIE
Operands
LMS, HBS
LMS, HBS
UT0.MRV + LMS, HBS
UT0.DSI, UT1, UT2
Start bit
MCR.EHV
UT0.AIE
UT0.AIE
UT0.AIE
In general each Modify Operation is completed through a sequence of four steps:
1. Wait for operation completion: wait for bit MCR.DONE (or UT0.AID) to go high.
2. Check operation result: check bit MCR.PEG (or compare UMISR0-4 with expected value).
3. Switch-Off FPEC by resetting MCR.EHV (or UT0.AIE).
4. Deselect current operation by clearing MCR.PGM/ERS (or UT0.MRE/EIE).
If the device embeds more than one Flash Macrocell and a Modify Operation is on-going on one of them,
then it is forbidden to start any other Modify Operation on the other Flash Macrocells.
In the following all the possible Modify Operations are described and some examples of the sequences
needed to activate them are presented.
17.3.7.2 Double Word Program
A Flash Program sequence operates on any Double Word within the Flash Core.
Up to two words within the Double Word may be altered in a single Program operation.
Whenever you program, ECC bits also get programmed (unless the selected address belongs to a sector in
which the ECC has been disabled in order to allow bit manipulation). ECC is handled on a 64-bit boundary.
Thus, if only one word in any given 64-bit ECC segment is programmed, the adjoining word (in that
segment) should not be programmed since ECC calculation has already completed for that 64-bit segment.
Attempts to program the adjoining word will probably result in an operation failure. It is recommended
that all programming operations be of 64 bits. The programming operation should completely fill selected
ECC segments within the Double Word.
Programming changes the value stored in an array bit from logic 1 to logic 0 only. Programming cannot
change a stored logic 0 to a logic 1.
Addresses in locked/disabled blocks cannot be programmed.
The user may program the values in any or all of two words, of a Double Word, with a single program
sequence.
Double Word-bound words have addresses which differ only in address bit 2.
The Program operation consists of the following sequence of events:
1. Change the value in the MCR.PGM bit from 0 to 1.
17-76
PXD10 Microcontroller Reference Manual, Rev. 1
Preliminary—Subject to Change Without Notice
Freescale Semiconductor