
R01UH0336EJ0102 Rev.1.02
Page 880 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 15 TSG2 (TSG20)
Setting pattern
switch method
Setting TSnOPT0.TSnSTE to 1 and TSnPOT to 0 selects the pattern switch
method. The TSG2nO1 to TSG2nO6 pin output is changed at the change
timing of the TSG2nPTSI2 to TSG2nPTSI0 pins.
The output order at the beginning of operation is set with TSnOPT0.TSnIDC.
The initial output pattern is set with TSnOPT0.TSnPSC. However, after
determining the rotation direction (after the value is set to TSnSTR1.TSnTSF),
the setting of TSnPSC is disabled.
Operation of pattern
switch method
After level detection is performed for the pins (three inputs from the hall
sensor), the level-detected signals are decoded. From the decoding result, the
PWM output of TSG2nO1 to TSG2nO6 pins (PWM output defined by
TSnCMP1 to TSnCMP12) is selected. To control the dead time, the dead time
counter is activated at the falling timing of 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
change of the input pattern (TSG2nPTSI2 to TSG2nPTSI0 pins).
In this method, the pattern, which is decoded by using information on input
pattern (TSG2nPTSI2 to TSG2nPTSI0), the electric current direction control bit
(TSnOPT0.TSnIDC), and TSG2nPTSI2 to TSG2nPTSI0 pattern order
detection flag (TSnSTR1.TSnTSF), is output. Figure 15-65 to Figure 15-68
show the timer output when TSG2nPTSI2 to TSG2nPTSI0 pin inputs change.
If input pattern 1 is switched to input pattern 4 due to an abnormal input
pattern, the output pattern is switched to the pattern corresponding to the input
pattern.
Immediately after the operation starts (TSnTRG0.TSnTS = 1), the output
pattern set with the input level of TSG2nPTSI2 to TSG2nPTSI0 pins, TSnIDC,
and TSnPSC (TSnOPT0.TSnPSS = 1) is output. After the TSnTSF value is
determined, the output pattern is determined by TSnTSF instead of TSnPSC.
Caution
When connecting the three-phase pulse input signal to the TSG2nPTSI2 to
TSG2nPTSI0 pins, confirm that the three-phase pulse input value and the
patterns output from the TSG2nO1 to TSG2nO6 pins satisfy the expected
conditions.
If the expected conditions are not satisfied, change the connection between
the three-phase pulse input signal and the TSG2nPTSI2 to TSG2nPTSI0 pins.