Flash Memory Control Register 1 (Flmcr1) - Hitachi H8S/2215 Series Hardware Manual

Hitachi single-chip microcomputer
Table of Contents

Advertisement

19.5.1

Flash Memory Control Register 1 (FLMCR1)

FLMCR1 is a register that makes the flash memory transit to program mode, program-verify
mode, erase mode, or erase-verify mode. For details on register setting, refer to section 19.8, Flash
Memory Programming/Erasing.
Bit
Bit Name Initial Value
7
FWE
—*
6
SWE1
0
5
ESU1
0
4
PSU1
0
3
EV1
0
R/W
Description
R
Reflects the input level at the FWE pin. It is set to 1
when a low level is input to the FWE pin, and cleared to
0 when a high level is input.
R/W
Software Write Enable Bit:
When this bit is set to 1, flash memory
programming/erasing is enabled. When this bit is
cleared to 0, other FLMCR1 register bits and all EBR1,
EBR2 bits cannot be set.
[Setting condition]
When FWE=1
R/W
Erase Setup Bit:
When this bit is set to 1, the flash memory transits to the
erase setup state. When it is cleared to 0, the erase
setup state is cancelled.
[Setting condition]
When FWE=1 and SWE1=1
R/W
Program Setup Bit:
When this bit is set to 1, the flash memory transits to the
program setup state. When it is cleared to 0, the
program setup state is cancelled. Set this bit to 1 before
setting the P1 bit in FLMCR1.
[Setting condition]
When FWE=1 and SWE1=1
R/W
Erase-Verify:
When this bit is set to 1, the flash memory transits to
erase-verify mode. When it is cleared to 0, erase-verify
mode is cancelled.
[Setting condition]
When FWE=1 and SWE1=1
Rev. 3.0, 10/02, page 565 of 686

Advertisement

Table of Contents
loading

Table of Contents