
342
Chapter 8
16-Bit Timer/Event Counter Q
User’s Manual U16702EE3V2UD00
8.5.7 Free-running mode (TQnMD2 to TQnMD0 = 101)
In the free-running mode, both the interval function and the compare function can be realized by
operating the 16-bit counter as a free-running counter and selecting capture/compare operation with
the TQnCCS3 to TQnCCS0 bits of the TQnOPT0 register.
The settings of the TQnCCS3 to TQnCCS0 bits of the TQnOPT0 register are valid only in the
free-running mode.
•
When TQnCCRm register is used as compare register
When the value of the 16-bit counter matches the value of the CCRm buffer register in the free-running
mode, an interrupt is generated (interval function).
Rewriting the value of the compare register is enabled during timer operation, and a value can be
written to the register at any time (when the value to be compared is written to the register, it is
synchronized with the internal clock and compared with the value of the 16-bit counter).
If timer output (TOQnm) is enabled, TOQnm produces a toggle output when the value of the 16-bit
counter matches the value of the CCRm buffer register.
•
When TQnCCRm register is used as capture register
The value of the 16-bit counter is saved to the TQnCCRm register upon TIQnm pin edge detection.
Remark:
n = 0 to 1
m = 0 to 3
TQnCCSm
Operation
0
Use TQnCCRm register as compare register
1
Use TQnCCRm register as capture register
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...