RL78/G13 Safety Function (Frequency Detection)
5.8.16 Judging Pulse Interval Measurement Value
Figure 5.19 shows the flowchart for judging the pulse interval measurement value.
R_Main_Get_PulseWidth
MeasureResult
return(result)
Set measurement value judged as
normal
Set measurement value
judged as abnormal
Ye s
Value outside
tolerable range?
Obtain pulse interval
measurement value
R_TAU0_Channel5_
Get_PulseWidth()
result
0
result
1
No: Smaller than PULSEWIDTH_RANGE_MIN or larger
than PULSEWIDTH_RANGE_MAX.
Measurement value judgment result: reset
Figure 5.19 Judging Pulse Interval Measurement Value
R01AN0956EJ0100 Rev. 1.00 Page 47 of 70
Feb. 27, 2012