368
Chapter 11
16-bit Timer/Event Counter P (TMP)
Preliminary User’s Manual U17566EE1V2UM00
When the TPnCE bit is set to 1, the value of the 16-bit counter is cleared from
FFFFH to 0000H. The counter counts each time the valid edge of external
event count input is detected. Additionally, the set value of the TPnCCR0
register is transferred to the CCR0 buffer register.
When the count value of the 16-bit counter matches the value of the CCR0
buffer register, the 16-bit counter is cleared to 0000H, and a compare match
interrupt request signal (INTTPnCC0) is generated.
The INTTPnCC0 signal is generated each time the valid edge of the external
event count input has been detected (set value of TPnCCR0 re 1)
times.
(1)
Register setting for operation in external event count mode
(a) TMPn control register 0 (TPnCTL0)
(b) TMPn control register 1 (TPnCTL1)
0/1
0
0
0
0
TPnCTL0
0:
S
top co
u
nting
1: En
ab
le co
u
nting
0
0
0
TPnCK
S
2 TPnCK
S
1 TPnCK
S
0
TPnCE
0
0
1
0
0
TPnCTL1
0, 0, 1:
Extern
a
l event co
u
nt mode
0
0
1
TPnMD2 TPnMD1 TPnMD0
TPnEEE
TPnE
S
T
1: Co
u
nt with extern
a
l
event
inp
u
t
s
ign
a
l
electronic components distributor