English
Language : 

M16C65 Datasheet, PDF (735/829 Pages) Renesas Technology Corp – RENESAS MCU M16C FAMILY / M16C/60
Under development
M16C/65 Group
Preliminary Specification
This is a preliminary specification and is subject to change.
30. Flash Memory
FMSTP (Flash Memory Stop Bit) (b3)
The FMSTP bit resets flash memory control circuits and minimizes current consumption in the flash
memory. Access to the internal flash memory is disabled when the FMSTP bit is set to 1 (flash memory
operation stopped). Set the FMSTP bit by a program located in an area other than the flash memory.
Set the FMSTP bit to 1 under the following condition.
• A flash memory access error occurs while erasing or programming in EW0 mode (the FMR00 bit
does not switch back to 1 (ready)).
Use the following steps to rewrite the FMSTP bit.
To stop the flash memory:
(1)Set the FMSTP bit to 1.
(2)Wait the wait time to stabilize flash memory circuit (tps).
To restart the flash memory:
(1)Set the FMSTP bit to 0.
(2)Wait the wait time to stabilize flash memory circuit (tps).
The FMSTP bit is valid when the FMR01 bit is 1 (CPU rewrite mode). If the FMR01 bit is 0, although the
FMSTP bit can be set to 1 by writing 1, the flash memory is neither placed in low-power mode nor
initialized.
When the FMR23 bit is set to 1 (low-current consumption read mode enabled), do not set the FMSTP
bit in the FMR0 register to 1 (flash memory operation stopped). Also, when the FMSTP bit is set to 1, do
not set the FMR23 bit to 1.
FMR06 (Program Status Flag) (b6)
This bit indicates the auto-program operation state.
Condition to become 0:
• Execute the clear status command.
Condition to become 1:
• Refer to 30.8.5.4 “Full Status Check”.
The following commands cannot be accepted when the FMR06 bit is 1:
Program, block erase, lock bit program, read lock bit status, and block blank check.
FMR07 (Erase Status Flag) (b7)
This bit indicates the auto-erase operation state.
Condition to become 0:
• Execute the clear status command
Condition to become 1:
• Refer to 30.8.5.4 “Full Status Check”.
The following commands cannot be accepted when the FMR07 bit is 1:
Program, block erase, lock bit program, read lock bit status, and block blank check.
REJ09B0484-0030 Rev.0.30 Sep 09, 2008
Page 700 of 791