RL78/G13
Clock Generator (Clock Switching) CC-RL
R01AN2831EJ0100 Rev. 1.00
Page 36 of 51
May 28, 2015
5.8.12
Switching from HOCO Clock to X1 Oscillation Clock.
Figure 5.13 shows the flowchart for switching from HOCO clock to X1 oscillation clock.
Figure 5.13 Switching from HOCO Clock to X1 Oscillation Clock
return
R_CGC_HOCOToX1
MSTOP
0
Set up X1 oscillator
Wait for X1 clock oscillation stabilization
time while referring to OSTC register
Select high-speed clock (f
MX
) as
main system clock (f
MAIN
)
CKC register
MCM0
1