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

Table of Contents

Advertisement

7.2.5

Register Configuration

The registers used to control the on-chip flash memory when enabled are shown in table 7.2.
Table 7.2
Register Configuration
Register Name
Flash memory control register 1
Flash memory control register 2
Erase block register 1
Flash memory power control register FLPWCR
Flash memory enable register
Notes: 1. To access these registers, set the FLSHE bit to 1 in the flash memory enable register.
2. When the SWE bit of FLMCR1 is not set, these registers are initialized to H'00.
7.3

Register Descriptions

7.3.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 the SWE bit to 1, then setting the PV or EV bit. Program
mode is entered by setting the SWE bit to 1, then setting the PSU bit, and finally setting the P bit.
Erase mode is entered by setting the SWE bit to 1, then setting the ESU bit, and finally setting the
E bit. FLMCR1 is initialized to H'00 by a power-on reset, or is initialized in standby mode.
Bit
7
Initial value
0
Read/Write
Bit 7—Reserved: This bit always reads 0.
Bit 6—Software Write Enable Bit (SWE): Enables or disables flash memory programming and
erasing. Set this bit before setting bits 5 to 0 of this register and bits 4 to 0 of EBR1.
Bit 6: SWE
0
1
104
Abbreviation
FLMCR1
FLMCR2
EBR1
FENR
6
SWE
ESU
0
R/W
R/W
Description
Write disabled
Write enabled
R/W
R/W *
R *
1
R/W *
R/W *
R/W
5
4
PSU
0
0
R/W
R/W
Initial Value
1
H'00
H'00
H'00 *
1
2
H'00 *
1
2
H'00
3
2
EV
PV
0
0
R/W
Address
H'FF90
H'FF91
H'FF93
H'FF92
H'FF9B
1
0
E
P
0
0
R/W
R/W
(Initial value)

Advertisement

Table of Contents
loading

Table of Contents