
285
Chapter 7
16-Bit Timer/Event Counter P
User’s Manual U16702EE3V2UD00
Figure 7-23:
Flowchart of Basic Operation in One-Shot Pulse Mode
Note:
The 16-bit counter is not cleared upon a match between the 16-bit counter and the CCR1 buffer
register.
Caution:
The 16-bit counter is not cleared when a trigger input is performed during the
count-up operation of the 16-bit counter.
START
16-bit counter matches
CCR0 buffer register.
Clear 16-bit counter
Input external trigger (TIPn0 pin)
or TPnEST = 1
→
16-bit counter starts counting
INTTPnCC0 occurs
Enable timer operation (TPnCE = 1)
→
Transfer values of TPnCCR0 and
TPnCCR1 to CCR0 buffer
register and CCR1 buffer register
16-bit counter matches
CCR1 buffer register
Note
Wait for trigger.
16-bit counter stands by at FFFFH
Wait for trigger.
16-bit counter stands by at 0000H
INTTPnCC1 occurs
Initial setting
•
Select clock. (TPnCTL1: TPnEEE = 0)
(TPnCTL0: TPnCKS2 to TPnCKS0)
•
Set one-shot pulse mode. (TPnCTL1:
TPnMD2 to TPnMD0 = 011)
•
Set compare register. (TPnCCR0,
TPnCCR1)
electronic components distributor