CHAPTER 21 FLASH MEMORY
Preliminary User’s Manual U16846EJ1V0UD
351
Figure 21-18. Format of Flash-Programming Mode Control Register (FLPMC)
0
Symbol
FLPMC
0
0
0
FWEDIS
FWEPR
FLSPM1
FLSPM0
Address: FFC4H After reset: 0
×
H
Note 1
R/W
Note 2
Selection of operation mode during self-programming
Normal mode
Instructions of flash memory can be fetched from all
addresses.
Self-programming mode A1
Firmware can be called (CALL #8100H).
Self-programming mode A2
Instructions are fetched from firmware ROM.
This mode is set in firmware and cannot be set by the user.
Setting prohibited
FLSPM1
Note 4
0
0
1
1
FLSPM0
Note 4
0
1
1
0
FWEDIS
0
Control of flash memory writing/erasing
Writing/erasing enabled
Note 3
Writing/erasing disabled
1
Status of FLMD0 pin
Low level
High level
Note 3
FWEPR
0
1
Notes 1. Differs depending on the operation mode.
•
User mode:
08H
•
On-board mode: 0CH
2. Bit 2 (FWEPR) is read-only.
3. For actual writing/erasing, the FLMD0 pin must be high (FWEPR = 1), as well as
FWEDIS = 0.
FWEDIS
FWEPR
Enable or disable of flash memory writing/erasing
0 1
Writing/erasing
enabled
Other than above
Writing/erasing disabled
4. The user ROM (flash memory) or firmware ROM can be selected by FLSPM1
and FLSPM0, and the operation mode set on the application system by the
mode pin or the self-programming mode can be selected.
Cautions 1. Be sure to keep FWEDIS at 0 until writing or erasing of the flash memory
is completed.
2. Make sure that FWEDIS = 1 in the normal mode.
3. Manipulate FLSPM1 and FLSPM0 after execution branches to the
internal RAM. The address of the flash memory is specified by an
address signal from the CPU when FLSPM1 = 0 or the set value of the
firmware written when FLSPM1 = 1. In the on-board mode, the
specifications of FLSPM1 and FLSPM0 are ignored.