19.10
Flash Memory Protection
There are three kinds of flash memory program/erase protection: hardware protection, software protection, and error
protection.
19.10.1 Hardware Protection
Hardware protection refers to a state in which programming/erasing of flash memory is forcibly disabled or aborted.
Hardware protection is reset by settings in flash memory control registers 1 and 2 (FLMCR1, FLMCR2) and erase block
registers 1 and 2 (EBR1, EBR2). (See table 19-16.)
Table 19-16 Hardware Protection
Item
FWE pin protection
Reset/standby
protection
Rev.6.00 Oct.28.2004 page 598 of 1016
REJ09B0138-0600H
Description
•
When a low level is input to the FWE pin,
FLMCR1, FLMCR2 (excluding the FLER
bit), EBR1, and EBR2 are initialized, and
the program/erase-protected state is
entered.
•
In a reset (including a WDT overflow reset)
and in standby mode, FLMCR1, FLMCR2,
EBR1, and EBR2 are initialized, and the
program/erase-protected state is entered.
•
In a reset via the RES pin, the reset state
is not entered unless the RES pin is held
low until oscillation stabilizes after
powering on. In the case of a reset during
operation, hold the RES pin low for the
RES pulse width specified in the AC
Characteristics section.
Functions
Program
Erase
Yes
Yes
Yes
Yes