RL78/G13
Clock Generator (Clock Switching) CC-RL
R01AN2831EJ0100 Rev. 1.00
Page 46 of 51
May 28, 2015
5.8.22
Changing Interval of Channel 0 of TAU0
Figure 5.23 shows the flowchart for changing the interval of channel 0 of TAU0.
Figure 5.23 Changing Interval of Channel 0 of TAU0
R_TAU0_Channel0_
ChangeInterval
return
NO
YES
Division ratio of
operation clock < 15?
Division ratio of operation clock = 15
Set up operation clock of channel 0
of TAU0
Set count value of channel 0 of TAU0
PS0 register
PRS003 to PRS000 = Division ratio of operation clock
TDR00 register
Count value
[Arguments]
: Frequency division ratio of operation clock (0 to 15)
: Count value (0 to 65535)