R01UH0823EJ0100 Rev.1.00
Page 509 of 1823
Jul 31, 2019
RX23W Group
23. Multi-Function Timer Pulse Unit 2 (MTU2a)
23.2.20
Timer Gate Control Registers (TGCR)
The TGCR registers control the output waveform necessary for brushless DC motor control in reset-synchronized PWM
mode and complementary PWM mode. These register settings are ineffective for anything other than complementary
PWM mode and reset-synchronized PWM mode.
UF, VF, and WF Bits (Output Phase Switch)
The setting of these bits is valid only when the TGCR.FB bit is set to 1. In this case, the setting of b0 to b2 is used instead
of the external input. Refer to
.
FB Bit (External Feedback Signal Enable)
This bit selects whether the positive-/negative-phase output is switched automatically with the TGRA, TGRB, and
TGRC input capture signals in MTU0 or by writing 0 or 1 to bits 2 to 0 in TGCR.
P Bit (Positive-Phase Output (P) Control)
This bit selects the level output or the reset-synchronized PWM/complementary PWM output for the positive-phase
output pins (MTIOC3B, MTIOC4A, and MTIOC4B pins).
N Bit (Negative-Phase Output (N) Control)
This bit selects the level output or the reset-synchronized PWM/complementary PWM output for the negative-phase
output pins (MTIOC3D, MTIOC4C, and MTIOC4D pins).
This bit selects whether to make the functions of the TGCR register effective or ineffective.
Address(es): MTU.TGCR 000D 0A0Dh
b7
b6
b5
b4
b3
b2
b1
b0
—
BDC
N
P
FB
WF
VF
UF
Value after reset:
1
0
0
0
0
0
0
0
Bit
Symbol
Bit Name
Description
R/W
b0
Output Phase Switch
These bits turn on or off the positive-phase/negative-phase output.
The setting of these bits is valid only when the TGCR.FB bit is set to 1.
In this case, the setting of b0 to b2 is used instead of the external
input. Refer to Table 23.36.
R/W
b1
R/W
b2
R/W
b3
External Feedback Signal
Enable
0: Output is switched by external input (input sources are TGRA,
TGRB, and TGRC input capture signals in MTU0)
1: Output is switched by software (TGCR’s UF, VF, and WF settings)
R/W
b4
Positive-Phase Output (P)
Control
0: Level output
1: Reset-synchronized PWM or complementary PWM output
R/W
b5
Negative-Phase Output (N)
Control
0: Level output
1: Reset-synchronized PWM or complementary PWM output
R/W
b6
Brushless DC Motor
0: Ordinary output
1: Functions of this register are made effective
R/W
b7
—
Reserved
This bit is read as 1. The write value should be 1.
R/W