NEC V850E/RS1 User Manual page 344

32-/16-bit single-chip microcontroller with can interface
Table of Contents

Advertisement

(1)
When TQnCCSn = 0 setting (compare function)
When TQnCE is set to 1, the 16-bit counter counts from 0000H to FFFFH, and continues counting
up in the free-running mode until TQnCE is cleared to 0. If a value is written to the TQnCCRm
register in this mode, it is transferred to the CCRm buffer registers (anytime write). Even if an
one-shot pulse trigger is input in this mode, an one-shot pulse is not generated. If TQnOEm is set
to 1, TOQnm produces a toggle output when the value of the 16-bit counter matches the value of
the CCRm buffer register.
(2)
When TQnCCSn = 1 setting (capture function)
When TQnCE is set to 1, the 16-bit counter counts from 0000H to FFFFH, and continues counting
up in the free-running mode until TQnCE is cleared to 0. The value captured by a capture trigger is
written to the TQnCCRm registers.
Capturing before and after overflow (FFFFH) is judged using the overflow flag (TQnOVF).
However, if the interval of the capture trigger is such that the overflow occurs two times (two
periods of more of free-running), the TQnOVF flag cannot be used for judgment.
Remark:
344
Downloaded from
Elcodis.com
electronic components distributor
Chapter 8 16-Bit Timer/Event Counter Q
n = 0 to 1
m = 0 to 3
User's Manual U16702EE3V2UD00

Advertisement

Table of Contents
loading

Table of Contents