
328
Chapter 8
16-Bit Timer/Event Counter Q
User’s Manual U16702EE3V2UD00
Figure 8-20:
Flowchart of Basic Operation in External Event Counter Mode
Notes: 1.
Selection of the TQnEEE bit has no influence.
2.
The 16-bit counter is not cleared when it matches the CCRk buffer register.
Remark:
n = 0 to 1
m = 0 to 3
k = 1 to 3
START
INTTQnCC0 occurs
Enable timer operation (TQnCE = 1)
→
Transfer value of TQnCCRm
to CCRm buffer register
16-bit counter matches
CCR0 buffer register.
Clear and start 16-bit counter.
16-bit counter matches
CCRk buffer register
Note 2
INTTQnCCk occurs
Initial setting
•
Set external event count mode
(TQnCTL0: TQnMD2 to TQnMD0 =
001)
Note 1
•
Set valid edge (TQnIOC2: TQnEES1,
TQnEES0).
•
Set compare register (TQnCCRm).
electronic components distributor