
R01UH0336EJ0102 Rev.1.02
Page 879 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 15 TSG2 (TSG20)
(3)
Control Methods in 120-DC Mode
Control methods in 120-DC mode are listed below.
Setting software
output control
method
Setting TSnOPT0.TSnSTE = 0 switches the output pattern by software output
control. The TSG2nO1 to TSG2nO6 pin output is switched according to
TSnOPT1.TSnSPC2 to TSnSPC0.
The output order at the beginning of operation is set with TSnOPT0.TSnIDC.
The output pattern is set with TSnOPT0.TSnPSC.
Operation of
software output
control method
The PWM output of TSG2nO1 to TSG2nO6 pins (PWM output defined by
TSnCMP1 to TSnCMP12) is selected by TSnOPT1.TSnSPC2 to TSnSPC0 by
software. To control the dead time, the dead time counter is activated at the
falling edge of the signals in each phase and the dead time is inserted.
The 16-bit counter counts based on the carrier period set in TSnCMP0. The
16-bit counter is cleared by match of the 16-bit counter and TSnCMP0 or by a
write access to TSnOPT1.TSnSPC2 to TSnSPC0.
In this method, the pattern is output, which is decoded using information on the
output pattern (TSnSPC2 to TSnSPC0), the electric current direction control bit
(TSnOPT0.TSnIDC), and TSG2nPTSI2 to TSG2nPTSI0 pattern order
detection flag (TSnSTR1.TSnTSF). Figure 15-83 shows the timer output when
the output pattern is changed by software output control.
Immediately after the operation starts (TSnTRG0.TSnTS = 1), the output
pattern of TSnSPC2 to TSnSPC0 and the pattern set with TSnIDC and
TSnPSC (TSnOPT0.TSnPSS = 1) are output.
Control Method
Function
Software output control
method
Switches the output pattern according to the
TSnOPT1.TSnSPC2 to TSnSPC0 setting made by software.
Pattern switch method
Directly switches the output pattern by the pattern input signal
of TSG2nPTSI0 to TSG2nPTSI2.
Trigger switch method
Switches the output pattern by the trigger switch method using
the trigger input signals TSnOPCI0 and TSnOPCI1 or by the
pattern input setting of TSnOPT1.TSnSPC2 to TSnSPC0 in
the constant order.