376
Chapter 11
16-bit Timer/Event Counter P (TMP)
Preliminary User’s Manual U17566EE1V2UM00
11.5.3
External trigger pulse output mode
(TPnMD2 to TPnMD0 = 010)
In the external trigger pulse output mode, 16-bit timer/event counter P waits for
a trigger when the TPnCTL0.TPnCE bit is set to 1. When the valid edge of an
external trigger input signal is detected, 16-bit timer/event counter P starts
counting, and outputs a PWM waveform from the TOPn1 pin.
Pulses can also be output by generating a software trigger instead of using the
external trigger. When using a software trigger, a square wave that has one
cycle of the PWM waveform as half its cycle can also be output from the
TOPn0 pin.
Figure 11-14
Configuration in external trigger pulse output mode
CCR0
bu
ffer regi
s
ter
TPnCE
b
it
TPnCCR0 regi
s
ter
16-
b
it co
u
nter
TPnCCR1 regi
s
ter
CCR1
bu
ffer regi
s
ter
Cle
a
r
M
a
tch
s
ign
a
l
M
a
tch
s
ign
a
l
INTTPnCC0
s
ign
a
l
O
u
tp
u
t
controller
(R
S
-FF)
O
u
tp
u
t
controller
TOPn1 pin
INTTPnCC1
s
ign
a
l
TOPn0 pin
Co
u
nt
clock
s
election
Co
u
nt
s
t
a
rt
control
Edge
detector
S
oftw
a
re trigger
gener
a
tion
TIPn0 pin
Tr
a
n
s
fer
Tr
a
n
s
fer
S
R
electronic components distributor