
324
Chapter 8
16-Bit Timer/Event Counter Q
User’s Manual U16702EE3V2UD00
8.5.2 Interval timer mode (TQnMD2 to TQnMD0 = 000)
In the interval timer mode, an interrupt request signal (INTTQnCC0) is generated when the set value of
the TQnCCR0 register matches the value of the 16-bit counter, and the 16-bit counter is cleared.
Rewriting the TQnCCRm register is enabled when TQnCE = 1. When a value is set to the TQnCCRm
register by a write instruction from the CPU, it is transferred to the CCRm buffer register by means of
anytime write, and is compared with the value of the 16-bit counter.
In the interval timer mode, the 16-bit counter can be cleared only when its value matches the value of
the CCR0 buffer register.
The 16-bit counter is not cleared by using the TQnCCRk register.
However, the set value of the TQnCCRk register is transferred to the CCRk buffer register and
compared with the value of the 16-bit counter. As a result, an interrupt request (INTTQnCCk) is
generated. The value can also be output from the TOQnm pin by setting the TQnOEm bit to 1.
When the TQnCCRk register is not used, it is recommended to set the TQnCCRk register to FFFFH.
When performing timer output with the TOQnk pin, set the same values to the TQnCCR0 register and
one of the TQnCCR1 to TQnCCR3 registers since the 16-bit timer counter cannot be cleared with the
TQnCCRk register.
Remark:
n = 0 to 1,
m = 0 to 3
k = 1 to 3
Figure 8-18:
Flowchart of Basic Operation in Interval Timer Mode
Note:
The 16-bit counter is not cleared upon a match between the 16-bit counter and TQnCCRk.
Remark:
n = 0,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 and CCR0
buffer register match.
Clear and start 16-bit counter.
16-bit counter matches
CCRk buffer register
Note
.
INTTQnCCk occurs
Initial setting
•
Select clock (TQnCTL0: TQnCKS2 to
TQnCKS0).
•
Set interval timer mode (TQnCTL0:
TQnMD2 to TQnMD0 = 000).
•
Set compare register (TQnCCRm).
electronic components distributor
Содержание V850E/RS1
Страница 6: ...6 User s Manual U16702EE3V2UD00 Downloaded from Elcodis com electronic components distributor...
Страница 206: ...206 User s Manual U16702EE3V2UD00 MEMO Downloaded from Elcodis com electronic components distributor...
Страница 232: ...232 User s Manual U16702EE3V2UD00 MEMO Downloaded from Elcodis com electronic components distributor...
Страница 366: ...366 User s Manual U16702EE3V2UD00 MEMO Downloaded from Elcodis com electronic components distributor...
Страница 402: ...402 User s Manual U16702EE3V2UD00 MEMO Downloaded from Elcodis com electronic components distributor...
Страница 684: ...684 User s Manual U16702EE3V2UD00 MEMO Downloaded from Elcodis com electronic components distributor...
Страница 766: ...766 User s Manual U16702EE3V2UD00 MEMO Downloaded from Elcodis com electronic components distributor...
Страница 798: ...798 User s Manual U16702EE3V2UD00 MEMO Downloaded from Elcodis com electronic components distributor...
Страница 832: ...832 User s Manual U16702EE3V2UD00 MEMO Downloaded from Elcodis com electronic components distributor...
Страница 834: ...834 User s Manual U16702EE3V2UD00 MEMO Downloaded from Elcodis com electronic components distributor...
Страница 848: ...848 User s Manual U16702EE3V2UD00 Downloaded from Elcodis com electronic components distributor...
Страница 852: ...Downloaded from Elcodis com electronic components distributor...