Download Print this page

Renesas M16C/50 Series User Manual page 707

Advertisement

M16C/5L Group, M16C/56 Group
Start
I flag ← 0
Write 0 and then 1
to the FMR30 bit
Write command code xx77h
to BA address
Write xxD0h to BA address
I flag ← 1
FMR00 = 1 ?
Full status check
Program completed
Notes:
1. In EW0 mode, set the interrupt vector table for interrupts to be used and the interrupt routine in RAM.
2. When interrupts are not used, an instruction to enable interrupts is not necessary.
3. Program is not suspended until td(SR-SUS) elapses after the FMR31 bit is set to 1.
Figure 26.8
Lock Bit Program Flowchart in EW0 Mode (Suspend Function Enabled)
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
Interrupt
disabled
Suspend
request
Interrupt
(2)
enabled
No
Yes
(1)
Maskable interrupt
No
FMR00 = 0 ?
Yes
Suspend
FMR31 ← 1
(3)
request
No
FMR00 = 1 ?
Yes
Program suspend accepted
Access flash memory
Command
FMR31 ← 0
restart
REIT
26. Flash Memory
Access flash memory
Page 670 of 803

Advertisement

loading