405
16-bit Timer/Event Counter P (TMP)
Chapter 11
Preliminary User’s Manual U17566EE1V2UM00
When the TPnCE bit is set to 1, the 16-bit counter starts counting. When the
valid edge input to the TIPnm pin is detected, the count value of the 16-bit
counter is stored in the TPnCCRm register, and a capture interrupt request
signal (INTTPnCCm) is generated.
The 16-bit counter continues counting in synchronization with the count clock.
When it counts up to FFFFH, it generates an overflow interrupt request signal
(INTTPnOV) at the next clock, is cleared to 0000H, and continues counting. At
this time, the overflow flag (TPnOPT0.TPnOVF bit) is also set to 1. Clear the
overflow flag to 0 by executing the CLR instruction by software.
Figure 11-27
Basic timing in free-running timer mode (capture function)
FFFFH
16-
b
it co
u
nter
0000H
TPnCE
b
it
TIPn0 pin inp
u
t
TPnCCR0 regi
s
ter
INTTPnCC0
s
ign
a
l
TIPn1 pin inp
u
t
TPnCCR1 regi
s
ter
INTTPnCC1
s
ign
a
l
INTTPnOV
s
ign
a
l
TPnOVF
b
it
D
00
D
01
D
02
D
0
3
D
10
D
00
D
01
D
02
D
0
3
D
11
D
12
D
1
3
D
10
D
11
D
12
D
1
3
Cle
a
red to 0
b
y
CLR in
s
tr
u
ction
Cle
a
red to 0
b
y
CLR in
s
tr
u
ction
Cle
a
red to 0
b
y
CLR in
s
tr
u
ction
electronic components distributor