AN2527 Freescale Semiconductor / Motorola, AN2527 Datasheet

no-image

AN2527

Manufacturer Part Number
AN2527
Description
DC Motor with Dead-Time Correction - XOR version TPU Function Set
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Application Note
AN2527/D
Rev. 0, 5/2003
DC Motor with Dead-Time
Correction – XOR version
TPU Function Set
(DCmDtXor)
By Milan Brejl, Ph.D.
Functional Overview
SW1_1
SW1_2
SW2_1
SW2_2
SW3_1
SW3_2
SW4_1
SW4_2
Figure 1. Functionality of XOR version – illustration
The DC Motor with Dead-Time Correction – XOR version (DCmDtXor) TPU
function is a version of the DC Motor with Dead-Time Correction (DCmDt)
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
full range (0% to 100%) of PWM duty-cycle ratios is available. There is no MPW
(minimum pulse width) parameter to limit the edge duty-cycle ratios in this
version, unlike in the DCmDt. 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
Figure
voltage
motor
SW1
SW2
SW3
SW4
1. An advantage of this solution is that the
DT
Positive current
DT
PWM period
center-time
DT
50% PWM
DT
DT
© Motorola, Inc., 2003
DT
Negative current
PWM period
center-time
DT
DT

Related parts for AN2527

AN2527 Summary of contents

Page 1

... Freescale Semiconductor, Inc. Application Note AN2527/D Rev. 0, 5/2003 DC Motor with Dead-Time Correction – XOR version TPU Function Set (DCmDtXor) By Milan Brejl, Ph.D. Functional Overview The DC Motor with Dead-Time Correction – XOR version (DCmDtXor) TPU function is a version of the DC Motor with Dead-Time Correction (DCmDt) function that uses two TPU channels to generate one PWM output channel ...

Page 2

... Freescale Semiconductor, Inc. AN2527/D The dead-time correction technique requires knowledge the instantaneous direction of the motor current. In case of positive motor current, the SW1 high- time and SW4 low-time are equal to the calculated high-times, and the SW2 and SW3 channels control the dead-time. In the case of negative motor current, the SW2 low-time and SW3 high-time are equal to the calculated high-times, and the SW1 and SW4 channels control the dead-time ...

Page 3

... Synchronization Signal for DC Motor with Dead-Time Correction – XOR version (DCmDtXor_sync) Resolver Reference Signal for DC Motor with Dead-Time Correction – XOR version (DCmDtXor_res) Fault Input for DC Motor with Dead-Time Correction – XOR version (DCmDtXor_fault) Figure Go to: www.freescale.com AN2527/D Function Set Configuration 1. The DCmDtXor_T runs on the other 3 ...

Page 4

... Freescale Semiconductor, Inc. AN2527/D Table 1 TPU function DCmDtXor_C DCmDtXor_T DCmDtXor_sync DCmDtXor_res DCmDtXor_fault Table 2 Table 3 TPU function DCmDtXor_C DCmDtXor_sync DCmDtXor_res DCmDtXor_fault 4 DC Motor with Dead-Time Correction – XOR version TPU Function Set (DCmDtXor) MOTOROLA shows the configuration options and restrictions. Table 1. DCmDtXor TPU function set configuration options and ...

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 DCmDtXor_C and DCmDtXor_T channels has completed and – assign a priority to the DCmDtXor_sync or DCmDtXor_res channel to enable its initialization Go to: www.freescale.com AN2527/D Function Set Configuration 5 ...

Page 6

... Freescale Semiconductor, Inc. AN2527/D Detailed Function Description DC Motor with Dead- The DCmDtXor_C and DCmDtXor_T TPU functions work together to generate Time Correction – 4 pairs of XOR gate inputs. The XOR gate outputs then produce a 4-channel XOR version – C 2-phase center-aligned PWM signal with dead-time between the top and channels bottom channels ...

Page 7

... SW1_2 center _ time A T SW2_2 center _ time B T SW3_2 center _ time C T SW4_2 center _ time to: www.freescale.com AN2527/D Detailed Function Description , SW3_2 , SW4_1 and center _ time A T center _ time B ...

Page 8

... Freescale Semiconductor, Inc. AN2527/D Host Interface Motor with Dead-Time Correction – XOR version TPU Function Set (DCmDtXor) MOTOROLA Written By CPU Written By TPU Table 4. DCmDtXor_C Control Bits Name 1 0 Channel Function Select 1 0 Channel Priority 1 0 Host Service Bits (HSR) ...

Page 9

... Go to: www.freescale.com AN2527/D Detailed Function Description Options x – Not used x – Not used XY_X SW13_2_ch_SW1 SW24_1_ch_SW1 SW24_2_ch_SW1 dc T other_ch_SW1 fault_pinstate Ttime_SW1_2 T_copy L center_time DT CPU14 Ttime_SW2_1 current sync_presc_addr Ttime_SW2_2 9 ...

Page 10

... Freescale Semiconductor, Inc. AN2527/D Channel 10 DC Motor with Dead-Time Correction – XOR version TPU Function Set (DCmDtXor) MOTOROLA Table 6. DCmDtXor_C and DCmDtXor_T Parameter RAM Parameter ...

Page 11

... Parameters written by TPU Table 8. DCmDtXor_T State Statistics State Max IMB Clock Cycles to: www.freescale.com AN2527/D Detailed Function Description Description duty-cycle ratio in the range <–1,1) 0 ... positive motor current 1 ... negative motor current PWM period in number of TCR1 TPU cycles ...

Page 12

... Freescale Semiconductor, Inc. AN2527/D Execution times do not include the time slot transition time (TST = IMB clocks) dc > center-time C1 C2 SW1_1 SF SW1_2 SF ST SW2_1 SF SW2_2 C2 SW3_1 SF SW3_2 ST SF SW4_1 SW4_2 flag0 = 1 link Figure 4. DCmDtXor_C and DCmDtXor_T timing 12 DC Motor with Dead-Time Correction – XOR version TPU Function Set (DCmDtXor) MOTOROLA Table 9 ...

Page 13

... MOTOROLA DC Motor with Dead-Time Correction – XOR version TPU Function Set (DCmDtXor) For More Information On This Product flag0 = 1 link Figure 5. DCmDtXor_T state diagram and 3 cases of timing C1 C2 Figure 6. DCmDtXor_C state diagram Go to: www.freescale.com AN2527/D Detailed Function Description ST ST STOP HSR = 11 13 ...

Page 14

... Freescale Semiconductor, Inc. AN2527/D Synchronization The DCmDtXor_sync TPU function uses information obtained from signal for DC Motor DCmDtXor_C and DCmDtXor_T functions, the actual PWM center times and with Dead-Time the PWM periods. This allows a signal to be generated, that tracks the changes Correction – XOR in the PWM period and is always synchronized with the PWM ...

Page 15

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

Page 16

... Freescale Semiconductor, Inc. AN2527/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 then a quarter of the PWM period T. NOTE: Execution times do not include the time slot transition time (TST = IMB ...

Page 17

... TCR1 TPU cycles. MOTOROLA DC Motor with Dead-Time Correction – XOR version TPU Function Set (DCmDtXor) For More Information On This Product center_time center_time T T Figure 8. DCmDtXor_sync timing to: www.freescale.com AN2527/D Detailed Function Description center_time center_time ...

Page 18

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

Page 19

... Table 16. DCmDtXor_res parameter description Format Parameters written by CPU 16-bit signed integer 16-bit unsigned integer Go to: www.freescale.com AN2527/D Detailed Function Description Options xx – Not used x – Not used x – Not used move presc_addr prescaler time dec T_copy Description The number of TCR1 TPU cycles ...

Page 20

... Freescale Semiconductor, Inc. AN2527/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 21

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

Page 22

... Freescale Semiconductor, Inc. AN2527/D TPU function DCmDtXor_fault generates an interrupt when a high to low transition appears. Channel fault_pinstate 22 DC Motor with Dead-Time Correction – XOR version TPU Function Set (DCmDtXor) MOTOROLA Table 18. DCmDtXor_fault Control Bits Name 1 0 Host Service Bits (HSR Host Sequence Bits (HSQ) ...

Page 23

... MOTOROLA DC Motor with Dead-Time Correction – XOR version TPU Function Set (DCmDtXor) For More Information On This Product, Table 21. DCmDtXor_fault State Statistics State Max IMB Clock Cycles INIT 8 FAULT 106 NO_FAULT 4 FAULT Figure 13. DCmDtXor_fault timing FAULT Figure 14. DCmDtXor_fault state diagram Go to: www.freescale.com AN2527/D Detailed Function Description RAM Accesses by TPU 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 AN2527/D Rev. 0 5/2003 For More Information On This Product, ...

Related keywords