AN2529 Freescale Semiconductor / Motorola, AN2529 Datasheet

no-image

AN2529

Manufacturer Part Number
AN2529
Description
Standard Space Vector Modulation - XOR version TPU Function Set
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Application Note
AN2529/D
Rev. 0, 5/2003
Standard Space Vector
Modulation – XOR version
TPU Function Set
(svmStdXor)
By Milan Brejl, Ph.D.
Functional Overview
AB1
AB2
BB1
BB2
CT1
CT2
CB1
CB2
AT1
AT2
BT1
BT2
Figure 1. Functionality of XOR version – illustration
Standard Space Vector Modulation – XOR version (svmStdXor) is a version of
the Standard Space Vector Modulation (svmStd) function that uses two TPU
channels to generate one PWM output channel. The TPU channel outputs are
connected to an XOR gate whos output is the required PWM signal. See
Figure
duty-cycle ratios. There is no MPW (minimum pulse width) parameter to limit
the edge duty-cycle ratios in this version, unlike in the svmStd. A disadvantage
is that the number of assigned TPU channels is doubled.
Freescale Semiconductor, Inc.
For More Information On This Product,
1. An advantage of this solution is the full range 0% to 100% of PWM
Go to: www.freescale.com
XOR
XOR
XOR
XOR
XOR
XOR
XOR
XOR
XOR
XOR
XOR
XOR
© Motorola, Inc., 2003
Phase A - top
Phase A - bottom
Phase B - top
Phase B - bottom
Phase C - top
Phase C - bottom

Related parts for AN2529

AN2529 Summary of contents

Page 1

... Freescale Semiconductor, Inc. Application Note AN2529/D Rev. 0, 5/2003 Standard Space Vector Modulation – XOR version TPU Function Set (svmStdXor) By Milan Brejl, Ph.D. Functional Overview Standard Space Vector Modulation – XOR version (svmStdXor version of the Standard Space Vector Modulation (svmStd) function that uses two TPU channels to generate one PWM output channel ...

Page 2

... Freescale Semiconductor, Inc. AN2529/D The function set consists of 5 TPU functions: • • • • • The svmStdXor_R and svmStdXor_T TPU functions work together to generate 6 pairs of XOR gate inputs. The XOR gate outputs then produce a 6-channel 3-phase center-aligned PWM signal with dead-time between the top and bottom channels ...

Page 3

... Go to: www.freescale.com AN2529/D Function Set Configuration Assignable channels any 3 channels any 9 channels any channels ...

Page 4

... Freescale Semiconductor, Inc. AN2529/D Configuration Order The CPU configures the TPU as follows. 1. Disables the channels by clearing the two channel priority bits on each 2. Selects the channel functions on all used channels by writing the 3. Initializes function parameters. The parameters T, prescaler, DT, 4. Issues an HSR (Host Service Request) type %10 to one of the 5 ...

Page 5

... The TPU writes the parameter Sector, which indicates the current Stator Reference Voltage Vector position in sector MOTOROLA Standard Space Vector Modulation – XOR version TPU Function Set (svmStdXor) For More Information On This Product, and u á Go to: www.freescale.com AN2529/D Detailed Function Description have to be adjusted during â 5 ...

Page 6

... Freescale Semiconductor, Inc. AN2529/D The following figures show the input Stator Reference Voltage Vector components u cycle ratios: The following equations describe how the Space Vector Modulation PWM signal high-times ht calculated Sector: 6 Standard Space Vector Modulation – XOR version TPU Function Set (svmStdXor) ...

Page 7

... XOR XOR XOR XOR DT DT center_time center_tim e trans center_tim e trans center_tim e trans center_tim e trans 2 Go to: www.freescale.com AN2529/D Detailed Function Description ht A top channel bottom channel DT DT center_time T and ht substituted ...

Page 8

... Freescale Semiconductor, Inc. AN2529/D Host Interface Standard Space Vector Modulation – XOR version TPU Function Set (svmStdXor) Written By CPU Written By TPU Table 4. svmStdXor_T Control Bits Name 1 0 Channel Function Select 1 0 Channel Priority 1 0 Host Service Bits (HSR Host Sequence Bits (HSQ) ...

Page 9

... Host Service Bits (HSR Host Sequence Bits (HSQ) 0 Channel Interrupt Enable 0 Channel Interrupt Status Go to: www.freescale.com AN2529/D Detailed Function Description Options svmStdXor_R function number (Assigned during assembly the DPTRAM code from library TPU functions) 00 – Channel Disabled 01 – Low Priority 10 – ...

Page 10

... Freescale Semiconductor, Inc. AN2529/D Channel 10 Standard Space Vector Modulation – XOR version TPU Function Set (svmStdXor) Table 6. svmStdXor_T and svmStdXor_R Parameter RAM Parameter ...

Page 11

... Parameter to: www.freescale.com AN2529/D Detailed Function Description Ttime_BT2 DT CPU14 htB B2_chan_B T1_chan_B T2_chan_B B1a_chan_B B1b_chan_B Ttime_BB2 Ttime_CT1 Ttime_CT2 11 ...

Page 12

... Freescale Semiconductor, Inc. AN2529/D Channel 12 Standard Space Vector Modulation – XOR version TPU Function Set (svmStdXor) Table 6. svmStdXor_T and svmStdXor_R Parameter RAM Parameter For More Information On This Product, Go to: www ...

Page 13

... Parameters written by both TPU and CPU 1-bit Parameters written by TPU 16-bit unsigned integer to: www.freescale.com AN2529/D Detailed Function Description Description Stator Reference Voltage Vector components PWM period in number of TCR1 TPU cycles The number of PWM periods per ...

Page 14

... Freescale Semiconductor, Inc. AN2529/D Performance NOTE: Execution times do not include the time slot transition time (TST = IMB clocks) 14 Standard Space Vector Modulation – XOR version TPU Function Set (svmStdXor) Table 8. svmStdXor_T State Statistics State Max IMB Clock Cycles ST SF Table 9. svmStdXor_R State Statistics ...

Page 15

... SFR and SFC states. MOTOROLA Standard Space Vector Modulation – XOR version TPU Function Set (svmStdXor) For More Information On This Product SFR to: www.freescale.com AN2529/D Detailed Function Description SFR SFR C5 ...

Page 16

... Freescale Semiconductor, Inc. AN2529/D NOTE: The case that happens is determined by the time when the link comes. 16 Standard Space Vector Modulation – XOR version TPU Function Set (svmStdXor flag0 = 1 link Figure 4. svmStdXor_T state diagram and 3 cases of timing For More Information On This Product, Go to: www ...

Page 17

... Standard Space Vector Modulation – XOR version TPU Function Set (svmStdXor) For More Information On This Product, SFR INIT HSR = 10 SFC 0 SFR 0 flag1 = 0 flag1 = 1 – channel with momentary longest high-time Figure 5. svmStdXor_R state diagram Go to: www.freescale.com AN2529/D Detailed Function Description th 4 -time SFC C5 3-times STOP HSR = ...

Page 18

... Freescale Semiconductor, Inc. AN2529/D move > 0 move > 0 prescaler = 1 prescaler = 1 move < 0 move < 0 prescaler = 2 prescaler = 2 Synchronized Change The svmStdXor_sync TPU function actually uses the presc_copy parameter of PWM Prescaler instead of the prescaler parameter. The prescaler parameter holds the And Synchronization prescaler value that is copied to the presc_copy by the svmStdXor_bottom Signal Prescaler function at the time the PWM parameters are reloaded ...

Page 19

... Parameter to: www.freescale.com AN2529/D Detailed Function Description Written by both CPU and TPU Not Used Options svmStdXor_sync function number (Assigned during assembly the DPTRAM code from library TPU functions) 00 – Channel Disabled 01 – ...

Page 20

... Freescale Semiconductor, Inc. AN2529/D Parameter move pw prescaler presc_copy Other parameters are just for TPU function inner use. Performance There is one limitation. The absolute value of parameter move has to be less than a quarter of the PWM period T. NOTE: Execution times do not include the time slot transition time (TST = IMB ...

Page 21

... PWM period center time. MOTOROLA Standard Space Vector Modulation – XOR version TPU Function Set (svmStdXor) For More Information On This Product center_time center_time T T Figure 7. svmStdXor_sync timing to: www.freescale.com AN2529/D Detailed Function Description center_time center_time ...

Page 22

... Freescale Semiconductor, Inc. AN2529/D move > 0 prescaler = 1 move < 0 prescaler = 2 Synchronized Change The svmStdXor_res TPU function can inherit the Synchronization Signal of PWM Prescaler prescaler that is synchronously changed with the PWM prescaler. Write the And Resolver synchronization signals presc_copy parameter address to the presc_addr Reference Signals parameter to enable this mechanism ...

Page 23

... Parameter to: www.freescale.com AN2529/D Detailed Function Description Written by both CPU and TPU Not Used Options svmStdXor_res function number (Assigned during assembly the DPTRAM code from library TPU functions) 00 – Channel Disabled 01 – ...

Page 24

... Freescale Semiconductor, Inc. AN2529/D Parameter move presc_addr prescaler Other parameters are just for TPU function inner use. Performance There is one limitation. The absolute value of parameter move has to be less than a quarter of the PWM period T. NOTE: Execution times do not include the time slot transition time (TST = IMB ...

Page 25

... The parameter is placed on the AT1 channel to keep the fault channel parameter space free. MOTOROLA Standard Space Vector Modulation – XOR version TPU Function Set (svmStdXor) For More Information On This Product, S3 center_time T Figure 10. svmStdXor_res timing S3 Go to: www.freescale.com AN2529/D Detailed Function Description S1 center_time T 25 ...

Page 26

... Freescale Semiconductor, Inc. AN2529/D Host Interface 3 2 TPU function svmStdXor_fault generates an interrupt when a high to low transition appears. Channel 26 Standard Space Vector Modulation – XOR version TPU Function Set (svmStdXor) Written By CPU Written By TPU Table 18. svmStdXor_fault Control Bits Name 1 0 Channel Function Select ...

Page 27

... Parameters written by TPU Table 21. svmStdXor_fault State Statistics State Max IMB Clock Cycles INIT FAULT 172 NO_FAULT Figure 12. svmStdXor_fault timing FAULT Figure 13. svmStdXor_fault state diagram Go to: www.freescale.com AN2529/D Detailed Function Description Description State of fault pin: 0 ... low 1 ... high RAM Accesses by TPU FAULT ...

Page 28

... MOTOROLA and the Stylized M Logo are registered in the US Patent and Trademark Office. All other product or service names are the property of their respective owners. Motorola, Inc Equal Opportunity/Affirmative Action Employer. © Motorola Inc. 2003 AN2529/D Rev. 0 5/2003 For More Information On This Product, ...

Related keywords