R01UH0822EJ0100 Rev.1.00
Page 369 of 1041
Jul 31, 2019
RX13T Group
19. Multi-Function Timer Pulse Unit 3 (MTU3c)
19.2.24
Timer Gate Control Register A (TGCRA)
TGCRA controls the output waveform necessary for brushless DC motor control in reset-synchronized PWM mode and
complementary PWM mode. TGCRA 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 FB bit is set to 1. In this case, the setting of b0 to b2 is used instead of the
external input. Refer to
for details.
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 TGCRA.
When the TGCRA.FB bit is 0, output of MTU3 and MTU4 can be switched with the TGRA, TGRB, and TGRC input
capture signals in MTU0.
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 TGCRA effective or ineffective.
Address(es): MTU.TGCRA 0009 520Dh
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 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 19.39.
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 (TGCRA'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