RL78/I1D
Operation state switching IAR
R01AN3597EJ0100 Rev.1.00
Page 33 of 42
Jan. 31, 2017
return
B
A/D conversion operation
is completed?
Yes
No(branch in g_ad_busy = 1)
Second A/D conversion
operation start
IE
1
Maskable interrupt disable
IE
1
A/D converter stop processing
R_ADC_Stop()
VDD voltage is less
than 2.4V ?
Yes
No
g_flash_mode
_10_FLAHMODE_HS_ERROR
Updated status flag variable of
flash operation mode
g_flash_mode
_04_FLAHMODE_HS
Set flash operation mode to
HS (high-speed main) mode
FLMWEN bit
1 :Rewriting the FLMODE register is enabled
FLMODE register
C0H :HS (high-speed main) mode
FLMWEN bit
0 : Rewriting the FLMODE register is disabled
Updated status flag variable of
flash operation mode
Set the high-speed on-chip oscillator
clock frequency to 16MHz
HOCODIV register
01H
Figure 4.19
Flash operation mode switching (HS) processing(2/2)