Register Descriptions; Flash Memory Control Register 1 (Flmcr1) - Renesas H8S/2319 series Hardware Manual

Renesas 16-bit single-chip microcomputer
Table of Contents

Advertisement

17.14

Register Descriptions

17.14.1 Flash Memory Control Register 1 (FLMCR1)

Bit
:
7
FWE1
Initial value :
1
R/W
:
R
FLMCR1 is an 8-bit register used for flash memory operating mode control. Program-verify mode
or erase-verify mode for addresses H'000000 to H'03FFFF is entered by setting SWE1 to 1 then
setting the EV1 or PV1 bit. Program mode for addresses H'000000 to H'03FFFF is entered by
setting SWE1 to 1 then setting the PSU1 bit, and finally setting the P1 bit. Erase mode for
addresses H'000000 to H'03FFFF is entered by setting SWE1 to 1 then setting the ESU1 bit, and
finally setting the E1 bit. FLMCR1 is initialized to H'80 by a reset, and in hardware standby mode
and software standby mode. When on-chip flash memory is disabled, a read will return H'00, and
writes are invalid.
Writes to bits ESU1, PSU1, EV1, and PV1 only when SWE1 = 1; writes to the E1 bit only when
SWE1 = 1, and ESU1 = 1; and writes to the P1 bit only when SWE1 = 1, and PSU1 = 1.
Bit 7—Flash Write Enable Bit (FWE): Sets hardware protection against flash memory
programming/erasing. This bit cannot be modified and is always read as 1 in this model.
Bit 6—Software Write Enable Bit 1 (SWE1): Enables or disables flash memory programming
and erasing for addresses H'000000 to H'03FFFF. This bit should be set when setting FLMCR1
bits 5 to 0, EBR1 bits 7 to 0, and EBR2 bits 3 to 0.
When SWE1 = 1, the flash memory can only be read in program-verify or erase-verify mode.
Bit 6
SWE1
Description
0
Writes disabled
1
Writes enabled
Rev. 5.00, 12/03, page 622 of 1088
6
5
SWE1
ESU1
0
0
R/W
R/W
4
3
PSU1
EV1
0
0
R/W
R/W
2
1
PV1
E1
0
0
R/W
R/W
R/W
(Initial value)
0
P1
0

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8s/2318 series

Table of Contents