R8C/20 Group, R8C/21 Group 14. Timers
Rev.2.00 Aug 27, 2008 Page 132 of 458
REJ09B0250-0200
Figure 14.10 Operating Example of Pulse Width Measurement Mode
FFFFh
n
0000h
Content of counter (hex)
n = high-level: the contents of TRA register, low-level: the contents of TRAPRE register
Count start
Count stop
Underflow
Period
TSTART bit in
TRACR register
1
0
Measurement pulse
(TRAIO pin input)
1
0
TEDGF bit in
TRACR register
1
0
TUNDF bit in
TRACR register
1
0
The above applies under the following conditions.
• “H” level width of measured pulse is measured. (TEDGSEL = 1)
• TRAPRE = FFh
Set to 1 by program
IR bit in TRAIC
register
1
0
Set to 0 by program
Count stop
Count start
Set to 0 when interrupt request is acknowledged, or set by program
Count start
Set to 0 by program