AN2514 Freescale Semiconductor / Motorola, AN2514 Datasheet

no-image

AN2514

Manufacturer Part Number
AN2514
Description
3-Phase Sine Wave Generator TPU Function Set
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Application Note
AN2514/D
Rev. 0, 5/2003
3-Phase Sine Wave
Generator TPU Function Set
(3Sin)
By Milan Brejl, Ph.D.
Functional Overview
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)
Figure 1. Signals generated by 3Sin TPU function set
The 3-Phase Sine Wave Generator (3Sin) TPU function generates a pulse-
width modulated 3-phase sine wave signal for general motor control. The
function set consists of 5 TPU functions:
The 3Sin_top and 3Sin_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 3Sin function can
Freescale Semiconductor, Inc.
For More Information On This Product,
3-Phase Sine Wave Generator – Top (3Sin_top)
3-Phase Sine Wave Generator – Bottom (3Sin_bottom)
Synchronization Signal for 3-Phase Sine Wave Generator (3Sin_sync)
Resolver Reference Signal for 3-Phase Sine Wave Generator
(3Sin_res)
Fault Input for 3-Phase Sine Wave Generator (3Sin_fault)
Go to: www.freescale.com
FAULT
INITIALIZATION
New
1.6 ms
© Motorola, Inc., 2003

Related parts for AN2514

AN2514 Summary of contents

Page 1

... Freescale Semiconductor, Inc. Application Note AN2514/D Rev. 0, 5/2003 3-Phase Sine Wave Generator TPU Function Set (3Sin) By Milan Brejl, Ph.D. Functional Overview The 3-Phase Sine Wave Generator (3Sin) TPU function generates a pulse- width modulated 3-phase sine wave signal for general motor control. The function set consists of 5 TPU functions: • ...

Page 2

... Freescale Semiconductor, Inc. AN2514/D 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 3Sin function can be used to generate one or more 50% duty-cycle adjustable signals that are also synchronized to the PWM ...

Page 3

... Cosine table 2 14 Cosine table 3 15 3Sin_fault + Cosine table 4 Go to: www.freescale.com AN2514/D Function Set Configuration Assignable channels any 3 channels, within each phase a lower TPU channel than the same phase 3Sin_bottom any 3 channels, within each phase a higher TPU channel than the same ...

Page 4

... Freescale Semiconductor, Inc. AN2514/D Table 4 TPU function 4 3-Phase Sine Wave Generator TPU Function Set (3Sin) Table 3. Example of configuration Channel TPU function 0 3Sin_top 1 3Sin_top 2 3Sin_top 3 3Sin_bottom 4 3Sin_bottom 5 3Sin_bottom 10 3Sin_sync 11 3Sin_res 12 Cosine table 1 13 Cosine table 2 14 Cosine table 3 15 3Sin_fault + Cosine table 4 shows the TPU function code sizes ...

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 3Sin_sync or 3Sin_res channels to enable their initialization Go to: www.freescale.com AN2514/D Detailed Function Description 5 ...

Page 6

... Freescale Semiconductor, Inc. AN2514/D PWM periods per reload of new values – are also read at each reload, so these parameters can be changed during run time. Conversely, the dead-time (DT) and the 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 ...

Page 7

... MOTOROLA 3-Phase Sine Wave Generator TPU Function Set (3Sin) For More Information On This Product angle [deg] Figure 2. Cosine function value error Ampl Ampl Ampl to: www.freescale.com AN2514/D Detailed Function Description ...

Page 8

... Freescale Semiconductor, Inc. AN2514/D Phase A: Phase B and Phase C similarly with ht 8 3-Phase Sine Wave Generator TPU Function Set (3Sin top channel top channel bottom channel bottom channel DT DT center_time center_time – top channel center_tim e low - high center_tim e high ...

Page 9

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

Page 10

... Freescale Semiconductor, Inc. AN2514 TPU function 3Sin_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 AN2514/D Detailed Function Description htA HLtime_AT bottom_chan_A center_time 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 dec Ampl sync_presc_addr LHtime_BB HLtime_BB sB min_ht ...

Page 12

... Freescale Semiconductor, Inc. AN2514/D Channel Ampl Theta dTheta T prescaler DT MPW sync_presc_addr 12 3-Phase Sine Wave Generator TPU Function Set (3Sin) Table 7. 3Sin_top and 3Sin_bottom Parameter RAM Parameter Table 8. 3Sin_top and 3Sin_bottom parameter description ...

Page 13

... Table 9. 3Sin_top State Statistics State Max IMB Clock Cycles HL LH_C7 32 Go to: www.freescale.com AN2514/D Detailed Function Description Description 0 ...... CPU can update variables <>0 .. TPU can read variables: $0001 ... load Ampl, dTheta, T and prescaler only $8001 ... load also Theta CPU sets $0001 or $8001, TPU ...

Page 14

... Freescale Semiconductor, Inc. AN2514/D NOTE: Execution times do not include the time slot transition time (TST = IMB clocks top Phase bottom - top Phase B - bottom top Phase C - bottom LH_RLD flag0 = 1 center_time not a reload period Figure 3. 3Sin_top and 3Sin_bottom timing ...

Page 15

... MOTOROLA 3-Phase Sine Wave Generator TPU Function Set (3Sin) For More Information On This Product, flag0 = 0 no reload C23456 LH_RLD reload C123456 ( 2 MPW 1 T Figure 5. Go to: www.freescale.com AN2514/D Detailed Function Description HL LH_C7 LH HL STOP 4-times th -time 5 HSR = -time 5-times DT ...

Page 16

... Freescale Semiconductor, Inc. AN2514/D The MPW is written by the CPU. The MPW depends on the whole TPU unit configuration, especially the lengths of the longest states of the other functions, and their priorities, running on the same TPU. The MPW has to be correctly calculated at the time the whole TPU unit is configured. ...

Page 17

... Sine Wave Generator TPU Function Set (3Sin) For More Information On This Product, Table Figure 6), so that the latency is 32 IMB clock cycles + 10 latency + 12 IMB clock cycles = = 54 IMB clock cycles – to: www.freescale.com AN2514/D Detailed Function Description 9). Its time slot transition is 17 ...

Page 18

... Freescale Semiconductor, Inc. AN2514/D move > 0 move > 0 prescaler = 1 prescaler = 1 move < 0 move < 0 prescaler = 2 prescaler = 2 Synchronized Change The 3Sin_sync TPU function actually uses the presc_copy parameter instead of PWM Prescaler of the prescaler parameter. The prescaler parameter holds the prescaler value And Synchronization ...

Page 19

... Table 13. 3Sin_sync parameter description Format Parameters written by CPU 16-bit signed integer 16-bit unsigned integer Go to: www.freescale.com AN2514/D Detailed Function Description Options 00 – No Host Service Request 01 – Not used 10 – Initialization 11 – Not used xx – Not used 0 – Channel Interrupt Disabled 1 – ...

Page 20

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

... Sine Wave Generator TPU Function Set (3Sin) For More Information On This Product Figure 9. 3Sin_sync state diagram |move| center_time center_time center_time T |move| center_time center_time T Figure 10. Resolver reference signal adjustment examples Go to: www.freescale.com AN2514/D Detailed Function Description T T center_time ...

Page 22

... Freescale Semiconductor, Inc. AN2514/D Synchronized Change The 3Sin_res TPU function can inherit the Synchronization Signal prescaler of PWM 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. Write 0 to disable it, and in this case set Prescaler the prescaler parameter to directly specify prescaler value ...

Page 23

... The number of PWM periods per 10, 12, 14, ... – use when apresc_addr = 0 Parameters written by TPU T move 4 Go to: www.freescale.com AN2514/D Detailed Function Description move presc_addr prescaler time dec T_copy Description to forego (negative) or come after ...

Page 24

... Freescale Semiconductor, Inc. AN2514/D NOTE: Execution times do not include the time slot transition time (TST = IMB clocks) S1 center_time T HSR = 10 INIT S1 Fault Input for 3- The 3Sin_fault is an input TPU function that monitors the pin, and if a high to Phase Sine Wave low transition occurs, immediately sets all PWM channels low and cancels all Generator further transitions on them ...

Page 25

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

Page 26

... Freescale Semiconductor, Inc. AN2514/D Channel fault_pinstate Performance NOTE: Execution times do not include the time slot transition time (TST = IMB clocks) 26 3-Phase Sine Wave Generator TPU Function Set (3Sin) Table 20. 3Sin_fault Parameter RAM Parameter ...

Page 27

... Freescale Semiconductor, Inc. HSR = 10 INIT MOTOROLA 3-Phase Sine Wave Generator TPU Function Set (3Sin) For More Information On This Product, FAULT Figure 13. 3Sin_fault timing FAULT Figure 14. 3Sin_fault state diagram Go to: www.freescale.com AN2514/D Detailed Function Description 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 AN2514/D Rev. 0 5/2003 For More Information On This Product, ...

Related keywords