![Freescale Semiconductor MPC5632M Скачать руководство пользователя страница 290](http://html.mh-extra.com/html/freescale-semiconductor/mpc5632m/mpc5632m_manual_2330659290.webp)
MPC563XM Reference Manual, Rev. 1
290
Freescale Semiconductor
Preliminary—Subject to Change Without Notice
11.7.12.3.1
Software Locking
A software mechanism is provided to independently lock/unlock each high, mid, and low address space
against program and erase.
Software Locking is done through the CFLASH_LMLR (low/mid address space block locking register),
CFLASH_SLMLR (secondary low/mid address space block locking register), or CFLASH_HLR (high
address space block locking register). These can be written through register writes, and can be read through
register reads.
When the program/erase operations are enabled through hardware, software locks are enforced through
doing register writes.
11.7.12.3.2
Flash
Program Suspend/Resume
Flash program Suspend / Resume commands are not supported.
11.7.12.4 Flash
Erase
Erase changes the value stored in all bits of the selected blocks to logic 1. Locked or disabled blocks cannot
be erased. If multiple blocks are selected for erase during an erase sequence, the blocks are erased
sequentially starting with the lowest numbered block and terminating with the highest. Aborting an erase
operation leaves the Flash core blocks being erased in an indeterminate data state. This can be recovered
by executing an erase on the affected blocks.
The erase sequence consists of the following sequence of events:
1. Change the value in the CFLASH_MCR[ERS] bit from 0 to a 1.
2. Select the block, or blocks to be erased by writing ones to the appropriate registers in
CFLASH_LMSR or CFLASH_HSR. If the shadow row is to be erased, this step can be skipped,
and CFLASH_LMSR and CFLASH_HSR are ignored. For shadow row erase, refer to
Section 11.7.12.6, “Flash Shadow Block
” for more information.
NOTE
Lock and Select are independent. If a block is selected and locked, no erase
occurs. 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.
3. Write to any address in Flash. This is referred to as an erase interlock write.
4. Write a logic 1 to the CFLASH_MCR[EHV] bit to start an internal erase sequence or skip to step
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 blocks are to be erased, return to step 2.
9. Write a logic 0 to the CFLASH_MCR[ERS] bit to terminate the erase.
Содержание 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 ...