RL78/G13
Clock Generator (Clock Switching) CC-RL
R01AN2831EJ0100 Rev. 1.00
Page 50 of 51
May 28, 2015
5.8.26
Waiting in Units of 1 ms
Figure 5.27 shows the flowchart for waiting in units of 1 ms.
Figure 5.27 Waiting in Units of 1 ms
NO
YES
YES
NO
return
R_IT_Wait_ms
Start interval timer
[Argument]
Wait count
Clear interval timer interrupt
request flag
Wait count > 0?
Decrement wait count
Interval timer interrupt
request present?
Clear interval timer interrupt
request flag
Stop interval timer
ITMC register
RINTE = 1
ITIF bit
0: Clear interrupt request flag
ITMC register
RINTE = 0