Freescale Semiconductor, Inc.
Application Note
AN2528/D
Rev. 0, 5/2003
Standard Space Vector
Modulation TPU Function Set
(svmStd)
By Milan Brejl, Ph.D.
Freescale Semiconductor, Inc...
Functional Overview
Standard Space Vector Modulation (svmStd) is a technique that is used to
implement a straightforward method of switching motor windings in
applications such as AC induction motor control and PMSM motor control. The
function set consists of 5 TPU functions:
•
•
•
•
•
Standard Space Vector Modulation – Top (svmStd_top)
Standard Space Vector Modulation – Bottom (svmStd_bottom)
Synchronization Signal for Standard Space Vector Modulation
(svmStd_sync)
Resolver Reference Signal for Standard Space Vector Modulation
(svmStd_res)
Fault Input for Standard Space Vector Modulation (svmStd_fault)
The svmStd_top and svmStd_bottom TPU functions work together to generate
a 6-channel 3-phase center-aligned PWM signal with dead-time between the
top and bottom channels. The Synchronization Signal for the svmStd function
Phase A - top
Phase A - bottom
Phase B - top
Phase B - bottom
Phase C - top
Phase C - bottom
Synchronization signal
Resolver reference signal
Fault (input signal)
1.6 m s
Change of
PW M period
FAU LT !
New
INITIALIZATIO N
Figure 1. Signals generated by svmStd TPU function set
© Freescale Semiconductor, Inc., 2004. All rights reserved.
© Motorola, Inc., 2003
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
AN2528/D
can be used to generate one or more adjustable signals for a wide range of
uses, that are synchronized to the PWM, and track changes in the PWM period.
The Resolver Reference Signal for the svmStd function can be used to
generate one or more 50% duty-cycle adjustable signals that are also
synchronized to the PWM.The Fault Input for the svmStd function is a TPU
input function that sets all PWM outputs low when the input signal goes low.
See
Figure 1.
Function Set Configuration
Freescale Semiconductor, Inc...
None of the TPU functions in the Standard Space Vector Modulation TPU
function set can be used separately. The svmStd_top and svmStd_bottom
functions have to be used together. The svmStd_top is used on 3 channels, the
svmStd_bottom on a further 3 channels, and within each phase, the function
svmStd_top has to be assigned on a lower TPU channel than the function
svmStd_bottom. This is illustrated in the examples in
Table 2
and
Table 3.
One
or more channels running a Synchronization Signal for svmStd as well as
Resolver Reference Signals for svmStd functions can be added to the
svmStd_top and svmStd_bottom functions. They can run with different settings
on each channel. The function Fault Input for svmStd can also be added to the
svmStd_top and svmStd_bottom functions. It is recommended to use it on
channel 15, and to select the hardware option that disables all TPU output pins
when the channel 15 input signal is low (DTPU bit = 1). This ensures that the
hardware reacts quickly to a pin fault state. Note that it is not only the PWM
channels, but all TPU output channels, including the synchronization signals,
that are disabled in this configuration.
Table 1
shows the configuration options and restrictions.
Table 1. svmStd TPU function set configuration options and restrictions
TPU function
svmStd_top
Optional/
Mandatory
mandatory
How many
channels
3
Assignable channels
any 3 channels, within each phase a
lower TPU channel than the same
phase svmStd_bottom
any 3 channels, within each phase a
higher TPU channel than the same
phase svmStd_top
any channels
any channels
any, recommended is 15 and DTPU bit
set
svmStd_bottom
svmStd_sync
svmStd_res
svmStd_fault
mandatory
optional
optional
optional
3
1 or more
1 or more
1
Table 2
and
Table 3
show two examples of configuration.
2
Standard Space Vector Modulation TPU Function Set (svmStd)
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
AN2528/D
Function Set Configuration
Table 2. Example of configuration
Channel
0
1
2
3
4
5
10
15
TPU function
svmStd_top
svmStd_bottom
svmStd_top
svmStd_bottom
svmStd_top
svmStd_bottom
svmStd_sync
svmStd_fault
Priority
high
high
high
high
high
high
low
high
Freescale Semiconductor, Inc...
Table 3. Example of configuration
Channel
0
1
2
3
4
5
10
11
15
TPU function
svmStd_top
svmStd_top
svmStd_top
svmStd_bottom
svmStd_bottom
svmStd_bottom
svmStd_sync
svmStd_res
svmStd_fault
Priority
high
high
high
high
high
high
low
low
high
Table 4
shows the TPU function code sizes.
Table 4. TPU function code sizes
TPU function
svmStd_top
svmStd_bottom
svmStd_sync
svmStd_res
svmStd_fault
Code size
16
µ
instructions + 8 entries = 24 long words
197
µ
instructions + 8 entries = 205 long words
26
µ
instructions + 8 entries = 34 long words
38
µ
instructions + 8 entries = 46 long words
9
µ
instructions + 8 entries = 17 long words
Configuration Order
The CPU configures the TPU as follows.
1. Disables the channels by clearing the two channel priority bits on each
channel used (not necessary after reset).
2. Selects the channel functions on all used channels by writing the
function numbers to the channel function select bits.
Standard Space Vector Modulation TPU Function Set (svmStd)
3
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
AN2528/D
3. Initializes function parameters. The parameters
T, prescaler, DT, MPW,
SQRT3
and
sync_presc_addr
must be set before initialization. If an
svmStd_sync channel or an svmStd_res channel is used, then also its
parameters must be set before initialization.
4. Issues an HSR (Host Service Request) type %10 to one of the
svmStd_bottom channels to initialize all PWM channels. Issues an HSR
type %10 to the svmStd_sync channels, svmStd_res channels and
svmStd_fault channel, if used.
5. Enables servicing by assigning high, middle or low priority to the channel
priority bits. All PWM channels must be assigned the same priority to
ensure correct operation. The CPU must ensure that the svmStd_sync
or svmStd_res channels are initialized after the initialization of PWM
channels:
–
–
assign a priority to the PWM channels to enable their initialization
if a Synchronization Signal or a Resolver Reference Signal channel
is used, wait until the HSR bits are cleared to indicate that
initialization of the PWM channels has completed and
assign a priority to the svmStd_sync or svmStd_res channels to
enable their initialization
Freescale Semiconductor, Inc...
–
NOTE:
A CPU routine that configures the TPU can be generated automatically using
the MPC500_Quick_Start Graphical Configuration Tool.
Detailed Function Description
Standard Space
Vector Modulation –
Top (svmStd_top)
and Standard Space
Vector Modulation –
Bottom
(svmStd_bottom)
The svmStd_top and svmStd_bottom TPU functions work together to generate
a 6-channel, 3-phase PWM signal, with dead-time between the top and bottom
channels. In order to charge the bootstrap transistors, the PWM signals start to
run 1.6ms after their initialization (at 20MHz TCR1 clock). The functions
generate signals corresponding to Reference Voltage Vector Amplitude of 0
(50% duty-cycle) until the first reload values are processed.
The CPU controls the PWM output by setting the TPU parameters. The Stator
Reference Voltage Vector components
u
á
and
u
â
have to be adjusted during
run time. The PWM period
T
and the
prescaler
– the number of PWM periods
per reload of new values – are also read at each reload, so these parameters
can be changed during run time. Conversely, dead-time (DT) and minimum
pulse width (MPW) are not supposed to be changed during run time. The CPU
notifies the TPU that the new reload values are prepared by setting the LD_OK
parameter. The TPU notifies the CPU that the reload values have been read
and new values can be written by clearing the LD_OK parameter.
The TPU writes the parameter Sector, which indicates the current Stator
Reference Voltage Vector position in sector 1 to 6.
4
Standard Space Vector Modulation TPU Function Set (svmStd)
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
AN2528/D
Detailed Function Description
The following figures show the input Stator Reference Voltage Vector
components
u
á
and
u
â
, corresponding sectors and output PWM signal duty
cycle ratios:
Components of the Stator Reference Voltage Vector
amplitude
1
0.5
0
-0.5
-1
0
60
120
180
240
300
alpha
beta
360
angle
Freescale Semiconductor, Inc...
Standard Space Vector Modulation Technique
1
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0 0
duty cycle ratios
Phase A
Phase B
Phase C
60
120
180
240
300
360
angle
Sector 1 Sector 2 Sector 3 Sector 4 Sector 5 Sector 6
Figure 2. Standard Space Vector Modulation Technique
The following equations describe how the Space Vector Modulation PWM
signal high-times
ht
A
,
ht
B
,
ht
C
and transition times
t
low-high
and
t
high-low
of each
channel are calculated:
U
β
=
T
⋅
u
β
U
α
=
T
⋅
u
α
X
=
U
β
Y
=
Z
=
U
β
+
U
α
3
2
U
β
−
U
α
3
2
aÃ1Ã
`Ã1Ã
aÃ32Ã
YÃ12Ã
IV.
YÃ3Ã
III.
aÃ1Ã
YÃ12Ã
VI.
`Ã32Ã
YÃ3Ã
I.
aÃ32Ã
II.
Sector:
V.
Standard Space Vector Modulation TPU Function Set (svmStd)
5
For More Information On This Product,
Go to: www.freescale.com