Use timer as One-shot timer.
[GUI setting example]
12 bit interval timer |
Used | |||
IT |
Used | |||
Interval timer operation setting |
Used | |||
Interval value |
100ms (Actual value:100) | |||
Detection of interval signal (INTIT) |
Used | |||
Priority |
Low |
[API setting example]
r_cg_main.c
void main(void)
{
R_MAIN_UserInit();
/* Start user code. Do not edit comment generated here */
/* Start IT module operation */
R_IT_Start();
while (1U)
{
;
}
/* End user code. Do not edit comment generated here */
}
r_cg_it_user.c
static void __near r_it_interrupt(void)
{
/* Start user code. Do not edit comment generated here */
/* Stop IT module operation */
R_IT_Stop();
/* End user code. Do not edit comment generated here */
}