AN2525 Freescale Semiconductor / Motorola, AN2525 Datasheet

no-image

AN2525

Manufacturer Part Number
AN2525
Description
DC Motor - XOR version TPU Function Set
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Application Note
AN2525/D
Rev. 0, 5/2003
DC Motor – XOR version TPU
Function Set (DCmXor)
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 – XOR version (DCmXor) TPU function is a version of the DC
Motor (DCm) 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
is that the 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 DCm. 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
voltage
motor
SW1
SW2
SW3
SW4
DT
Figure
DT
PWM period
center-time
1. An advantage of this solution
DT
50% PWM
DT
DT
© Motorola, Inc., 2003
DT
PWM period
center-time
DT
DT

Related parts for AN2525

AN2525 Summary of contents

Page 1

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

Page 2

... Freescale Semiconductor, Inc. AN2525/D The function set consists of 5 TPU functions: • • • • • The DCm TPU function set drives a DC Motor, independently of the CPU. The CPU is required only to set a duty-cycle (dc) parameter in the range (–1,1). This determines both the speed and the direction. The function generates unipolar- switched center-aligned PWM signals ...

Page 3

... DCmXor_T 3 DCmXor_T 4 DCmXor_C 5 DCmXor_T 6 DCmXor_T 7 DCmXor_T 10 DCmXor_sync 11 DCmXor_res 15 DCmXor_fault Go to: www.freescale.com AN2525/D Function Set Configuration Figure 1. The Assignable channels any 2 channels any 6 channels any channels any channels any, recommended is 15 and DTPU bit set Priority high high high high high high ...

Page 4

... Freescale Semiconductor, Inc. AN2525/D Table 3 TPU function DCmXor_sync DCmXor_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, DT and 4 ...

Page 5

... DC Motor – XOR version TPU Function Set (DCmXor) For More Information On This Product PWM period PWM period center-time center-time Figure 2. Unipolar switching Go to: www.freescale.com AN2525/D Detailed Function Description 0.5 PWM period PWM period center-time center-time ...

Page 6

... Freescale Semiconductor, Inc. AN2525/D The following equations describe how the PWM signal transition times SW1_1 SW4_2 Tdc SW1_1 SW2_1 SW3_1 SW4_1 6 DC Motor – XOR version TPU Function Set (DCmXor) , SW1_2 , SW2_1 , SW2_2 are calculated Tdc ...

Page 7

... Channel Priority 1 0 Host Service Bits (HSR Host Sequence Bits (HSQ) Go to: www.freescale.com AN2525/D Detailed Function Description Written by both CPU and TPU Not Used Options DCmXor_C function number (Assigned during assembly the DPTRAM code from library TPU functions) 00 – Channel Disabled 01 – ...

Page 8

... Freescale Semiconductor, Inc. AN2525/D Channel 8 DC Motor – XOR version TPU Function Set (DCmXor) Table 5. DCmXor_T Control Bits Name 0 Channel Interrupt Enable 0 Channel Interrupt Status Table 6. DCmXor_C and DCmXor_T Parameter RAM Parameter ...

Page 9

... Table 6. DCmXor_C and DCmXor_T Parameter RAM Parameter to: www.freescale.com AN2525/D Detailed Function Description XY_Y SW13_2_ch_SW3 SW24_1_ch_SW3 SW24_2_ch_SW3 other_ch_SW3 Ttime_SW3_2 Ttime_SW4_1 Ttime_SW4_2 9 ...

Page 10

... Freescale Semiconductor, Inc. AN2525 CPU14 sync_presc_addr fault_pinstate Other parameters are just for TPU function inner use. Performance 10 DC Motor – XOR version TPU Function Set (DCmXor) Table 7. DCmXor_C and DCmXor_T parameter description Parameter Format Parameters written by CPU 16-bit fractional 16-bit unsigned integer ...

Page 11

... SW4_1 SW4_2 flag0 = 1 link Figure 3. DCmXor_C and DCmXor_T timing MOTOROLA DC Motor – XOR version TPU Function Set (DCmXor) For More Information On This Product to: www.freescale.com AN2525/D Detailed Function Description dc < center-time ...

Page 12

... Freescale Semiconductor, Inc. AN2525/D NOTE: The timing of the link determines which case accurs. INIT HSR = Motor – XOR version TPU Function Set (DCmXor flag0 = 1 link Figure 4. DCmXor_T state diagram and 3 cases of timing C1 Figure 5. DCmXor_C state diagram For More Information On This Product, Go to: www ...

Page 13

... DC Motor – XOR version TPU Function Set (DCmXor) 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 6. Synchronization signal adjustment examples Go to: www.freescale.com AN2525/D Detailed Function Description center_time center_time ...

Page 14

... Freescale Semiconductor, Inc. AN2525/D Host Interface 3 2 TPU function DCmXor_sync generates an interrupt after each low to high transition. Channel 14 DC Motor – XOR version TPU Function Set (DCmXor) Written By CPU Written By TPU Table 10. DCmXor_sync Control Bits Name 1 0 Channel Function Select 1 0 Channel Priority ...

Page 15

... Max IMB Clock Cycles INIT to: www.freescale.com AN2525/D Detailed Function Description Description The number of TCR1 TPU cycles to forego (negative) or come after (positive) the PWM period center time Synchronization pulse width in number of TCR1 TPU cycles. The number of PWM periods per synchronization pulse – ...

Page 16

... Freescale Semiconductor, Inc. AN2525 center_time center_time T T HSR = 10 HSR = 10 INIT INIT Motor – XOR version TPU Function Set (DCmXor center_time center_time T T Figure 7. DCmXor_sync timing Figure 8. DCmXor_sync state diagram For More Information On This Product, Go to: www ...

Page 17

... MOTOROLA DC Motor – XOR version TPU Function Set (DCmXor) For More Information On This Product, |move| center_time center_time center_time |move| center_time center_time T T Figure 9. Resolver reference signal adjustment examples Go to: www.freescale.com AN2525/D Detailed Function Description center_time T 17 ...

Page 18

... Freescale Semiconductor, Inc. AN2525/D Host Interface 3 2 Channel 18 DC Motor – XOR version TPU Function Set (DCmXor) Written By CPU Written By TPU Table 14. DCmXor_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 AN2525/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. AN2525/D S1 center_time T HSR = 10 INIT S1 Fault Input for DC The DCmXor_fault is an input TPU function that monitors the pin, and if a high Motor – XOR version to low transition occurs, immediately sets all PWM channels low and cancels (DCmXor_fault) all further transitions on them. The PWM channels, as well as the synchronization and resolver reference signal channels (if used), have to be initialized again to start them running ...

Page 21

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

Page 22

... Freescale Semiconductor, Inc. AN2525/D Channel fault_pinstate Performance NOTE: Execution times do not include the time slot transition time (TST = IMB clocks Motor – XOR version TPU Function Set (DCmXor) Table 19. DCmXor_fault Parameter RAM Parameter ...

Page 23

... Freescale Semiconductor, Inc. HSR = 10 INIT MOTOROLA DC Motor – XOR version TPU Function Set (DCmXor) For More Information On This Product, FAULT Figure 12. DCmXor_fault timing FAULT Figure 13. DCmXor_fault state diagram Go to: www.freescale.com AN2525/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 AN2525/D Rev. 0 5/2003 For More Information On This Product, ...

Related keywords