388
Chapter 11
16-bit Timer/Event Counter P (TMP)
Preliminary User’s Manual U17566EE1V2UM00
Figure 11-19
Basic timing in one-shot pulse output mode
When the TPnCE bit is set to 1, 16-bit timer/event counter P waits for a trigger.
When the trigger is generated, the 16-bit counter is cleared from FFFFH to
0000H, starts counting, and outputs a one-shot pulse from the TOPn1 pin.
After the one-shot pulse is output, the 16-bit counter is set to FFFFH, stops
counting, and waits for a trigger. If a trigger is generated again while the one-
shot pulse is being output, it is ignored.
The output delay period and active level width of the one-shot pulse can be
calculated as follows.
Output delay period = (Set value of TPnCCR1 register)
×
Count clock cycle
Active level width =
(Set value of TPnCCR0 register
–
Set value of TPnCCR1 re 1)
×
Count clock cycle
The compare match interrupt request signal INTTPnCC0 is generated when
the 16-bit counter counts after its count value matches the value of the CCR0
buffer register. The compare match interrupt request signal INTTPnCC1 is
generated when the count value of the 16-bit counter matches the value of the
CCR1 buffer register.
The valid edge of an external trigger input or setting the software trigger
(TPnCTL1.TPnEST bit) to 1 is used as the trigger.
FFFFH
16-
b
it co
u
nter
0000H
TPnCE
b
it
TPnCCR0 regi
s
ter
INTTPnCC0
s
ign
a
l
TOPn0 pin o
u
tp
u
t
TPnCCR1 regi
s
ter
INTTPnCC1
s
ign
a
l
TOPn1 pin o
u
tp
u
t
Extern
a
l trigger inp
u
t
(TIPn0 pin inp
u
t)
D
1
D
0
D
0
D
1
D
1
D
1
D
0
D
0
Del
a
y
(D
1
)
Active
level width
(D
0
−
D
1
+ 1)
Del
a
y
(D
0
)
Active
level width
(D
0
−
D
1
+ 1)
Del
a
y
(D
1
)
Active
level width
(D
0
−
D
1
+ 1)
electronic components distributor