AN2525 Freescale Semiconductor / Motorola, AN2525 Datasheet - Page 4

no-image

AN2525

Manufacturer Part Number
AN2525
Description
DC Motor - XOR version TPU Function Set
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2525/D
Configuration Order
4
NOTE:
Table 3
The CPU configures the TPU as follows.
A CPU routine that configures the TPU can be generated automatically using
the MPC500_Quick_Start Graphical Configuration Tool.
DC Motor – XOR version TPU Function Set (DCmXor)
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. Issues an HSR (Host Service Request) type %10 to one of the
5. Enables servicing by assigning high, middle or low priority to the channel
Freescale Semiconductor, Inc.
DCmXor_sync
TPU function
DCmXor_fault
DCmXor_res
For More Information On This Product,
DCmXor_C
DCmXor_T
channel used (not necessary after reset).
function numbers to the channel function select bits.
sync_presc_addr must be set before initialization. If a DCmXor_sync
channel or a DCmXor_res channel is used, then its parameters must
also be set before initialization.
DCmXor_C channels to initialize all DCmXor_C and DCmXor_T
channels. Issues an HSR type %10 to the DCmXor_sync channels,
DCmXor_res channels and DCmXor_fault channel, if used.
priority bits. All DCmXor_C and DCmXor_T channels must be assigned
the same priority to ensure correct operation. The CPU must ensure that
the DCmXor_sync or DCmXor_res function is initialized after the
initialization of DCmXor:
shows the TPU function code sizes.
assign a priority to the DCmXor_C and DCmXor_T channels to
enable their initialization
if a Synchronization Signal or a Resolver Reference Signal channel
is used, wait until the HSR bits are cleared to indicate that
initialization of the DCmXor_C and DCmXor_T channels has
completed and
assign a priority to the DCmXor_sync or DCmXor_res channel to
enable its initialization
Go to: www.freescale.com
Table 3. TPU function code sizes
134 µ instructions + 8 entries = 142 long words
26 µ instructions + 8 entries = 34 long words
38 µ instructions + 8 entries = 46 long words
9 µ instructions + 8 entries = 17 long words
3 µ instructions + 8 entries = 11 long words
Code size
MOTOROLA

Related parts for AN2525