358
Chapter 11
16-bit Timer/Event Counter P (TMP)
Preliminary User’s Manual U17566EE1V2UM00
11.5 Operation
TMPn can perform the following operations.
Note
1.
To use the external event count mode, specify that the valid edge of the
TIPn0 pin capture trigger input is not detected (by clearing the
TPnIOC1.TPnIS1 and TPnIOC1.TPnIS0 bits to “00”).
2.
When using the external trigger pulse output mode, one-shot pulse output
mode, and pulse width measurement mode, select the internal clock as the
count clock (by clearing the TPnCTL1.TPnEEE bit to 0).
11.5.1
Interval timer mode (TPnMD2 to TPnMD0 = 000)
In the interval timer mode, an interrupt request signal (INTTPnCC0) is
generated at the specified interval if the TPnCTL0.TPnCE bit is set to 1. A
square wave whose half cycle is equal to the interval can be output from the
TOPn0 pin.
Usually, the TPnCCR1 register is not used in the interval timer mode.
Figure 11-2
Configuration of interval timer
Operation
TPnCTL1.TPnEST Bit
(Software Trigger Bit)
TIPn0 Pin
(Ext. Trigger Input)
Capture/ Compare
Register Setting
Compare Register
Write
Interval timer mode
Invalid
Invalid
Compare only
Anytime write
External event count
mode
Note 1
Invalid
Invalid
Compare only
Anytime write
External trigger pulse
output mode
Note 2
Valid
Valid
Compare only
Batch write
One-shot pulse output
mode
Note 2
Valid
Valid
Compare only
Anytime write
PWM output mode
Invalid
Invalid
Compare only
Batch write
Free-running timer mode
Invalid
Invalid
Switching enabled
Anytime write
Pulse width
measurement
mode
Note 2
Invalid
Invalid
Capture only
Not applicable
16-
b
it co
u
nter
O
u
tp
u
t
controller
CCR0
bu
ffer regi
s
ter
TPnCE
b
it
TPnCCR0 regi
s
ter
Co
u
nt clock
s
election
Cle
a
r
M
a
tch
s
ign
a
l
TOPn0 pin
INTTPnCC0
s
ign
a
l
electronic components distributor