R01UH0092EJ0110 Rev.1.10
Page 708 of 807
Jul 31, 2012
M16C/64C Group
30. Flash Memory
30.11.3.10 Software Command
Observe the notes below when using the following commands.
• Program
• Block erase
• Lock bit program
• Read lock bit status
• Block blank check
(a) The FMR00 bit in the FMR0 register indicates the status while executing these commands. Do not
execute other commands while the FMR00 bit is 0 (busy).
(b) Use these commands in high-speed mode, medium-speed mode, and PLL operating mode. Do not
change clock modes while the FMR00 bit in the FMR0 register is 0 (busy).
(c) After executing the program, block erase, or lock bit program command, perform a full status check
per command (Do not execute multiple commands or same command more than once before
performing a full status check).
(d) Do not execute the program, block erase, lock bit program, or block blank check command when
either or both bits FMR06 and FMR07 in the FMR0 register are 1 (error).
(e) Do not use these commands in slow read mode (when the FMR22 bit is 1) or low current
consumption read mode (when both bits FMR22 and FMR23 are 1).
30.11.3.11 PM13 Bit
The PM13 bit in the PM1 register becomes 1 while the FMR01 bit in the FMR0 register is 1 (CPU
rewrite mode enabled). The PM13 bit returns to the former value by setting the FMR01 bit to 0 (CPU
rewrite mode disabled). When the PM13 bit is changed during CPU rewrite mode, the value of the
PM13 bit after being changed is not reflected until the FMR01 bit is set to 0.
30.11.3.12 Area Where the Rewrite Control Program is Executed
Bits PM10 and PM13 in the PM1 register become 1 in CPU rewrite mode. Execute the rewrite
program in internal RAM or an external area which can be used when both bits PM10 and PM13 are
1. Do not use the area (40000h to BFFFFh) where accessible space is expanded when the PM13 bit
is 0 and 4-MB mode is set.
30.11.3.13 Program and Erase Cycles and Execution Time
Execution time of the program, block erase, and lock bit program commands becomes longer as the
number of programming and erasing increases.
30.11.3.14 Suspending the Auto-Erase and Auto-Program Operations
When the program, block erase, and lock bit program commands are suspended, the blocks for
those commands must be erased. Execute the program and lock bit program commands again after
erasing.
Those commands are suspended by the following reset or interrupts:
• Hardware, power-on, voltage monitor 0, voltage monitor 1, voltage monitor 2, oscillator stop detect,
watchdog timer, software resets.
•
NMI
, watchdog timer, oscillator stop/restart detect, voltage monitor 1, and voltage monitor 2
interrupts.
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...