![Freescale Semiconductor MPC5553 Скачать руководство пользователя страница 554](http://html1.mh-extra.com/html/freescale-semiconductor/mpc5553/mpc5553_reference-manual_2330655554.webp)
MPC5553/MPC5554 Microcontroller Reference Manual, Rev. 5
Freescale Semiconductor
13-31
3. Write to any address in flash. This is referred to as an erase interlock write.
4. Write a logic 1 to the FLASH_MCR[EHV] bit to start an internal erase sequence or skip to step 9
to terminate.
5. Wait until the FLASH_MCR[DONE] bit goes high.
6. Confirm FLASH_MCR[PEG] = 1.
7. Write a logic 0 to the FLASH_MCR[EHV] bit.
8. If more blocks are to be erased, return to step 2.
9. Write a logic 0 to the FLASH_MCR[ERS] bit to terminate the erase.
The erase sequence is presented graphically in
. The erase suspend operation detailed in
is discussed in section
Section 13.4.2.4.1, “Flash Erase Suspend/Resume
.”
After setting FLASH_MCR[ERS], one write, referred to as an interlock write, must be performed before
FLASH_MCR[EHV] can be set to a 1. Data words written during erase sequence interlock writes are
ignored. The user may terminate the erase sequence by clearing FLASH_MCR[ERS] before setting
FLASH_MCR[EHV].
An erase operation may be aborted by clearing FLASH_MCR[EHV] assuming FLASH_MCR[DONE] is
low, FLASH_MCR[EHV] is high and FLASH_MCR[ESUS] is low. An erase abort forces the module to
step 8 of the erase sequence. An aborted erase will result in FLASH_MCR[PEG] being set low, indicating
a failed operation. The blocks being operated on before the abort contain indeterminate data. The user may
not abort an erase sequence while in erase suspend.
WARNING
Aborting an erase operation will leave the flash core blocks being erased in
an indeterminate data state. This may be recovered by executing an erase on
the affected blocks.
13.4.2.4.1
Flash
Erase Suspend/Resume
The erase sequence may be suspended to allow read access to the flash core. The erase sequence may also
be suspended to program (erase-suspended program) the flash core. A program started during erase
suspend can in turn be suspended. Only one erase suspend and one program suspend are allowed at a time
during an operation. It is not possible to erase during an erase suspend, or program during a program
suspend. During suspend, all reads to flash core locations targeted for program and blocks targeted for
erase return indeterminate data. Programming locations in blocks targeted for erase during
erase-suspended program may result in corrupted data.
An erase suspend operation is initiated by setting the FLASH_MCR[ESUS] bit. FLASH_MCR[ESUS]
can be set to a 1 at any time when FLASH_MCR[ERS] and FLASH_MCR[EHV] are high and
FLASH_MCR[PGM] is low. A 0 to 1 transition of FLASH_MCR[ESUS] causes the flash module to start
the sequence which places it in erase suspend. The user must wait until FLASH_MCR[DONE] = 1 before
the module is suspended and further actions are attempted. After it is suspended, the array may be read or
a program sequence may be initiated (erase-suspended program). Before initiating a program sequence the
user must first clear FLASH_MCR[EHV]. If a program sequence is initiated the value of the
FLASH_MCR[PEAS] is not reset. These values are fixed at the time of the first interlock of the erase. flash
core reads while FLASH_MCR[ESUS] = 1 from the blocks being erased return indeterminate data.
The erase operation is resumed by clearing the FLASH_MCR[ESUS] bit. The flash continues the erase
sequence from one of a set of predefined points. This can extend the time required for the erase operation.
Содержание MPC5553
Страница 5: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 2 Freescale Semiconductor...
Страница 21: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 xvi Freescale Semiconductor...
Страница 47: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 1 26 Freescale Semiconductor...
Страница 163: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 4 20 Freescale Semiconductor...
Страница 179: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 5 16 Freescale Semiconductor...
Страница 561: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 13 38 Freescale Semiconductor...
Страница 615: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 14 54 Freescale Semiconductor...
Страница 707: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 17 68 Freescale Semiconductor...
Страница 755: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 18 48 Freescale Semiconductor...
Страница 873: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 19 118 Freescale Semiconductor...
Страница 984: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 Freescale Semiconductor 21 41...
Страница 985: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 21 42 Freescale Semiconductor...
Страница 1019: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 22 34 Freescale Semiconductor...
Страница 1129: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 25 90 Freescale Semiconductor...
Страница 1207: ...Revision History 4 Freescale Semiconductor...