CHAPTER 16 FLASH MEMORY (
µµµµ
PD70F3107A)
531
User’s Manual U14359EJ4V0UM
16.7.12 Flash programming mode control register (FLPMC)
The flash memory mode control register (FLPMC) is a register used to enable/disable writing to flash memory and
to specify the self-programming mode.
This register can be read/written in 8-bit or 1-bit units (the VPP bit (bit 2) is read-only).
Cautions 1. Be sure to transfer control to the internal RAM or external memory beforehand to
manipulate the FLSPM bit. However, in on-board programming mode set by the flash
programmer, the specification of FLSPM bit is ignored.
2. Do not change the initial value of bits 0 and 4 to 7.
FLPMC
Address
FFFFF8D4H
After reset
Note
08H/0CH/00H
7
6
5
4
<3>
<2>
<1>
0
0
FLSPM
VPP
VPPDIS
0
0
0
0
Note
08H:
When writing voltage is not applied to the V
PP
pin
0CH: When writing voltage is applied to the V
PP
pin
00H: Product not provided with flash memory (
µ
PD703103A, 703105A, 703106A, 703107A)
Bit position
Bit name
Function
3
VPPDIS
V
PP
Disable
Enables/disables writing/deleting on-chip flash memory. When this bit is 1,
writing/deleting on-chip flash memory is disabled even if a high voltage is applied to
the V
PP
pin.
0: Enables writing/deleting flash memory
1: Disables writing/deleting flash memory
2
VPP
V
PP
Indicates the voltage applied to the V
PP
pin reaches the writing-enabled level. This
bit is used to check whether writing is possible or not in the self-programming mode.
0: Indicates high-voltage application is not detected (the voltage has not reached
the writing voltage enable level)
1: Indicates high-voltage application is detected (the voltage has reached the
writing voltage enable level)
1
FLSPM
Flash Self Programming Mode
Controls switching between internal ROM and the self-programming interface. This
bit can switch the mode between the normal mode set by the mode pin on the
application system and the self-programming mode. The setting of this bit is valid
only if the voltage applied to the V
PP
pin reaches the writing voltage enable level.
0: Normal mode (for all addresses, instruction fetch is performed from on-chip
flash memory)
1: Self-programming mode (device internal processing is started.)