English
Language : 

M16C65 Datasheet, PDF (763/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
30.8.7.1 Suspend Function (EW1 Mode) (under review)
When using suspend function in EW1 mode, an interrupt request is not accepted until td(SR-SUS)
elapses after the interrupt request is generated. When the interrupt request is accepted, the flash
memory enters erase suspend or program suspend. Set the FMR31 bit to 0 (command restart) to
restart automatic program and erase operations at the completion of the interrupt. Figure 30.15 to
Figure 30.17 show a flowchart in EW1 mode when the suspend function is enabled, and Figure 30.18
shows Suspend Operation Example in EW1 Mode.
Start
Write 0 and then 1
to the FMR30 bit
Suspend
enabled
Write the command code
XX41h to the write address
I flag ← 1
Interrupt
enabled
Write data
to the write address
NOP instruction × 6
Maskable interrupt (1)
Access flash memory
REIT
FMR31 ← 0
FMR00 = 1 ?
Yes
Full status check
Command
restart
No
Program completed
Note :
1. An interrupt request is not accepted until td(SR-SUS) elapses after the interrupt request is generated.
Enable interrupts used to enter suspend mode beforehand.
Figure 30.15 Program Flowchart in EW1 Mode (Suspend Function Enabled)
REJ09B0484-0030 Rev.0.30 Sep 09, 2008
Page 728 of 791