CHAPTER 9 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)
401
User’s Manual U14492EJ3V0UD
Figure 9-95. Cycle Measurement Operation Timing Example
t
0001H
0000H
0001H
0000H
FFFFH
D0
D1
D2
D3
D3
D2
D1
D0
(D1 – D0)
×
t
(D3 – D2)
×
t
{(10000H – D1) + D2}
×
t
Note
Count
clock
TM3
register
INTP30
(input)
CC30
register
INTCC30
interrupt
INTTM3
interrupt
No overflow
Overflow occurs
No overflow
Clear
Count start
Note
When an overflow occurs once
Remarks 1.
D0 to D3: TM3 register count values
t: Count clock cycle
2.
In this example, the valid edge of INTP30 input has been set to both edges (rising and falling).