RL78/G13 Clock Generator (Clock Switching) CC-RL
R01AN2831EJ0100 Rev. 1.00 Page 35 of 51
May 28, 2015
5.8.11 Switching Clock
Figure 5.12 shows the flowchart for switching clocks.
Figure 5.12 Switching Clocks
R_CGC_ChangeClock
return
R_CGC_HOCOToX1()
Default
R_CGC_X1ToXT1()
R_CGC_XT1ToHOCO()
[Argument]
Clock status
Clock status?
Operating on X1 and next clock is XT1
Operating on XT1 and next clock is HOCO
Operating on HOCO and next clock is X1
Change clock from HOCO to X1
Change clock from X1 to XT1
Change clock from XT1 to HOCO