AN2517 Freescale Semiconductor / Motorola, AN2517 Datasheet

no-image

AN2517

Manufacturer Part Number
AN2517
Description
3-Phase Sine Wave Generator with Dead-Time Correction TPU Function Set
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Application Note
AN2517/D
Rev. 0, 5/2003
3-Phase Sine Wave
Generator with Dead-Time
Correction TPU Function Set
(3SinDt)
By Milan Brejl, Ph.D.
Functional Overview
The 3-Phase Sine Wave Generator with Dead-Time Correction TPU function
set (3SinDt) extends the functionality of the 3-Phase Sine Wave Generator
TPU function set (3Sin) by the dead-time correction technique. Except for this,
its functionality is the same in all aspects.
The dead-time correction technique requires knowledge of the instantaneous
direction of the 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. See
Freescale Semiconductor, Inc.
For More Information On This Product,
In case of positive current:
In case of negative current:
Go to: www.freescale.com
Figure 1. Dead-Time Correction Technique
Figure
DT
DT
calculated
high-time
1.
DT
DT
top channel
bottom channel
top channel
bottom channel
© Motorola, Inc., 2003

Related parts for AN2517

AN2517 Summary of contents

Page 1

... Freescale Semiconductor, Inc. Application Note AN2517/D Rev. 0, 5/2003 3-Phase Sine Wave Generator with Dead-Time Correction TPU Function Set (3SinDt) By Milan Brejl, Ph.D. Functional Overview The 3-Phase Sine Wave Generator with Dead-Time Correction TPU function set (3SinDt) extends the functionality of the 3-Phase Sine Wave Generator TPU function set (3Sin) by the dead-time correction technique ...

Page 2

... Freescale Semiconductor, Inc. AN2517/D The function set consists of 5 TPU functions: • • • • • The 3SinDt_top and 3SinDt_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 3SinDt function 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 ...

Page 3

... Go to: www.freescale.com AN2517/D Function Set Configuration Table 2 and Assignable channels any 3 channels, within each phase a lower TPU channel then the same phase 3SinDt_bottom any 3 channels, within each phase a higher TPU channel then the same ...

Page 4

... Freescale Semiconductor, Inc. AN2517/D Table 2 4 3-Phase Sine Wave Generator with Dead-Time Correction TPU Function Set (3SinDt) MOTOROLA and Table 3 show two examples of configuration. Table 2. Example of configuration Channel TPU function 0 3SinDt_top 1 3SinDt_bottom 2 3SinDt_top 3 3SinDt_bottom 4 3SinDt_top 5 3SinDt_bottom 10 3SinDt_sync 12 Cosine table 1 13 Cosine table 2 ...

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 PWM channels has completed and – assign a priority to the 3SinDt_sync or 3SinDt_res channels to enable their initialization Go to: www.freescale.com AN2517/D Function Set Configuration Code size 5 ...

Page 6

... Freescale Semiconductor, Inc. AN2517/D Detailed Function Description 3-Phase Sine Wave The 3SinDt_top and 3SinDt_bottom TPU functions work together to generate Generator with a 6-channel, 3-phase PWM signal, with dead-time between the top and bottom Dead-Time channels. In order to charge the bootstrap transistors, the PWM signals start to Correction – ...

Page 7

... MOTOROLA 3-Phase Sine Wave Generator with Dead-Time Correction TPU Function Set (3SinDt) For More Information On This Product, Figure 3 shows the error of the cosine function value angle [deg] Figure 3. Cosine function value error Ampl Ampl Ampl to: www.freescale.com AN2517/D Detailed Function Description ...

Page 8

... Freescale Semiconductor, Inc. AN2517/D Phase A: Positive current bottom channel Phase B and Phase C similarly with ht 8 3-Phase Sine Wave Generator with Dead-Time Correction TPU Function Set (3SinDt) MOTOROLA ht positive current DT negative current DT center_time top channel center_tim e low - high center_tim ...

Page 9

... Host Service Bits (HSR Host Sequence Bits (HSQ) 0 Channel Interrupt Enable 0 Channel Interrupt Status Go to: www.freescale.com AN2517/D Detailed Function Description Written by both CPU and TPU Not Used Options 3SinDt_top function number (Assigned during assembly the DPTRAM code from library TPU functions) 00 – ...

Page 10

... Freescale Semiconductor, Inc. AN2517 TPU function 3SinDt_bottom generates an interrupt when the current values of Ampl, dTheta (optionally also Theta), T and prescaler have been read by the TPU and indicates to the CPU that it can write new variables. The CPU program can either wait for this interrupt to occur, or poll the LD_OK parameter to check it has cleared ...

Page 11

... Go to: www.freescale.com AN2517/D Detailed Function Description htA HLtime_AT bottom_chan_A currentA LD_OK TA_buf fault_pinstate LHtime_AB HLtime_AB sA T_copy Theta_H Theta_L Theta_buf_H Theta_buf_L htB HLtime_BT bottom_chan_B currentB Ampl sync_presc_addr LHtime_BB HLtime_BB sB min_ht ...

Page 12

... Freescale Semiconductor, Inc. AN2517/D Channel Ampl Theta dTheta currentA currentB currentC T prescaler DT MPW 12 3-Phase Sine Wave Generator with Dead-Time Correction TPU Function Set (3SinDt) MOTOROLA Table 7. 3SinDt_top and 3SinDt_bottom Parameter RAM Parameter ...

Page 13

... Parameter Format 8-bit unsigned integer Parameters written by both TPU and CPU 16-bit unsigned integer Parameters written by TPU 32-bit fractional Go to: www.freescale.com AN2517/D Detailed Function Description Description address of synchronization channel prescaler parameter: $X4, where X is synchronization channel number synchronization channel is used. ...

Page 14

... Freescale Semiconductor, Inc. AN2517/D NOTE: Execution times do not include the time slot transition time (TST = IMB clocks) 14 3-Phase Sine Wave Generator with Dead-Time Correction TPU Function Set (3SinDt) MOTOROLA Table 9. 3SinDt_top State Statistics State Max IMB Clock Cycles HL LH_C7 Table 10. 3SinDt_bottom State Statistics ...

Page 15

... LH_RLD and C1, C2, C3, C4, C5, C6 states. MOTOROLA 3-Phase Sine Wave Generator with Dead-Time Correction TPU Function Set (3SinDt) For More Information On This Product, LH_C7 HL LH_C7 HL LH_C7 HL HL LH_RLD T Go to: www.freescale.com AN2517/D Detailed Function Description HL LH_C7 LH_C7 ...

Page 16

... Freescale Semiconductor, Inc. AN2517/D - top Phase A - bottom - top Phase B - bottom - top Phase C flag0 = 1 flag0 = 1 - bottom INIT flag0 = 1 HSR = 10 Figure 5. 3SinDt_top and 3SinDt_bottom state diagram 16 3-Phase Sine Wave Generator with Dead-Time Correction TPU Function Set (3SinDt) MOTOROLA flag0 = 0 no reload LH_RLD reload ...

Page 17

... MOTOROLA 3-Phase Sine Wave Generator with Dead-Time Correction TPU Function Set (3SinDt) For More Information On This Product MPW 1 T Figure 6. 3KDVH 6LQH :DYH *HQHUDWLRQ  OLPLWDWLRQ                    DQJOH Figure 6. Effect of limitation Go to: www.freescale.com AN2517/D Detailed Function Description uh†rÃ6 uh†rÃ6 uh†rÃ7 uh†rÃ7 uh†rÃ8 uh†rÃ8       17 ...

Page 18

... Freescale Semiconductor, Inc. AN2517/D top channel top channel bottom channel bottom channel When 3SinDt_top and 3SinDt_bottom are running alone on one TPU, the minimum pulse width can be calculated according to the worst case timing. The bottom channel low to high transition runs the HL state that sets the following high to low transition. The HL state lasts 2 IMB clock cycles (see (TST), which takes 10 IMB clock cycles ...

Page 19

... WCL value within all 3SinDt PWM channels. Convert the number, from IMB clock cycles to TCR1 clock cycles, to get the MPW. MOTOROLA 3-Phase Sine Wave Generator with Dead-Time Correction TPU Function Set (3SinDt) For More Information On This Product, Go to: www.freescale.com AN2517/D Detailed Function Description 19 ...

Page 20

... Freescale Semiconductor, Inc. AN2517/D Synchronization The 3SinDt_sync TPU function uses information obtained from 3SinDt PWM signal for 3-Phase functions, the actual PWM center times and the PWM periods. This allows a Sine Wave signal to be generated, which tracks the changes in the PWM period and is Generator with always synchronized with the PWM ...

Page 21

... Host Service Bits (HSR Host Sequence Bits (HSQ) 0 Channel Interrupt Enable 0 Channel Interrupt Status Go to: www.freescale.com AN2517/D Detailed Function Description Written by both CPU and TPU Not Used Options 3SinDt_sync function number (Assigned during assembly the DPTRAM code from library TPU functions) 00 – ...

Page 22

... Freescale Semiconductor, Inc. AN2517/D Channel Parameter move pw prescaler presc_copy Other parameters are just for TPU function inner use. 22 3-Phase Sine Wave Generator with Dead-Time Correction TPU Function Set (3SinDt) MOTOROLA Table 12. 3SinDt_sync Parameter RAM Parameter ...

Page 23

... For More Information On This Product, move Table 14. 3SinDt_sync State Statistics State Max IMB Clock Cycles INIT center_time center_time T T Figure 9. 3SinDt_sync timing to: www.freescale.com AN2517/D Detailed Function Description T 4 RAM Accesses by TPU center_time center_time ...

Page 24

... Freescale Semiconductor, Inc. AN2517/D Resolver Reference The 3SinDt_res TPU function uses information read from the 3SinDt PWM Signal for 3-Phase functions, the actual PWM center times and the PWM periods. This allows a Sine Wave signal to be generated, which tracks the changes of the PWM period and is Generator with always synchronized with the PWM ...

Page 25

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

Page 26

... Freescale Semiconductor, Inc. AN2517/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 27

... MOTOROLA 3-Phase Sine Wave Generator with Dead-Time Correction TPU Function Set (3SinDt) For More Information On This Product, S3 center_time T Figure 12. 3SinDt_res timing S3 Figure 13. 3SinDt_res state diagram Go to: www.freescale.com AN2517/D Detailed Function Description S1 center_time T 27 ...

Page 28

... Freescale Semiconductor, Inc. AN2517/D Host Interface 3 2 TPU function 3SinDt_fault generates an interrupt when a high to low transition appears. 28 3-Phase Sine Wave Generator with Dead-Time Correction TPU Function Set (3SinDt) MOTOROLA Written By CPU Written By TPU Table 19. 3SinDt_fault Control Bits Name 1 0 Channel Function Select ...

Page 29

... Table 21. 3SinDt_fault parameter description Parameter Format Parameters written by TPU Table 22. 3SinDt_fault State Statistics State Max IMB Clock Cycles INIT FAULT 44 NO_FAULT Figure 14. 3SinDt_fault timing Go to: www.freescale.com AN2517/D Detailed Function Description Description State of fault pin: 0 ... low 1 ... high RAM Accesses by TPU FAULT NO_FAULT ...

Page 30

... Freescale Semiconductor, Inc. AN2517/D HSR = 10 INIT 30 3-Phase Sine Wave Generator with Dead-Time Correction TPU Function Set (3SinDt) MOTOROLA FAULT Figure 15. 3SinDt_fault state diagram For More Information On This Product, Go to: www.freescale.com NO_FAULT ...

Page 31

... Freescale Semiconductor, Inc. MOTOROLA 3-Phase Sine Wave Generator with Dead-Time Correction TPU Function Set (3SinDt) For More Information On This Product, Go to: www.freescale.com AN2517/D Detailed Function Description 31 ...

Page 32

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

Related keywords