359
16-bit Timer/Event Counter P (TMP)
Chapter 11
Preliminary User’s Manual U17566EE1V2UM00
Figure 11-3
Basic timing of operation in interval timer mode
When the TPnCE bit is set to 1, the value of the 16-bit counter is cleared from
FFFFH to 0000H in synchronization with the count clock, and the counter
starts counting. At this time, the output of the TOPn0 pin is inverted.
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, the output of the TOPn0
pin is inverted, and a compare match interrupt request signal (INTTPnCC0) is
generated.
The interval can be calculated by the following expression.
Interval = (Set value of TPnCCR0 re 1)
×
Count clock cycle
(1)
Register setting for interval timer mode operation
(a) TMPn control register 0 (TPnCTL0)
FFFFH
16-
b
it co
u
nter
0000H
TPnCE
b
it
TPnCCR0 regi
s
ter
TOPn0 pin o
u
tp
u
t
INTTPnCC0
s
ign
a
l
D
0
D
0
D
0
D
0
D
0
Interv
a
l (D
0
+ 1)
Interv
a
l (D
0
+ 1)
Interv
a
l (D
0
+ 1)
Interv
a
l (D
0
+ 1)
0/1
0
0
0
0
TPnCTL0
S
elect co
u
nt clock
0:
S
top co
u
nting
1: En
ab
le co
u
nting
0/1
0/1
0/1
TPnCK
S
2 TPnCK
S
1 TPnCK
S
0
TPnCE
electronic components distributor