Download Print this page

Renesas M16C/50 Series User Manual page 711

Advertisement

M16C/5L Group, M16C/56 Group
26.8.2.1
Suspend Function (EW1 Mode)
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 26.11 to
Figure 26.13 show a flowchart in EW1 mode when the suspend function is enabled, and Figure 26.14
shows Suspend Operation Example in EW1 Mode.
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 26.11 Program Flowchart in EW1 Mode (Suspend Function Enabled)
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
Start
I flag ← 0
Write 0 and then 1
to the FMR30 bit
Write command code xx41h
to WA address
Write WD0 to WA address
Write WD1 to WA address
I flag ← 1
NOP instruction × 6
FMR31 ← 0
FMR31 = 0 ?
Yes
Full status check
Program completed
Maskable interrupt
Interrupt
Access flash memory
disabled
Suspend
enabled
Interrupt
enabled
Command
restart
No
26. Flash Memory
(1)
REIT
Page 674 of 803

Advertisement

loading