Flash Memory Control Register 2 (Flmcr2) - Hitachi H8S/2199 Hardware Manual

Single-chip microcomputer
Table of Contents

Advertisement

7.3.2

Flash Memory Control Register 2 (FLMCR2)

Bit
:
FLER
Initial value
:
R/W
:
FLMCR2 is an 8-bit register used for flash memory operating control mode.
With addresses H'40000 to H'47FFF, program-verify mode and erase-verify mode is entered by
setting SWE2 when FWE (FLMCR1) = 1, then setting the EV2 bit and the PV2 bit. Program mode
is entered by setting SWE2 when FWE (FLMCR1) = 1, then setting the SWE2 bit and PSU2 bit,
and finally setting the P2 bit.
With addresses H'40000 to H'47FFF, erase mode is entered by setting SWE2 when FWE
(FLMCR1) = 1, then setting the ESU2 bit , and finally setting the E2 bit. FLMCR2 is initialized to
H'00 by a reset, in standby mode, when a low level is input to the FWE pin, and when a high level
is input to the FWE pin and the SWE2 bit in FLMCR2 is not set. FLER can be initialized only by
a reset.
Writes to the SWE2 bit in the FLMCR2 are enabled only when FWE (FLMCR1) = 1; writes to the
ESU2, PSV2, EV2, and PV2 bits only when FWE (FLMCR1) = 1 and SWE2 = 1; writes to the E2
bit only when FWE (FLMCR1) = 1, SW2 = 1, and ESU2 = 1; writes to the P2 bit only when FWE
(FLMCR1) = 1, SWE2 = 1, and PSU2 = 1.
Bit 7    Flash Memory Error (FLER): Indicates that an error has occurred during an operation
on flash memory (programming or erasing). When FLER is set to 1, flash memory goes to the
error-protection state.
Bit 7
FLER
Description
0
Flash memory is operating normally
Flash memory program/erase protection (error protection) is disabled
[Clearing condition]
Reset or hardware standby mode
1
An error has occurred during flash memory programming/erasing
Flash memory program/erase protection (error protection) is enabled
[Setting condition]
See section 7.6.3, Error Protection
Rev. 1.0, 02/00, page 134 of 1141
7
6
SWE2
ESU2
0
0
R
R/W
R/W
5
4
PSU2
EV2
0
0
R/W
R/W
3
2
PV2
E2
0
0
R/W
R/W
1
0
P2
0
0
R/W
(Initial value)

Advertisement

Table of Contents
loading

Table of Contents