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

H8s/2628 series 16-bit single-chip microcomputer
Table of Contents

Advertisement

19.5.1

Flash Memory Control Register 1 (FLMCR1)

FLMCR1 makes the flash memory enter program mode, program-verify mode, erase mode, or
erase-verify mode. For details on the register setting, refer to section 19.8, Flash Memory
Programming/Erasing.
Bit
Bit Name
7
FWE
6
SWE
5
ESU1
4
PSU1
3
EV1
2
PV1
1
E1
0
P1
Rev. 1.0, 09/02, page 452 of 568
Initial Value
R/W
R
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
Description
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.
Software Write Enable
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 and EBR2 bits cannot be set.
Erase Setup
When this bit is set to 1, the flash memory changes
to the erase setup state. When it is cleared to 0,
the erase setup state is cancelled.
Program Setup
When this bit is set to 1, the flash memory changes
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.
Erase-Verify
When this bit is set to 1, the flash memory changes
to erase-verify mode. When it is cleared to 0,
erase-verify mode is cancelled.
Program-Verify
When this bit is set to 1, the flash memory changes
to program-verify mode. When it is cleared to 0,
program-verify mode is cancelled.
Erase
When this bit is set to 1 while the SWE1 and ESU1
bits are 1, the flash memory changes to erase
mode. When it is cleared to 0, erase mode is
cancelled.
Program
When this bit is set to 1 while the SWE1 and PSU1
bits are 1, the flash memory changes to program
mode. When it is cleared to 0, program mode is
cancelled.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hd64f2628Hd6432628H8s/2627Hd6432627

Table of Contents