RL78/G13
Clock Generator (Clock Switching) CC-RL
R01AN2831EJ0100 Rev. 1.00
Page 42 of 51
May 28, 2015
5.8.18
Getting HOCO Clock Status
Figure 5.19 shows the flowchart for getting HOCO clock status.
Figure 5.19 Getting HOCO Clock Status
R_CGC_Get_HOCO_Status
YES
NO
Status
Not oscillating
f
CLK
= CPU/peripheral hardware clock
f
MAIN
= Main system clock
Conditions for establishing the HOCO clock
status:
CLK.CLS=0: f
CLK
status is f
MAIN
.
and
CLK.MCS=0: f
MAIN
status is HOCO clock.
Status
Oscillating
f
CLK
status = HOCO clock?
return status