6. ROM
Rev.3.00 Jul. 19, 2007 page 146 of 532
REJ09B0397-0300
6.6.2 Software
Protection
Software protection can be implemented by setting the SWE bit in flash memory control register 1
(FLMCR1), and the erase block register (EBR). With software protection, setting the P or E bit in
FLMCR1 does not cause a transition to program mode or erase mode. (See table 6.8.)
Table 6.8
Software Protection
Functions
Item Description
Program
Erase
Verify
*
1
SWE bit
protection
•
Clearing the SWE bit to 0 in FLMCR1 sets
the program/erase-protected state for all
blocks. (Execute in on-chip RAM.)
Not
possible
Not
possible
Not
possible
Block
protection
•
Individual blocks can be protected from
erasing and programming by settings in the
erase block register (EBR)
*
2
.
•
If H'00 is set in EBR, all blocks are protected
from erasing and programming.
⎯
Not
possible
Possible
Notes: 1. Two modes: program-verify and erase-verify.
2. When not erasing, clear all EBR bits to 0.
6.6.3 Error
Protection
In error protection, an error is detected when MCU runaway occurs during flash memory
programming/erasing*
1
, or operation is not performed in accordance with the program/erase
algorithm, and the program/erase operation is aborted. Aborting the program/erase operation
prevents damage to the flash memory due to overprogramming or overerasing.
If the MCU malfunctions during flash memory programming/erasing, the FLER bit is set to 1 in
FLMCR2 and the error protection state is entered. FLMCR1, FLMCR2, and EBR settings*
2
are
retained, but program mode or erase mode is aborted at the point at which the error occurred.
Program mode or erase mode cannot be re-entered by re-setting the P or E bit. However, PV and
EV bit setting is enabled, and a transition can be made to verify mode.
FLER bit setting conditions are as follows:
1. When flash memory is read*
3
during programming/erasing (including a vector read or
instruction fetch)
2. Immediately after the start of exception handling (excluding a reset) during
programming/erasing*
4
Содержание F-ZTAT H8 Series
Страница 6: ...Rev 3 00 Jul 19 2007 page iv of xxiv REJ09B0397 0300...
Страница 194: ...7 RAM Rev 3 00 Jul 19 2007 page 168 of 532 REJ09B0397 0300...
Страница 234: ...8 I O Ports Rev 3 00 Jul 19 2007 page 208 of 532 REJ09B0397 0300...
Страница 274: ...9 Timers Rev 3 00 Jul 19 2007 page 248 of 532 REJ09B0397 0300...
Страница 352: ...12 A D Converter Rev 3 00 Jul 19 2007 page 326 of 532 REJ09B0397 0300...
Страница 466: ...16 Electrical Characteristics H8 3854 Group Rev 3 00 Jul 19 2007 page 440 of 532 REJ09B0397 0300...
Страница 561: ......