AN2515 Freescale Semiconductor / Motorola, AN2515 Datasheet

no-image

AN2515

Manufacturer Part Number
AN2515
Description
3-Phase Sine Wave Generator - 3 outputs version TPU Function Set
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Application Note
AN2515/D
Rev. 0, 5/2003
3-Phase Sine Wave
Generator – 3 outputs version
TPU Function Set (3Sin3)
By Milan Brejl, Ph.D.
Functional Overview
Phase A
Phase B
Phase C
Synchronization signal
Resolver reference signal
Fault (input signal)
Figure 1. Signals generated by 3Sin3 TPU function set
The 3-Phase Sine Wave Generator – 3 outputs version (3Sin3) is a variant of
the 3Sin function that, in contrast to 3Sin, generates only the top channel signal
of each PWM pair. The bottom channel signal can be derived from the top
channel signal by external hardware. The function set consists of 4 TPU
functions:
The 3Sin3 TPU function generates a 3-channel 3-phase center-aligned PWM
signal. The generated signals control external hardware, which outputs a pair
of transistor signals (top and bottom) with dead-time inserted.
Freescale Semiconductor, Inc.
For More Information On This Product,
3-Phase Sine Wave Generator – 3 outputs version (3Sin3)
Synchronization signal for 3-Phase Sine Wave Generator – 3 outputs
version (3Sin3_sync)
Resolver Reference Signal for 3-Phase Sine Wave Generator – 3
outputs version (3Sin3_res)
Fault Input for 3-Phase Sine Wave Generator – 3 outputs version
(3Sin3_fault)
Go to: www.freescale.com
FAULT
INITIALIZATION
New
1.6 ms
© Motorola, Inc., 2003

Related parts for AN2515

AN2515 Summary of contents

Page 1

... Freescale Semiconductor, Inc. Application Note AN2515/D Rev. 0, 5/2003 3-Phase Sine Wave Generator – 3 outputs version TPU Function Set (3Sin3) By Milan Brejl, Ph.D. Functional Overview The 3-Phase Sine Wave Generator – 3 outputs version (3Sin3 variant of the 3Sin function that, in contrast to 3Sin, generates only the top channel signal of each PWM pair ...

Page 2

... Freescale Semiconductor, Inc. AN2515/D The Synchronization Signal for the 3Sin3 function can be used to generate one or more adjustable signals for a wide range of uses, which are synchronized to the PWM, and track changes in the PWM period. The Resolver Reference Signal for the 3Sin3 function can be used to generate one or more 50% duty- cycle adjustable signals that are also synchronized to the PWM ...

Page 3

... PWM channels. Issues an HSR type %10 to the 3Sin3_sync channels, 3Sin3_res channels and 3Sin3_fault channel, if used. priority bits. All PWM channels must be assigned the same priority to ensure correct operation. The CPU must ensure that the 3Sin3_sync or Go to: www.freescale.com AN2515/D Function Set Configuration Priority high high high ...

Page 4

... Freescale Semiconductor, Inc. AN2515/D NOTE: A CPU routine that configures the TPU can be generated automatically using the MPC500_Quick_Start Graphical Configuration Tool. Detailed Function Description 3-Phase Sine Wave The 3Sin3 TPU function generates a 3-channel, 3-phase PWM signal. Unlike Generator – 3 3Sin, the generated signals are not top-bottom pairs with dead-times but only outputs version top-like signals without dead-time ...

Page 5

... Sine Wave Generator – 3 outputs version TPU Function Set (3Sin3) For More Information On This Product, Theta dTheta cos Theta cos Theta 120 Figure 2 shows the error of the cosine function value angle [deg] Figure 2. Cosine function value error Go to: www.freescale.com AN2515/D Detailed Function Description ...

Page 6

... Freescale Semiconductor, Inc. AN2515 Phase A: Phase B and Phase C similarly with ht 6 3-Phase Sine Wave Generator – 3 outputs version TPU Function Set (3Sin3) Ampl Ampl Ampl center_time center_tim e low - high ...

Page 7

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

Page 8

... Freescale Semiconductor, Inc. AN2515/D Channel 8 3-Phase Sine Wave Generator – 3 outputs version TPU Function Set (3Sin3) Table 5. 3Sin3 Parameter RAM Parameter fault_pinstate dec ...

Page 9

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

Page 10

... Freescale Semiconductor, Inc. AN2515/D Performance The maximum PWM frequency is 35.4 kHz (PWM period T = 565 at 20MHz TCR1 clock). This can be achieved when only 3Sin3 runs on the TPU and the IMB clock is 40MHz. When other functions run on the same TPU the minimum PWM period T has to be greater. Get all the other enabled function states that can be served during one PWM period ...

Page 11

... Sine Wave Generator – 3 outputs version TPU Function Set (3Sin3) For More Information On This Product, HL 4-times no reload C23456 th 5 HL_RLD th 6 C123456 reload 5-times Figure 4. 3Sin3 state diagram 2 MPW 1 T Figure 5. Go to: www.freescale.com AN2515/D Detailed Function Description LH_C7 STOP -time -time HSR = 11 11 ...

Page 12

... Freescale Semiconductor, Inc. AN2515/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 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 13

... Sine Wave Generator – 3 outputs version TPU Function Set (3Sin3) For More Information On This Product |move| |move| center_time center_time center_time center_time center_time center_time |move| |move| center_time center_time center_time center_time Figure 7. Synchronization signal adjustment examples Go to: www.freescale.com AN2515/D Detailed Function Description center_time center_time ...

Page 14

... Freescale Semiconductor, Inc. AN2515/D Synchronized Change The 3Sin3_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 that is copied to the presc_copy by the 3Sin3 function at the time the PWM Signal Prescaler parameters are reloaded ...

Page 15

... The number of PWM periods per synchronization pulse 16-bit unsigned integer – use in case of asynchronized prescalers change Parameters written by TPU Go to: www.freescale.com AN2515/D Detailed Function Description move pw prescaler presc_copy time dec T_copy Description ...

Page 16

... Freescale Semiconductor, Inc. AN2515/D 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 clocks center_time center_time T T HSR = 10 ...

Page 17

... MOTOROLA 3-Phase Sine Wave Generator – 3 outputs version TPU Function Set (3Sin3) For More Information On This Product, |move| center_time center_time center_time |move| center_time center_time T T Figure 10. Resolver reference signal adjustment examples Go to: www.freescale.com AN2515/D Detailed Function Description center_time T 17 ...

Page 18

... Freescale Semiconductor, Inc. AN2515/D Host Interface 3 2 Channel 18 3-Phase Sine Wave Generator – 3 outputs version TPU Function Set (3Sin3) Written By CPU Written By TPU Table 12. 3Sin3_res Control Bits Name 1 0 Channel Function Select 1 0 Channel Priority 1 0 Host Service Bits (HSR Host Sequence Bits (HSQ) ...

Page 19

... State Max IMB Clock Cycles INIT to: www.freescale.com AN2515/D Detailed Function Description Description The number of TCR1 TPU cycles to forego (negative) or come after (positive) the PWM period center time $00X6, where number of Synchronization Signal channel, to inherit Sync. channel prescaler ...

Page 20

... Freescale Semiconductor, Inc. AN2515/D S1 center_time T HSR = 10 INIT S1 Fault Input for 3- The 3Sin3_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 – 3 further transitions on them. The PWM channels, as well as the synchronization ...

Page 21

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

Page 22

... Freescale Semiconductor, Inc. AN2515/D Channel fault_pinstate Performance NOTE: Execution times do not include the time slot transition time (TST = IMB clocks) 22 3-Phase Sine Wave Generator – 3 outputs version TPU Function Set (3Sin3) Table 17. 3Sin3_fault Parameter RAM Parameter ...

Page 23

... Freescale Semiconductor, Inc. HSR = 10 INIT MOTOROLA 3-Phase Sine Wave Generator – 3 outputs version TPU Function Set (3Sin3) For More Information On This Product, FAULT Figure 13. 3Sin3_fault timing FAULT Figure 14. 3Sin3_fault state diagram Go to: www.freescale.com AN2515/D Detailed Function Description NO_FAULT NO_FAULT 23 ...

Page 24

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

Related keywords