
312
Chapter 8
16-Bit Timer/Event Counter Q
User’s Manual U16702EE3V2UD00
(2)
Timer Q control register 1 (TQnCTL1)
The TQnCTL1 register is an 8-bit register that controls the operation of timer Q.
This register can be read or written in 8-bit or 1-bit units.
RESET input clears this register to 00H.
Figure 8-8:
Timer Q Control Register 1 (TQnCTL1) Format (1/2)
Caution:
In the synchronous operation mode, the master macro can be set only in the PWM
mode, external trigger pulse output mode, pulse output mode, and free-running
mode.
The slave macros can be set only in the free-running mode.
Setting the external event count mode, one-shot pulse mode, and pulse width
measurement mode is prohibited.
Symbol
7
6
5
4
3
2
1
0
Address
R/W
After
reset
TQ0CTL1 TQ0SYE TQ0EST TQ0EEE
0
0
TQ0MD2 TQ0MD1 TQ0MD0
FFFFF541H R/W 00H
Symbol
7
6
5
4
3
2
1
0
Address
R/W
After
reset
TQ1CTL1 TQ1SYE TQ1EST TQ1EEE
0
0
TQ1MD2 TQ1MD1 TQ1MD0
FFFFF611H R/W 00H
TQnSYE
Tuned operation mode enable control
0
Independent operation mode (asynchronous operation mode)
1
Tuned operation mode (specification of slave operation)
In this mode, timer Q can operate in synchronization with a master timer.
Master timer
Slave timer
TMQ0
TMQ1
-
For the tuned operation mode, refer to
8.6 Timer Synchronized Operation Function
.
Caution:
Be sure to clear the TQ0SYE bit to 0 (master timer) and TQ1SYE bit to 1
(slave timer)
TQnEST
Software trigger control
0
No operation
1
In one-shot pulse mode: One-shot pulse software trigger
In external trigger pulse output mode: Pulse output software trigger
The TQnEST bit functions as a software trigger in the one-shot pulse mode or external trigger pulse
output mode (this bit is invalid in any other mode). By setting TQnEST to 1 when TQnCE = 1, a software
trigger is issued. Therefore, be sure to set TQnEST to 1 when TQnCE = 1.
The TIQn0 pin is used for an external trigger. The read value of the TQnEST bit is always 0.
electronic components distributor