379
16-bit Timer/Event Counter P (TMP)
Chapter 11
Preliminary User’s Manual U17566EE1V2UM00
(c) TMPn I/O control register 0 (TPnIOC0)
(d) TMPn I/O control register 2 (TPnIOC2)
(e) TMPn counter read buffer register (TPnCNT)
The value of the 16-bit counter can be read by reading the TPnCNT
register.
(f) TMPn capture/compare registers 0 and 1 (TPnCCR0 and TPnCCR1)
If D
0
is set to the TPnCCR0 register and D
1
to the TPnCCR1 register, the
cycle and active level of the PWM waveform are as follows.
Cycle = (D
0
+ 1)
×
Count clock cycle
Active level width = D
1
×
Count clock cycle
Note
TMPn I/O control register 1 (TPnIOC1) and TMPn option register 0 (TPnOPT0)
are not used in the external trigger pulse output mode.
0
0
0
0
0/1
TPnIOC0
0: Di
sab
le TOPn0 pin o
u
tp
u
t
1: En
ab
le TOPn0 pin o
u
tp
u
t
S
etting
s
of o
u
tp
u
t level while
oper
a
tion of TOPn0 pin i
s
di
sab
led
0: Low level
1: High level
0: Di
sab
le TOPn1 pin o
u
tp
u
t
1: En
ab
le TOPn1 pin o
u
tp
u
t
S
pecifie
s
a
ctive level of TOPn1
pin o
u
tp
u
t
0: Active-high
1: Active-low
0/1
0/1
0/1
TPnOE1
TPnOL0
TPnOE0
TPnOL1
TOPn1 pin o
u
tp
u
t
16-
b
it co
u
nter
•
When TPnOL1
b
it = 0
TOPn1 pin o
u
tp
u
t
16-
b
it co
u
nter
•
When TPnOL1
b
it = 1
0
0
0
0
0/1
TPnIOC2
S
elect v
a
lid edge of
extern
a
l trigger inp
u
t
S
elect v
a
lid edge of
extern
a
l event co
u
nt inp
u
t
0/1
0/1
0/1
TPnEE
S
0 TPnET
S
1 TPnET
S
0
TPnEE
S
1
electronic components distributor