391
16-bit Timer/Event Counter P (TMP)
Chapter 11
Preliminary User’s Manual U17566EE1V2UM00
(2)
Operation flow in one-shot pulse output mode
Figure 11-20
Software processing flow in one-shot pulse output mode
<1>
<2>
TPnCE
b
it = 1
TPnCE
b
it = 0
Regi
s
ter initi
a
l
s
etting
TPnCTL0
(TPnCK
S
0 to TPnCK
S
2
b
it
s
)
TPnCTL1,
TPnIOC0,
TPnIOC2,
TPnCCR0,
TPnCCR1
Initi
a
l
s
etting of the
s
e regi
s
ter
s
i
s
performed
b
efore
s
etting the TPnCE
b
it to 1.
The TPnCK
S
0 to TPnCK
S
2
b
it
s
c
a
n
b
e
s
et
a
t the
sa
me time when
co
u
nting h
as
b
een
s
t
a
rted (TPnCE
b
it = 1).
Trigger w
a
it
s
t
a
t
us
Co
u
nt oper
a
tion i
s
s
topped
S
TART
S
TOP
<1> Co
u
nt oper
a
tion
s
t
a
rt flow
<2> Co
u
nt oper
a
tion
s
top flow
FFFFH
16-
b
it co
u
nter
0000H
TPnCE
b
it
TPnCCR0 regi
s
ter
INTTPnCC0
s
ign
a
l
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
0
electronic components distributor