367
16-bit Timer/Event Counter P (TMP)
Chapter 11
Preliminary User’s Manual U17566EE1V2UM00
11.5.2
External event count mode (TPnMD2 to TPnMD0 = 001)
In the external event count mode, the valid edge of the external event count
input is counted when the TPnCTL0.TPnCE bit is set to 1, and an interrupt
request signal (INTTPnCC0) is generated each time the specified number of
edges have been counted. The TOPn0 pin cannot be used.
Usually, the TPnCCR1 register is not used in the external event count mode.
Figure 11-8
Configuration in external event count mode
Figure 11-9
Basic timing in external event count mode
Caution
This figure shows the basic timing when the rising edge is specified as the
valid edge of the external event count input.
16-
b
it co
u
nter
CCR0
bu
ffer regi
s
ter
TPnCE
b
it
TPnCCR0 regi
s
ter
Edge
detector
Cle
a
r
M
a
tch
s
ign
a
l
INTTPnCC0
s
ign
a
l
TIPn0 pin
(extern
a
l event
co
u
nt inp
u
t)
FFFFH
16-bit counter
0000H
TPnCE bit
TPnCCR0 register
INTTPnCC0 signal
D
0
D
0
D
0
D
0
16-bit counter
TPnCCR0 register
INTTPnCC0 signal
External event
count input
(TIPn0 pin input)
D
0
External
event
count
interval
(D0)
D
0
−
1
D
0
0000
0001
External
event
count
interval
(D0 + 1)
External
event
count
interval
(D0 + 1)
electronic components distributor