AN2519 Freescale Semiconductor / Motorola, AN2519 Datasheet

no-image

AN2519

Manufacturer Part Number
AN2519
Description
3Sin with Dead-Time Correction - XOR version TPU Function Set
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Application Note
AN2519/D
Rev. 0, 5/2003
3Sin with Dead-Time
Correction – XOR version
TPU Function Set (3SinDtXor)
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
The 3-Phase Sine Wave Generator with Dead-Time Correction – XOR version
(3SinDtXor) is a version of the 3-Phase Sine Wave Generator with Dead-Time
Correction (3SinDt) function that uses two TPU channels to generate one PWM
output channel. The TPU channel outputs are to be connected to a XOR gate
whose output is the required PWM signal. See
solution is that it provides the full range 0% to 100% of PWM duty-cycle ratios.
There is no MPW (minimum pulse width) parameter to limit the edge duty-cycle
ratios in this version, unlike in the 3SinDt. A disadvantage is that the number of
assigned TPU channels is doubled.
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
XOR
XOR
XOR
XOR
XOR
XOR
XOR
XOR
XOR
XOR
XOR
XOR
Figure
1. An advantage of this
© Motorola, Inc., 2003
Phase A - top
Phase A - bottom
Phase B - top
Phase B - bottom
Phase C - top
Phase C - bottom

Related parts for AN2519

AN2519 Summary of contents

Page 1

... Freescale Semiconductor, Inc. Application Note AN2519/D Rev. 0, 5/2003 3Sin with Dead-Time Correction – XOR version TPU Function Set (3SinDtXor) By Milan Brejl, Ph.D. Functional Overview The 3-Phase Sine Wave Generator with Dead-Time Correction – XOR version (3SinDtXor version of the 3-Phase Sine Wave Generator with Dead-Time Correction (3SinDt) function that uses two TPU channels to generate one PWM output channel ...

Page 2

... Freescale Semiconductor, Inc. AN2519/D The dead-time correction technique requires knowledge of the instantaneous direction of phase currents. In the case of positive phase current the top channel high-time is equal to the calculated high-time, and the bottom channel has to control the dead-time. In case of negative phase current the bottom channel low-time is equal to the calculated high-time, and the top channel has to control the dead-time ...

Page 3

... Go to: www.freescale.com AN2519/D Function Set Configuration Figure 1. 3SinDtXor_T runs Assignable channels any 3 channels any 9 channels any 4 consecutive channels one of Cosine Table channels one of Cosine Table channels one of Cosine Table channels, recommended is 15 and DTPU bit set ...

Page 4

... Freescale Semiconductor, Inc. AN2519/D Table 2 Table 3 TPU function 3SinDtXor_sync 3SinDtXor_res 3SinDtXor_fault 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 3Sin with Dead-Time Correction – ...

Page 5

... Synchronization Signal or a Resolver Reference Signal channel is used, wait until the HSR bits are cleared to indicate that initialization of the 3SinDtXor_R and 3SinDtXor_T channels has completed and – assign a priority to the 3SinDtXor_sync or 3SinDtXor_res channels to enable their initialization Go to: www.freescale.com AN2519/D Detailed Function Description 5 ...

Page 6

... Freescale Semiconductor, Inc. AN2519/D notifies the CPU that the reload values have been read and new values can be written by clearing the LD_OK parameter. The TPU function rotates the Stator Reference Voltage Vector by dTheta angle each period so that the TPU can drive the motor with constant amplitude and constant speed independently of the CPU ...

Page 7

... For More Information On This Product angle [deg] Figure 3. Cosine function value error Ampl Ampl Ampl XOR XOR XOR XOR DT DT center_time T Go to: www.freescale.com AN2519/D Detailed Function Description top channel bottom channel DT DT center_time ...

Page 8

... Freescale Semiconductor, Inc. AN2519/D negative current negative current AT1 AT1 AT2 AB1 AB1 AB2 Phase A: Positive current Phase B and Phase C similarly with ht Host Interface 3Sin with Dead-Time Correction – XOR version TPU Function Set (3SinDtXor center_time T – T1 channel ...

Page 9

... Host Service Bits (HSR Host Sequence Bits (HSQ) 0 Channel Interrupt Enable 0 Channel Interrupt Status Go to: www.freescale.com AN2519/D Detailed Function Description Options 00 – No Host Service Request 01 – Not used 10 – Not used 11 – Not used xx – Not used x – Not used x – ...

Page 10

... Freescale Semiconductor, Inc. AN2519/D either wait for this interrupt to occur, or poll the LD_OK parameter to check it has cleared. The interrupt is generated at each reload by one of the R channels. The T channels do not generate any interrupts. Channel 10 3Sin with Dead-Time Correction – XOR version TPU Function Set (3SinDtXor) Table 6 ...

Page 11

... Go to: www.freescale.com AN2519/D Detailed Function Description Ttime_BT1 F_chan T_copy Ampl T Ttime_BT2 dTheta_buf_H dTheta_buf_L dTheta_H dTheta_L htB B2_chan_B T1_chan_B T2_chan_B B1a_chan_B B1b_chan_B currentB Ttime_BB2 CPU14 Ttime_CT1 DT 11 ...

Page 12

... Freescale Semiconductor, Inc. AN2519/D Channel Ampl currentA currentB currentC 12 3Sin with Dead-Time Correction – XOR version TPU Function Set (3SinDtXor) Table 6. 3SinDtXor_T and 3SinDtXor_R Parameter RAM Parameter ...

Page 13

... Parameters written by both TPU and CPU 16-bit unsigned integer Parameters written by TPU 32-bit fractional Go to: www.freescale.com AN2519/D Detailed Function Description Description Stator Ref. Voltage Vector angle range <–1, 1) corresponds to ° ° <–180 , 180 ...

Page 14

... Freescale Semiconductor, Inc. AN2519/D PWM period T has to be greater. Get all the other running function states that can be served during one PWM period. Get their lengths (number of IMB clock cycles) and add a time slot transition of 10 IMB clock cycles to each one. Sum all the states lengths including the time slot transition ...

Page 15

... Dead-Time Correction – XOR version TPU Function Set (3SinDtXor) For More Information On This Product SFR to: www.freescale.com AN2519/D Detailed Function Description SFR SFR SFC SFC SFC SFC ...

Page 16

... Freescale Semiconductor, Inc. AN2519/D NOTE: The case that happens is determined by the time when the link comes. 16 3Sin with Dead-Time Correction – XOR version TPU Function Set (3SinDtXor flag0 = 1 link Figure 5. 3SinDtXor_T state diagram and 3 cases of timing For More Information On This Product, Go to: www ...

Page 17

... Dead-Time Correction – XOR version TPU Function Set (3SinDtXor) For More Information On This Product, SFR SFC INIT SFC 0 SFR 0 flag1 = 0 flag1 = 1 – channel with momentary longest high-time Figure 6. 3SinDtXor_R state diagram Go to: www.freescale.com AN2519/D Detailed Function Description th 6 -time C7 5-times STOP HSR = ...

Page 18

... Freescale Semiconductor, Inc. AN2519/D move > 0 move > 0 prescaler = 1 prescaler = 1 move < 0 move < 0 prescaler = 2 prescaler = 2 Synchronized Change The 3SinDtXor_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 3SinDtXor_R function Signal Prescaler at the time the PWM parameters are reloaded ...

Page 19

... Format Parameters written by CPU 16-bit signed integer 16-bit unsigned integer 16-bit unsigned integer Parameters written by TPU Go to: www.freescale.com AN2519/D Detailed Function Description Options xx – Not used 0 – Channel Interrupt Disabled 1 – Channel Interrupt Enabled 0 – Interrupt Not Asserted 1 – Interrupt Asserted ...

Page 20

... Freescale Semiconductor, Inc. AN2519/D Parameter 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

... The 3SinDtXor_res parameters are placed on the CT2 channel to keep the channel parameter space free, available for the table of cosine values. MOTOROLA 3Sin with Dead-Time Correction – XOR version TPU Function Set (3SinDtXor) For More Information On This Product to: www.freescale.com AN2519/D Detailed Function Description 21 ...

Page 22

... Freescale Semiconductor, Inc. AN2519/D move > 0 prescaler = 1 move < 0 prescaler = 2 Synchronized Change The 3SinDtXor_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 Signal parameter to enable this mechanism ...

Page 23

... Table 16. 3SinDtXor_res parameter description Format Parameters written by CPU 16-bit signed integer 16-bit unsigned integer Go to: www.freescale.com AN2519/D Detailed Function Description Options xx – Not used x – Not used x – Not used Description The number of TCR1 TPU cycles to forego (negative) or come after ...

Page 24

... Freescale Semiconductor, Inc. AN2519/D Parameter 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

... Table 18. 3SinDtXor_fault Control Bits Name Channel Function Select 1 0 Channel Priority to: www.freescale.com AN2519/D Detailed Function Description Written by both CPU and TPU Not Used Options 3SinDtXor_fault function number (Assigned during assembly the DPTRAM code from library TPU functions) 00 – Channel Disabled 01 – ...

Page 26

... Freescale Semiconductor, Inc. AN2519/D TPU function 3SinDtXor_fault generates an interrupt when a high to low transition appears. Channel fault_pinstate 26 3Sin with Dead-Time Correction – XOR version TPU Function Set (3SinDtXor) Table 18. 3SinDtXor_fault Control Bits Name Host Service Bits (HSR Host Sequence Bits (HSQ) ...

Page 27

... Dead-Time Correction – XOR version TPU Function Set (3SinDtXor) For More Information On This Product, Table 21. 3SinDtXor_fault State Statistics State Max IMB Clock Cycles INIT 8 FAULT 172 NO_FAULT 4 FAULT Figure 13. 3SinDtXor_fault timing FAULT Figure 14. 3SinDtXor_fault state diagram Go to: www.freescale.com AN2519/D Detailed Function Description RAM Accesses by TPU NO_FAULT NO_FAULT 27 ...

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 AN2519/D Rev. 0 5/2003 For More Information On This Product, ...

Related keywords