6. ROM
Rev.3.00 Jul. 19, 2007 page 126 of 532
REJ09B0397-0300
6.2.5 Register
Configuration
The registers used to control the on-chip flash memory when enabled are shown in table 6.3. In
order to access these registers, the FLSHE bit in SYSCR3 must be set to 1.
Table 6.3
Flash Memory Registers
Register Name
Abbr.
R/W
Initial Value
Address
Flash memory control register 1
FLMCR1
*
5
R/W
*
2
H'00
*
3
H'FF80
*
1
Flash memory control register 2
FLMCR2
*
5
R/W
*
2
H'00
*
4
H'FF81
*
1
Erase block register
EBR
*
5
R/W
*
2
H'00
*
4
H'FF83
*
1
Mode control register
MDCR R Undefined
H'FF89
System control register 3
SYSCR3
R/W
H'00
H'FF8F
Notes: 1. Flash memory register selection is performed by means of the FLSHE bit in system
control register 3 (SYSCR3).
2. When the FWE bit in FLMCR1 is cleared to 0, writes are invalid.
3. When a high level is input to the FWE pin, the initial value is H'80.
4. When a low level is input to the FWE pin, or if a high level is input and the SWE bit in
FLMCR1 is not set, these registers are initialized to H'00.
5. FLMCR1, FLMCR2, and EBR are 8-bit registers. Only byte accesses are valid for these
registers, the access requiring 2 states.
The registers shown in table 6.3 are for use exclusively by the flash memory version. In the mask
ROM version, a read access to the address of a register other than MDCR will always return 0, a
read access to the MDCR address will return an undefined value, and writes are invalid.
6.3
Flash Memory Register Descriptions
6.3.1
Flash Memory Control Register 1 (FLMCR1)
Bit
7 6 5 4 3 2 1 0
FWE
SWE
⎯
⎯
EV PV E P
Initial value
⎯
*
0 0 0 0 0 0 0
Read/Write R
R/W
⎯
⎯
R/W R/W R/W R/W
Note:
*
Determined by the state of the FWE pin.
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
corresponding bit. Program mode is entered by setting SWE to 1 when FWE = 1, then setting the
PSU bit in FLMCR2, and finally setting the P bit. Erase mode is entered by setting SWE to 1
Summary of Contents for F-ZTAT H8 Series
Page 6: ...Rev 3 00 Jul 19 2007 page iv of xxiv REJ09B0397 0300...
Page 194: ...7 RAM Rev 3 00 Jul 19 2007 page 168 of 532 REJ09B0397 0300...
Page 234: ...8 I O Ports Rev 3 00 Jul 19 2007 page 208 of 532 REJ09B0397 0300...
Page 274: ...9 Timers Rev 3 00 Jul 19 2007 page 248 of 532 REJ09B0397 0300...
Page 352: ...12 A D Converter Rev 3 00 Jul 19 2007 page 326 of 532 REJ09B0397 0300...
Page 561: ......