
689
22.3
Pin Configuration
The flash memory is controlled by the pins shown in table 22.2.
Table 22.2
Pin Configuration
Pin Name
Power-on reset
Flash write protect
Abbreviation
RES
FWP
I/O
Input
Input
Function
Power-on reset
Flash program/erase protection by hardware
Set operation mode of LSI
Set operation mode of LSI
Set operation mode of LSI
Set operation mode of LSI
Serial send data output
Serial receive data input
Mode 3
Mode 2
Mode 1
Mode 0
Transmit data
Receive data
MD3
MD2
MD1
MD0
TxD1
RxD1
Input
Input
Input
Input
Output
Input
22.4
Register Configuration
Registers that control the flash memory when the on-chip flash memory is valid are shown in table
22.3.
Table 22.3
Register Configuration
Name
Flash memory control register 1
Flash memory control register 2
Erase block register 1
Erase block register 2
RAM emulation register
Notes: 1. FLMCR1, FLMCR2, EBR1, and EBR2 are 8-bit registers, and RAMER is a 16-bit
register.
2. Only byte accesses are valid for FLMCR1, FLMCR2, EBR1, and EBR2, the access
requiring 3 cycles. Three cycles are required for a byte or word access to RAMER, and
6 cycles for a longword access.
3. When a longword write is performed on RAMER, 0 must always be written to the lower
word (address H'FFFF8630). Operation is not guaranteed if any other value is written.
*
1 In modes in which the on-chip flash memory is disabled, a read will return H'00, and
writes are invalid. Writes are also disabled when the FWE bit is set to 1 in FLMCR1.
*
2 When a low level is input to the FWP pin, the initial value is H'80.
*
3 When a high level is input to the FWP pin, or if a low level is input and the SWE bit in
FLMCR1 is not set, these registers are initialized to H'00.
Abbre-
viation
FLMCR1 R/W
*
1
FLMCR2 R/W
*
1
EBR1
EBR2
RAMER
R/W
Initial Value
H'00
*
2
H'00
*
3
H'00
*
3
H'00
*
3
H'0000
Address
H'FFFF8580 8
H'FFFF8581 8
H'FFFF8582 8
H'FFFF8583 8
H'FFFF8628 8, 16, 32
Access Size
R/W
*
1
R/W
*
1
R/W