Renesas RL78/I1D Application Note page 32

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

Advertisement

RL78/I1D
4.7.16.
Flash operation mode switching (HS) processing
Figure 4.18, Figure 4.19 shows the flowchart of the flash operation mode switching (HS) processing.
switch_flashmode_to_HS
Set the regulator mode to
Set the high-speed on-chip oscillator
clock frequency to 8MHz
No
High-speed on-chip oscillator
Set the high-speed on-chip
the main on-chip oscillator clock
Set the middle-speed on-chip
Set A/D conversion completion flag
A/D converter initialization
A/D conversion operation start
Maskable interrupt enable
A/D conversion operation
Set A/D conversion completion flag
Figure 4.18
R01AN3597EJ0100 Rev.1.00
Jan. 31, 2017
the normal setting
MCS1 = 1?
Yes
operating
oscillator clock to
No
MCS1 = 0?
Yes
oscillator to stop
to [busy]
R_ADC_Create()
R_ADC_Start()
No(branch in g_ad_busy = 1)
is completed?
Yes
to [busy]
B
Flash operation mode switching (HS) processing(1/2)
PMMC register
MCSEL bit
0
HOCODIV register
02H
Main on-chip oscillator clock status in the case of
middle-speed on-chip oscillator clock, switch to the
high-speed on-chip oscillator clock.
HIOSTOP bit
0 : High-speed on-chip oscillator operating
MCM1 bit
0 : Select high-speed on-chip oscillator clock
Wait until the status of the main on-chip oscillator clock is
switched to the high-speed on-chip oscillator clock
MIOEN bit
0 : Middle-speed on-chip oscillator stop
g_ad_busy
1
IE
1
g_ad_busy
1
Operation state switching IAR
Page 32 of 42

Advertisement

Table of Contents
loading

Table of Contents