
CHAPTER 16 FLASH MEMORY
User’s Manual U12768EJ4V1UD
423
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. Be sure to set bits 0 and 5 to 7 to 0 and bit 4 to 1.
FLPMC
Address
FFFFF8D4H
After resetNote
18H/38H/1CH/3CH
7
654
3
2
1
0
FLSPM
VPP
VPPDIS
1
0
Note
18H/38H: When writing voltage is not applied to the VPP pin
1CH/3CH: When writing voltage is applied to the VPP pin
Bit Position
Bit Name
Function
3
VPPDIS
VPP Disable
Enables/disables writing/erasing on-chip flash memory. When this bit is 1,
writing/erasing on-chip flash memory is disabled even if a high voltage is applied to
the VPP pin.
0: Enables writing/erasing flash memory
1: Disables writing/erasing flash memory
2
VPP
VPP
Indicates that the voltage applied to the VPP pin has reached 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 VPP 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.)
Remark
Because the mask ROM versions (
PD703014A, 703014AY, 703014B, 703014BY, 703015A,
703015AY, 703015B, 703015BY, 703017A, and 703017AY) do not have the FLPMC register, an
undefined value is read if an attempt is made to read the FLPMC register.