RL78/G13 Safety Function (Frequency Detection)
5.8.4 CPU Clock Setup
Figure 5.5 shows the flowchart for setting up the CPU clock.
R01AN0956EJ0100 Rev. 1.00 Page 28 of 70
Feb. 27, 2012
R_CGC_Create()
return
CMC register
00H: Does not use high-speed system
clock and subsystem clock.
MSTOP bit 1
XTSTOP bit 1
Set up high-speed system
clock/subsystem clock
MCM0 bit
0: Select high-speed OCO clock (f
IH
) as system
clock (f
MAIN
).
CSS bit 0: Select main system clock (f
MAIN
) as
CPU/peripheral hardware clock (f
CLK
).
Select CPU/peripheral hardware
clock (f
CLK
)
Figure 5.5 CPU Clock Setup
Caution: For details on the procedure for setting up the CPU clock (R_CGC_Create ()), refer to the section entitled
"Flowcharts" in RL78/G13 Initialization Application Note (R01AN0451E).