
719
22.8.2
Software Protection
Software protection can be implemented by setting the SWE bit in FLMCR1, erase block register
1 (EBR1), erase block register 2 (EBR2), and the RAMS bit in the RAM emulation register
(RAMER). When software protection is in effect, setting the P1 or E1 bit in flash memory control
register 1 (FLMCR1), or the P2 or E2 bit in flash memory control register 2 (FLMCR2), does not
cause a transition to program mode or erase mode. (See table 22.9.)
Software protect can be enabled by setting the SWE bit of FLMCR1, block specification register 1
(EBR1), block specification register 2 (EBR2) and the RAMS bit of the RAM emulation register.
During software protect, transition cannot be made to the program mode or the erase mode even
when setting P1 or E1 bits of the flash memory control register 1 (FLMCR1), or P2 or E2 bits of
flash memory control register 2 (FLMCR2). (See table 22.9.)
Table 22.9
Software Protection
Function
Item
Description
Program Erase
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 or external memory.)
Yes
Yes
Block specification
protection
•
Erase protection can be set for individual blocks by
settings in erase block register 1 (EBR1) and erase
block register 2 (EBR2).
•
Setting EBR1 and EBR2 to H'00 places all blocks in
the erase-protected state.
—
Yes
Emulation
protection
•
Setting the RAMS bit to 1 in the RAM emulation
register (RAMER) places all blocks in the
program/erase-protected state.
Yes
Yes
Содержание SH7041 Series
Страница 2: ......
Страница 6: ......
Страница 38: ...xvi ...
Страница 44: ...6 ...
Страница 46: ...8 ...
Страница 48: ...10 ...
Страница 82: ...44 ...
Страница 114: ...76 ...
Страница 118: ...80 ...
Страница 124: ...86 ...
Страница 170: ...132 ...
Страница 250: ...212 ...
Страница 492: ...454 ...
Страница 506: ...468 ...
Страница 604: ...566 ...
Страница 684: ...646 ...
Страница 706: ...668 ...
Страница 778: ...740 ...
Страница 780: ...742 ...
Страница 818: ...780 ...
Страница 850: ...812 ...
Страница 923: ...SH7040 SH7041 SH7042 SH7043 SH7044 SH7045 Group Hardware Manual REJ09B0044 0600O ...