RL78/G13
5.8.13
Switching from X1 Oscillation Clock to XT1 Oscillation Clock
Figure 5.14 shows the flowchart for switching from X1 oscillation clock to XT1 oscillation clock.
Figure 5.14
R01AN2831EJ0100 Rev. 1.00
May 28, 2015
R_CGC_X1ToXT1
Set up HOCO
Select HOCO as main system clock
(f
)
MAIN
Stop X1 oscillator
Select subsystem clock (f
CPU/peripheral hardware clock (f
return
Switching from X1 Oscillation Clock to XT1 Oscillation Clock
Clock Generator (Clock Switching) CC-RL
CKC register
MCM0 0
MSTOP 1
CKC register
) as
SUB
CSS 1
)
CLK
Page 37 of 51