Datasheet
V850ES/JG3-H, V850ES/JH3-H CHAPTER 7 16-BIT TIMER/EVENT COUNTER AA (TAA)
R01UH0042EJ0500 Rev.5.00 Page 296 of 1513
Aug 12, 2011
(b) Pulse width measurement with TAAnCCRm used as capture register
When pulse width measurement is performed with the TAAnCCRm register used as a capture register,
software processing is necessary for reading the capture register each time the INTTAAnCCm signal has been
detected and for calculating the interval.
FFFFH
16-bit counter
0000H
TAAnCE bit
TIAAn0 pin input
TAAnCCR0 register
INTTAAnCC0 signal
TIAAn1 pin input
TAAnCCR1 register
INTTAAnCC1 signal
INTTAAnOV signal
TAAnOVF bit
0000H D
00
D
01
D
02
D
03
D
04
D
10
D
00
D
11
D
01
D
12
D
04
D
13
D
02
D
03
D
10
0000H D
11
D
12
D
13
Pulse interval
(D
00
)
Pulse interval
(10000H +
D
01
− D
00
)
Pulse interval
(D
02
− D
01
)
Pulse interval
(10000H +
D
03
− D
02
)
Pulse interval
(10000H +
D
04
− D
03
)
Pulse interval
(D
10
)
Pulse interval
(10000H +
D
11
− D
10
)
Pulse interval
(10000H +
D
12
− D
11
)
Pulse interval
(10000H +
D
13
− D
12
)
Cleared to 0 by
CLR instruction
Cleared to 0 by
CLR instruction
Cleared to 0 by
CLR instruction
When executing pulse width measurement in the free-running timer mode, two pulse widths can be measured
with one channel.
To measure a pulse width, the pulse width can be calculated by reading the value of the TAAnCCRm register in
synchronization with the INTTAAnCCm signal, and calculating the difference between the read value and the
previously read value.
Remark m = 0, 1
n = 0 to 3, 5