Flash Memory Control Register 1 (Flmcr1) - Renesas H8S/2111B Hardware Manual

Bit single-chip microcomputer h8s family / h8s/2100 series
Table of Contents

Advertisement

18.5.1

Flash Memory Control Register 1 (FLMCR1)

FLMCR1, used together with FLMCR2, 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 18.8, Flash Memory Programming/Erasing.FLMCR1 is initialized to H'80 by a reset, or in
hardware standby mode, software standby mode, sub-active mode, sub-sleep mode, or watch
mode.
Bit
Bit Name
7
FWE
6
SWE
5
4
3
EV
2
PV
1
E
0
P
Rev. 1.00, 05/04, page 438 of 544
Initial
Value
R/W
1
R
0
R/W
0
R
0
R
0
R/W
0
R/W
0
R/W
0
R/W
Description
Flash Write Enable
Controls programming/erasing of on-chip flash
memory. This bit is always read as 0, and cannot be
modified.
Software Write Enable
When this bit is set to 1, flash memory
programming/erasing is enabled. When this bit is
cleared to 0, the EV, PV, E, and P bits in this register,
the ESU and PSU bits in FLMCR2, and all EBR1 and
EBR2 bits cannot be set to 1. Do not clear these bits
and SWE to 0 simultaneously.
Reserved
These bits are always read as 0 and cannot be
modified.
Erase-Verify
When this bit is set to 1 while SWE = 1, the flash
memory transits to erase-verify mode. When it is
cleared to 0, erase-verify mode is cancelled.
Program-Verify
When this bit is set to 1 while SWE = 1, the flash
memory transits to program-verify mode. When it is
cleared to 0, program-verify mode is cancelled.
Erase
When this bit is set to 1 while SWE = 1 and ESU = 1,
the flash memory transits to erase mode. When it is
cleared to 0, erase mode is cancelled.
Program
When this bit is set to 1 while SWE = 1 and PSU = 1,
the flash memory transits to program mode. When it is
cleared to 0, program mode is cancelled.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hd64f2111b

Table of Contents