
CHAPTER 7 16-BIT TIMER/EVENT COUNTER Q (TMQ)
User’s Manual U17716EJ2V0UD
243
(3) CCR1 buffer register
This is a 16-bit compare register that compares the count value of the 16-bit counter.
When the TQnCCR1 register is used as a compare register, the value written to the TQnCCR1 register is
transferred to the CCR1 buffer register. When the count value of the 16-bit counter matches the value of the
CCR1 buffer register, a compare match interrupt request signal (INTTQnCC1) is generated.
The CCR1 buffer register cannot be read or written directly.
The TQnCCR1 register is cleared to 0000H after reset, and the CCR1 buffer register is cleared to 0000H.
(4) CCR2 buffer register
This is a 16-bit compare register that compares the count value of the 16-bit counter.
When the TQnCCR2 register is used as a compare register, the value written to the TQnCCR2 register is
transferred to the CCR2 buffer register. When the count value of the 16-bit counter matches the value of the
CCR2 buffer register, a compare match interrupt request signal (INTTQnCC2) is generated.
The CCR2 buffer register cannot be read or written directly.
The TQnCCR2 register is cleared to 0000H after reset, and the CCR2 buffer register is cleared to 0000H.
(5) CCR3 buffer register
This is a 16-bit compare register that compares the count value of the 16-bit counter.
When the TQnCCR3 register is used as a compare register, the value written to the TQnCCR3 register is
transferred to the CCR3 buffer register. When the count value of the 16-bit counter matches the value of the
CCR3 buffer register, a compare match interrupt request signal (INTTQnCC3) is generated.
The CCR3 buffer register cannot be read or written directly.
The TQnCCR3 register is cleared to 0000H after reset, and the CCR3 buffer register is cleared to 0000H.
(6) Edge detector
This circuit detects the valid edges input to the TIQ00 to TIQ03 and EVTQ0 pins. No edge, rising edge, falling
edge, or both the rising and falling edges can be selected as the valid edge by using the TQ0IOC1 and
TQ0IOC2 registers.
(7) Output controller
This circuit controls the output of the TOQ00, TOQ01/TOQH01, TOQ02, TOQ03/TOQH02, TOQH03, and
TOQ10 pins. The output of the TOQ00, TOQ01/TOQH01, TOQ02, TOQ03/TOQH02, and TOQH03 pins is
controlled by the TQ0IOC0 register. The output of the TOQ10 pin is controlled by the TQ1IOC0 register.
(8) Selector
This selector selects the count clock for the 16-bit counter. Eight types of internal clocks or an external event
can be selected as the count clock.