
R01UH0336EJ0102 Rev.1.02
Page 861 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 15 TSG2 (TSG20)
15.11.3
SP-PWM Mode (Shifted-pulse - Pulse Width Modulation
Mode)
Overview
In this mode, a 6-phase PWM can be generated using the 16-bit counter and
the 16-bit compare registers.
Prerequisites
• The PWM signal cycle is set in TSnCMP0.
• The set timings of the U phase, V phase, and W phase are set with
TSnCMP2, TSnCMP6, and TSnCMP10, while the clear timings of these
phases are set with TSnCMP1, TSnCMP5, and TSnCMP9 (when set timing
and clear timing are used for control).
• The set timings of the U phase, V phase, and W phase are set with
TSnCMP2, TSnCMP6, and TSnCMP10 while the active periods of these
phases are set with TSnUPW, TSnVPW, and TSnWPW.
The sum of the set values of TSnCMP2, TSnCMP6, TSnCMP10, and the
set values of TSnUPW, TSnVPW, TSnWPW are set to TSnCMP1,
TSnCMP5, and TSnCMP9 respectively (when set timing and active period
are used for control).
Functional
description
Set the carrier period and the set timings and duty of U phase, V phase, and W
phase. The counting up begins when TSnTRG0.TSnTS is set to 1.
The 16-bit counter counts up from 0000
H
and is cleared by match with
TSnCMP0.
The dead time is set with TSnDTC0 and TSnDTC1. TSnDTC0 sets the dead
time of inverse phase (OFF) to positive phase (ON) switch while TSnDTC1
sets that of positive phase (OFF) to inverse phase (ON) switch. The 10-bit
counters (TSnDTT1 to TSnDTT3) for dead time generation load the set values
of TSnDTC0 and TSnDTC1 at compare match of the 16-bit counter with the
TSnCMPm buffer register (m = 1, 2, 5, 6, 9, 10) and start down-counting.
INTTSG2nIm interrupts (m = 01, 02, 05, 06, 09, 10) are generated by the
compare match of the 16-bit counter with the TSnCMP1, TSnCMP2,
TSnCMP5, TSnCMP6, TSnCMP9, and TSnCMP10 buffer registers.
Note
SP-PWM mode is enabled when TSnTRG0.TSnMD1 and TSnMD0 =10
B
.