
331
Chapter 8
16-Bit Timer/Event Counter Q
User’s Manual U16702EE3V2UD00
8.5.4 External trigger pulse mode (TQnMD2 to TQnMD0 = 010)
When TQnCE = 1 in the external trigger pulse mode, the 16-bit counter stops at FFFFH and waits for
input of an external trigger (TIQn0 pin input). When the counter detects the edge of the external trigger
(TIQn0 pin input), it starts counting up.
The duty factor of the signal output from the TOQnk pin is set by a reload register (TQnCCRk) and the
period is set by a compare register (TQnCCR0).
Rewriting the TQnCCRm register is enabled when TQnCE = 1. So that the set value of the TQnCCRm
register after rewriting is compared with the value of the 16-bit counter (reloaded to the CCRm buffer
register), the TQnCCR0 register must be rewritten and then a value is written to the
TQnCCR1 register before the value of the 16-bit counter matches the value of the TQnCCR0 register.
When the value of the TQnCCR0 register later matches the value of the 16-bit counter, the value of the
TQnCCRm register is reloaded.
Whether the next reload timing is made valid or not is controlled by writing to the TQnCCR1 register.
Therefore, write the same value to the TQnCCR1 register when it is necessary to rewrite the value of
only the TQnCCR0 register.
Reload is invalid when only the TQnCCR0 register is rewritten.
To stop timer Q, clear TQnCE to 0. If the edge of the external trigger (TIQn0 pin input) is detected more
than once in the external trigger pulse mode, the 16-bit counter is cleared at the point of edge detection,
and resumes counting up. To realize the same function as the external trigger pulse mode by using a
software trigger instead of the external trigger input (TIQn0 pin input) (software trigger pulse mode), a
software trigger is generated by setting the TQnEST bit of the TQnCTL1 register to 1. The waveform of
the external trigger pulse is output from TOQnk.
In the external trigger pulse mode, the capture function of the TQnCCRm register cannot be used
because this register can be used only as a compare register.
Caution:
In the external trigger pulse mode, select the internal clock (TQnEEE bit of TQnCTL1
register = 0) as the count clock.
Remarks: 1.
For the reload operation when TQnCCRm is rewritten during timer operation, refer to
8.5.6 PWM mode (TQnMD2 to TQnMD0 = 100)
.
2.
n = 0 to 1
m = 0 to 3
k = 1 to 3
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...