RL78/G13
Clock Generator (Clock Switching) CC-RL
R01AN2831EJ0100 Rev. 1.00
Page 30 of 51
May 28, 2015
5.8.6
Setting up 12-bit Interval Timer
Figure 5.7 shows the flowchart for setting up the 12-bit interval timer.
Figure 5.7 12-bit Interval Timer Setup
R_IT_Create
return
Supply clock to interval timer
Stop interval timer
Disable interval timer interrupts
Set interval timer comparison
value (1 ms)
Clear interval timer interrupt request flag
RTCEN bit
1
ITMC register
0020H
ITMC register
0000H
ITMK bit
1
ITIF bit
0