RL78/G13
Clock Generator (Clock Switching) CC-RL
R01AN2831EJ0100 Rev. 1.00
Page 19 of 51
May 28, 2015
[Function Name] R_TAU0_Channel0_Restart
Synopsis
Restarts channel 0 of TAU0.
Header
#include "r_cg_macrodriver.h"
#include "r_cg_timer.h"
#include "r_cg_userdefine.h"
Declaration
void R_TAU0_Channel0_Restart(uint8_t clkdiv, uint16_t count)
Explanation
Stops the interval timer for channel 0 of TAU0 temporarily.
Call R_TAU0_Channel0_ChangeInterval specified in the argument to change the interval of
channel 0 of TAU0.
Restarts the interval timer for channel 0 of TAU0.
Arguments
First argument: clkdiv
: Frequency division ratio of the operation clock
for channel 0 of TAU0
Return value
Second argument: count
: Count value of channel 0 of TAU0
Remarks
None
Synopsis
None
[Function Name] R_TAU0_Channel0_ChangeInterval
Synopsis
Changes interval of channel 0 of TAU0.
Header
#include "r_cg_macrodriver.h"
#include "r_cg_timer.h"
#include "r_cg_userdefine.h"
Declaration
void R_TAU0_Channel0_ChangeInterval(uint8_t clkdiv, uint16_t count)
Explanation
Changes the frequency division ratio of the operation clock for channel 0 of TAU0 to clkdiv.
Changes the count value of channel 0 of TAU0 to count.
Arguments
First argument: clkdiv
: Frequency division ratio of operation clock (0 to
15)
0: f
CLK
/ 2
0
15: f
CLK
/ 2
15
f
CLK
:
Frequency of CPU/peripheral hardware clock
Return value
Second argument: count
: Count value (0 to 65535)
Remarks
None
Synopsis
15 is assumed if clkdiv in the first argument is greater than 15.
[Function Name] R_TAU0_Channel0_Stop
Synopsis
Sets stop of channel 0 of TAU0.
Header
#include "r_cg_macrodriver.h"
#include "r_cg_timer.h"
#include "r_cg_userdefine.h"
Declaration
void R_TAU0_Channel0_Stop(void)
Explanation
Masks the interrupts of channel 0 of TAU0 to stop counting.
Arguments
None
Return value
None
Remarks
None