
270
Chapter 7
16-Bit Timer/Event Counter P
User’s Manual U16702EE3V2UD00
7.5 Operation
Timer P can perform the following operations.
Notes: 1.
To use the external event counter function, specify that the input edge of the TIPn0 pin is not
detected by clearing the TPnIS1 and TPnIS0 bits of the TPnIOC1 register to “00”.
2.
To use the external trigger pulse output mode, one-shot pulse mode, or pulse width
measurement mode, select a count clock by clearing the TPnEEE bit of the TPnCTL1
register to 0.
7.5.1 Anytime write and reload
TPnCCR0 and TPnCCR1 register rewrite is possible for timer P during timer operation (TPnCE = 1), but
the write method (any time write, reload) differs depending on the mode.
(1)
Anytime write
When data is written to the TPnCCRm register during timer operation, it is transferred at any time
to CCRm buffer register and used as the 16-bit counter comparison value.
Remark:
n = 0 to 3
m = 0, 1
Operation
TPnEST
Software
trigger bit
TIPn0
External
trigger input
TPnEEE
Count clock
selection
Capture/Compare
Selection
Compare
Write
Interval timer mode
Invalid
Invalid
Internal/external
Compare only
Any time write
External event counter
mode
Note 1
Invalid
Invalid
External only
Compare only
Any time write
External trigger pulse
output mode
Note 2
Valid
Valid
Internal only
Compare only
Reload
One-shot pulse output
mode
Note 2
Valid
Valid
Internal only
Compare only
Any time write
PWM mode
Invalid
Invalid
Internal/external
Compare only
Reload
Free-running mode
Invalid
Invalid
Internal/external
Capture/compare
selectable
Any time write
Pulse width measure-
ment mode
Note 2
Invalid
Invalid
Internal only
Capture only
Not applicable
electronic components distributor