Register Configuration; Register Descriptions; Flash Memory Control Register 1 (Flmcr1) - Hitachi H8/3022 Hardware Manual

H8/3022 series hitachi single-chip microcomputer
Table of Contents

Advertisement

15.4

Register Configuration

1
The registers *
used to control the on-chip flash memory when enabled are shown in table 15-2.
Table 15-2 Register Configuration
Register Name
Flash memory control register 1
Flash memory control register 2
Erase block register 1
Erase block register 2
RAM emulation register
Notes: 1. FLMCR1, FLMCR2, EBR1, and EBR2, and RAMER are 8-bit registers.
Byte access must be used on these registers (do not use word or longword access).
These registers are for use exclusively by the flash memory version, and are not
provided in the mask ROM version. Reads to the corresponding addresses in the mask
ROM version will always return 1, and writes to these addresses are invalid.
Access to address H'FF44 to H'FF46 and H'FF48 to H'FF4F (lower 16 bits) is
prohibited.
2. Lower 16 bits of the address.
3. When a high level is input to the FWE pin, the initial value is H'80.
15.5

Register Descriptions

15.5.1

Flash Memory Control Register 1 (FLMCR1)

FLMCR1 is an 8-bit register used for flash memory operating mode control. Program-verify mode
or erase-verify mode is entered by setting SWE bit to 1 when FWE = 1, then setting the PV or EV
bit. Program mode is entered by setting SWE1 bit to 1 when FWE = 1, then setting the PSU bit,
and finally setting the P bit. Erase mode is entered by setting SWE bit to 1 when FWE = 1, then
setting the ESU bit, and finally setting the E bit. FLMCR1 is initialized by a power-on reset, and
in hardware standby mode and software standby mode. Its initial value is H'80 when a high level
is input to the FWE pin, and H'00 when a low level is input. When on-chip flash memory is
disabled, a read will return H'00, and writes are invalid.
Writes are enabled only in the following cases: Writes to bit SWE of FLMCR1 enabled when
FWE = 1, to bits ESU, PSU, EV, and PV when FWE = 1 and SWE = 1, to bit E when FWE = 1,
SWE = 1 and ESU = 1, and to bit P when FWE = 1, SWE = 1, and PSU = 1.
Notes: 1. To prevent erroneous programming or erasing, the setting of individual bits in this
register must be carried out in accordance with the programming and erase flowcharts.
Abbreviation
R/W
FLMCR1 *
1
R/W
FLMCR2 *
1
R
EBR1 *
1
R/W
EBR2 *
1
R/W
RAMER *
1
R/W
Address *
Initial Value
H'00 *
3
H'FF40
H'00
H'FF41
H'00
H'FF42
H'00
H'FF43
H'F0
H'FF47
2
441

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8/3021H8/3020H8/3022 f-ztat

Table of Contents