CHAPTER 7 16-BIT TIMER/EVENT COUNTER 0
User’s Manual U16896EJ2V0UD
247
7.4.4 Operation in clear & start mode entered by TI010 pin valid edge input
When the TMC01.TMC013 and TMC01.TMC012 bits are set to 10 (clear & start mode entered by the TI010 pin
valid edge input) and the count clock (set by the PRM01, SELCNT1 registers) is supplied to the timer/event counter,
the TM01 register starts counting up. When the valid edge of the TI010 pin is detected during the counting operation,
the TM01 register is cleared to 0000H and starts counting up again. If the valid edge of the TI010 pin is not detected,
the TM01 register overflows and continues counting.
The valid edge of the TI010 pin is a cause to clear the TM01 register. Starting the counter is not controlled
immediately after the start of the operation.
The CR010 and CR011 registers are used as compare registers and capture registers.
(a) When the CR010 and CR011 registers are used as compare registers
Signals INTTM010 and INTTM011 are generated when the value of the TM01 register matches the value of
the CR010 and CR011 registers.
(b) When the CR010 and CR011 registers are used as capture registers
The count value of the TM01 register is captured to the CR010 register and the INTTM010 signal is
generated when the valid edge is input to the TI011 pin (or when the phase reverse to that of the valid edge
is input to the TI010 pin).
When the valid edge is input to the TI010 pin, the count value of the TM01 register is captured to the CR011
register and the INTTM011 signal is generated. As soon as the count value has been captured, the counter
is cleared to 0000H.
Caution Do not set the count clock as the valid edge of the TI010 pin (RPM01.PRM011 and
RPM01.PRM010 bits = 11). When the PRM011 and PRM010 bits = 11, the TM01 register is
cleared.
Remarks 1.
For the alternate-function pin settings, refer to
Table 4-12 Settings When Port Pins Are Used for
Alternate Functions
.
2.
For enabling the INTTM010 interrupt, refer to
CHAPTER 17 INTERRUPT/EXCEPTION PROCESSING
FUNCTION
.
Содержание ?PD703302
Страница 2: ...User s Manual U16896EJ2V0UD 2 MEMO ...