RL78/G13
Clock Generator (Clock Switching) CC-RL
R01AN2831EJ0100 Rev. 1.00
Page 40 of 51
May 28, 2015
5.8.16
Getting X1 Oscillation Clock Status
Figure 5.17 shows the flowchart for getting X1 oscillation clock status.
Figure 5.17 Getting X1 Oscillation Clock Status
R_CGC_Get_X1_Status
NO
YES
Status
Not oscillating
f
CLK
= CPU/peripheral hardware clock
f
MAIN
= Main system clock
f
CLK
status = X1
oscillation clock?
Status
Oscillating
return status
Conditions for the X1 oscillation clock status:
CLK.CLS=0: f
CLK
status is f
MAIN
.
and
CLK.MCS=1: f
MAIN
status is f
MX
.