MPC563XM Reference Manual, Rev. 1
Freescale Semiconductor
287
Preliminary—Subject to Change Without Notice
bits to 128 bits, and be 64-bit aligned. The programming operation must completely fill the selected ECC
segments within the page.
The program operation consists of the following sequence of events:
1. Change the value in the CFLASH_MCR[PGM] bit from a 0 to a 1.
NOTE
Ensure the block that contains the address to be programmed is unlocked.
Refer to
Section 11.6.2.2, “Low/Mid Address Space Block Locking
Section 11.6.2.3, “Secondary Low/Mid
Address Space Block Locking Register (CFLASH_SLMLR)
” for more
information.
2. Write the first address to be programmed in the Flash module with the program data. This write is
referred to as a program data interlock write. An interlock write can either be an aligned word or
doubleword.
3. If more than 1 word or doubleword is to be programmed, write each additional address in the page
with data to be programmed. This is referred to as a program data write. All unwritten data words
default to 0xFFFF FFFF.
4. Write a logic 1 to the CFLASH_MCR[EHV] bit to start the internal program sequence or skip to
5. Wait until the CFLASH_MCR[DONE] bit goes high.
6. Confirm CFLASH_MCR[PEG] = 1.
7. Write a logic 0 to the CFLASH_MCR[EHV] bit.
8. If more addresses are to be programmed, return to step 2.
9. Write a logic 0 to the CFLASH_MCR[PGM] bit to terminate the program sequence.
The program sequence is presented graphically in
. The program suspend operation detailed
Section 11.7.12.3.2, “Flash Program Suspend/Resume
The first write after a program is initiated determines the page address to be programmed. The program
can be initiated with the 0 to 1 transition of the CFLASH_MCR[PGM] bit or by clearing the
CFLASH_MCR[EHV] bit at the end of a previous program. This first write is referred to as an interlock
write. If the program is not an erase-suspended program, the interlock write determines if the shadow or
normal array space is programmed and causes CFLASH_MCR[PEAS] to be set/cleared.
In the case of an erase-suspended program, the value in CFLASH_MCR[PEAS], is retained from the erase.
An interlock write must be performed before setting CFLASH_MCR[EHV]. The user can terminate a
program sequence by clearing CFLASH_MCR[PGM] prior to setting CFLASH_MCR[EHV].
If multiple writes are done to the same location the data for the last write is used in programming.
While CFLASH_MCR[DONE] is low, CFLASH_MCR[EHV] is high and CFLASH_MCR[PSUS] is low
the user can clear CFLASH_MCR[EHV], resulting in a program abort. A program abort forces the module
to step 8 of the program sequence. An aborted program results in CFLASH_MCR[PEG] being set low,
indicating a failed operation. The data space being operated on before the abort contains indeterminate
data. The user cannot abort a program sequence while in program suspend.
Содержание MPC5632M
Страница 22: ...MPC563XM Reference Manual Rev 1 22 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 62: ...MPC563XM Reference Manual Rev 1 62 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 92: ...MPC563XM Reference Manual Rev 1 92 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 168: ...MPC563XM Reference Manual Rev 1 168 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 242: ...MPC563XM Reference Manual Rev 1 242 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 302: ...MPC563XM Reference Manual Rev 1 302 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 410: ...MPC563XM Reference Manual Rev 1 410 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 440: ...MPC563XM Reference Manual Rev 1 440 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 464: ...MPC563XM Reference Manual Rev 1 464 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 554: ...MPC563XM Reference Manual Rev 1 554 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 590: ...MPC563XM Reference Manual Rev 1 590 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 622: ...MPC563XM Reference Manual Rev 1 622 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 716: ...MPC563XM Reference Manual Rev 1 716 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1114: ...MPC563XM Reference Manual Rev 1 1114 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1144: ...MPC563XM Reference Manual Rev 1 1144 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1266: ...MPC563XM Reference Manual Rev 1 1266 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1316: ...MPC563XM Reference Manual Rev 1 1316 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1348: ...MPC563XM Reference Manual Rev 1 1348 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1362: ...MPC563XM Reference Manual Rev 1 1362 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1382: ...MPC563XM Reference Manual Rev 1 1382 Freescale Semiconductor Preliminary Subject to Change Without Notice ...