English
Language : 

SH7065 Datasheet, PDF (757/941 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH RISC engine Family/SH7000 Series
19.5 Register Descriptions
Section 19 256 kB Flash Memory (F-ZTAT)
19.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 to 1 when FWE = 1, then
setting the EV or PV bit.
Program mode is entered by setting SWE to 1 when FWE = 1, then setting the PSU bit, and finally
setting the P bit.
Erase mode is entered by setting SWE to 1 when FWE = 1, then setting the ESU bit, and finally
setting the E bit.
FLMCR1 is initialized by a 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.
In the on-chip ROM disabled modes (MCU modes 2, 3, and 4), a read will return H'00, and writes
are invalid.
Writes to bits ESU, PSU, EV, and PV in FLMCR1 are enabled only when FWE = 1 and SWE = 1;
writes to the E bit only when FWE = 1, SWE = 1, and ESU = 1; and writes to the P bit only when
FWE = 1, SWE = 1, and PSU = 1.
Bit:
7
6
5
4
3
2
1
0
FWE SWE ESU PSU
EV
PV
E
P
Initial value: 1/0
0
0
0
0
0
0
0
R/W: R
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Bit 7—Flash Write Enable (FWE): Sets hardware protection against flash memory
programming/erasing.
Bit 7: FWE
0
1
Description
When a low level is input to the FWE pin (hardware-protected state)
When a high level is input to the FWE pin
Rev. 5.00 Sep 11, 2006 page 735 of 916
REJ09B0332-0500