CHAPTER 16 FLASH MEMORY
User’s Manual U18172EJ2V0UD
226
This register is set with an 8-bit memory manipulation instruction.
Reset signal generation makes the contents of this register undefined.
Figure 16-10. Format of Flash Programming Mode Control Register (FLPMC)
Address: FFA2H After reset: Undefined
Note 1
R/W
Note 2
Symbol
7 6 5 4 3 2 1 0
FLPMC 0
PRSELF4
PRSELF3 PRSELF2 PRSELF1 PRSELF0
0 FLSPM
FLSPM
Selection of operation mode during self-programming mode
0
Normal mode
This is the normal operation status. Executing the HALT instruction sets
standby status.
1
Self-programming mode
Self programming commands can be executed by executing the specific
sequence to change modes while in normal mode.
Set a command, an address, and data to be written, then execute the HALT
instruction to execute self programming.
PRSELF4 PRSELF3 PRSELF2 PRSELF1 PRSELF0 The set value of the protect byte
is read to these bits.
Notes 1.
Bit 0 (FLSPM) is cleared to 0 when reset is released. The set value of the protect
byte is read to bits 2 to 6 (PRSELF0 to PRSELF4) after reset is released.
2.
Bits 2 to 6 (PRSELF0 to PRSELF4) are read-only.
Cautions 1. Cautions in the case of setting the self programming mode, refer to 16.8.2
Cautions on self programming function.
2. Set the CPU clock so that it is 1 MHz or more during self programming.
3. Execute the NOP and HALT instructions immediately after executing a
specific sequence to set self-programming mode, then execute self
programming. At this time, the HALT instruction is automatically released
after 10
µ
s (MAX.) + 2 CPU clocks (f
CPU
).
4. If the clock of the oscillator or an external clock is selected as the system
clock, execute the NOP and HALT instructions immediately after executing a
specific sequence to set self-programming mode, wait for 8 µs after
releasing the HALT status, and then execute self programming.
5. Clear the value of the FLCMD register to 00H immediately before setting self-
programming mode and normal operation mode.