397
16-bit Timer/Event Counter P (TMP)
Chapter 11
Preliminary User’s Manual U17566EE1V2UM00
(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 PWM output mode.
0
0
0
0
0/1
TPnIOC2
S
elect v
a
lid edge
of extern
a
l event
co
u
nt inp
u
t.
0/1
0
0
TPnEE
S
0 TPnET
S
1 TPnET
S
0
TPnEE
S
1
electronic components distributor