Renesas RL78/I1D Application Note page 31

Hide thumbs Also See for RL78/I1D:
Table of Contents

Advertisement

RL78/I1D
4.7.15.
Flash operation mode switching (LS low consumption) processing
Figure 4.17 shows the flowchart of the flash operation mode switching (LS low consumption) processing.
switch_flashmode_to_LS_1
No
FLMODE = 40H?
Set the middle-speed on-chip
oscillator clock frequency to 1MHz
Middle-speed on-chip oscillator
Set the middle-speed on-chip
oscillator clock to
the main on-chip oscillator clock
Set the high-speed on-chip oscillator
Set the regulator mode to
the normal setting
Set flash operation mode to
LS (low-speed main) mode
Set the middle-speed on-chip
oscillator clock frequency to 4MHz
Set the regulator mode to
the low-power consumption setting
Updated status flag variable of
flash operation mode
Figure 4.17
R01AN3597EJ0100 Rev.1.00
Jan. 31, 2017
MCS1 = 0?
Yes
No
Yes
operating
No
MCS1 = 1?
Yes
to stop
return
Flash operation mode switching (LS low consumption) processing
Main on-chip oscillator clock status in the case of
high-speed on-chip oscillator clock, switch to
the middle-speed on-chip oscillator clock.
MOCODIV register
MIOEN bit
0 : Middle-speed on-chip oscillator operating
MCM1 bit
1 : Select middle-speed on-chip oscillator clock
Wait until the status of the main on-chip oscillator clock is
switched to the middle-speed on-chip oscillator clock
HIOSTOP bit
1 : High-speed on-chip oscillator stop
PMMC register
MCSEL bit
0
FLMWEN bit
1 :Rewriting the FLMODE register is enabled
FLMODE register
80H : LS (low-speed main) mode
FLMWEN bit
0 : Rewriting the FLMODE register is disabled
MOCODIV register
00H
PMMC register
MCSEL bit
1
g_flash_mode
_02_FLAHMODE_LS_1
Operation state switching IAR
02H
Page 31 of 42

Advertisement

Table of Contents
loading

Table of Contents