377
19.2
Flash Memory Register Descriptions
19.2.1
Flash Memory Control Register (FLMCR)
FLMCR is an 8-bit register that controls the flash memory operating modes. Transitions to
program mode, erase mode, program-verify mode, and erase-verify mode are made by setting bits
in this register. FLMCR is initialized to H'00 by a reset, in the standby modes, and when 12 V is
not applied to FV
PP
. When 12 V is applied to the FV
PP
pin, a reset or entry to a standby mode
initializes FLMCR to H'80.
Bit
7
6
5
4
3
2
1
0
V
PP
0
R
—
—
—
EV
PV
E
P
Initial value
Read/Write
0
—
0
—
0
—
0
0
0
0
R/W
*
R/W
*
R/W
*
R/W
*
Note:
*
The initial value is H'00 in modes 2 and 3 (on-chip flash memory enabled). In mode 1 (on-
chip flash memory disabled), this register cannot be modified and always reads H'FF. For
information on accessing this register, refer to in section 19.7, Flash Memory Programming
and Erasing Precautions (11).
Bit 7—Programming Power (V
PP
):
This status flag indicates that 12 V is applied to the FV
PP
pin.
Refer to section 19.7, Flash Memory Programming and Erasing Precautions (5), for details on use.
Bit 7: V
PP
0
Description
Cleared when 12 V is not applied to FV
PP
Set when 12 V is applied to FV
PP
(Initial value)
1
Bits 6 to 4—Reserved:
These bits cannot be modified, and are always read as 0.
Bit 3—Erase-Verify Mode (EV):
*1
Selects transition to or exit from erase-verify mode.
Bit 3: EV
Description
0
Exit from erase-verify mode
(Initial value)
1
Transition to erase-verify mode
Bit 2—Program-Verify Mode (PV):
*1
Selects transition to or exit from program-verify mode.
Bit 2: PV
Description
0
Exit from program-verify mode
(Initial value)
1
Transition to program-verify mode