RL78/G13 Safety Function (Frequency Detection)
5.8.29 Capture End Interrupt for Channel 5 of TAU0
Figure 5.32 shows the flowchart for a capture end interrupt for channel 5 of TAU0.
r_tau0_channel5_interrupt()
Obtain pulse interval measurement
value which was determined when
overflow occurred
Ye s
No
Overflow occurs ?
Obtain pulse interval measurement
value
Set pulse interval measurement end
flag
g_MeasureEndFlag
1
When overflow occurs:
g_Tau0Ch5Width
TDR00 + 0x10000
When no overflow occurs:
g_Tau0Ch5Width TDR00
TDR00: Stores timer data register
pulse interval measurement
results.
return
Figure 5.32 Capture End Interrupt for Channel 5 of TAU0
R01AN0956EJ0100 Rev. 1.00 Page 60 of 70
Feb. 27, 2012