RL78/G13 Safety Function (Frequency Detection)
5.8.20 Changing HOCO Clock
Figure 5.23 shows the flowchart for changing the HOCO clock.
R_Main_HOCO_Change()
Set HOCO clock
Execute NOP instruction
Execute NOP instruction
Execute NOP instruction
*Device operates at new
frequency after elapse of three
clock periods.
HOCODIV
clock
[Argument]
uint8_t clock: HOCODIV register settings
return
Figure 5.23 Changing HOCO Clock
R01AN0956EJ0100 Rev. 1.00 Page 51 of 70
Feb. 27, 2012