AN2515 Freescale Semiconductor / Motorola, AN2515 Datasheet - Page 3

no-image

AN2515

Manufacturer Part Number
AN2515
Description
3-Phase Sine Wave Generator - 3 outputs version TPU Function Set
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Configuration Order
MOTOROLA
3-Phase Sine Wave Generator – 3 outputs version TPU Function Set (3Sin3)
Table 2
Table 3
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, prescaler, MPW,
4. Issues an HSR (Host Service Request) type %10 to one of the 3Sin3
5. Enables servicing by assigning high, middle or low priority to the channel
Freescale Semiconductor, Inc.
TPU function
For More Information On This Product,
3Sin3_sync
3Sin3_fault
3Sin3_res
channel used (not necessary after reset).
function numbers to the channel function select bits.
Theta_H, Theta_L and sync_presc_addr must be set before
initialization. 32 cosine table values must be set. If an 3Sin3_sync
channel or an 3Sin3_res channel is used, then its parameters must also
be set before initialization.
channels to initialize all 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
shows an example of configuration.
Channel
shows the TPU function code sizes.
3Sin3
10
12
13
14
15
11
0
1
2
Go to: www.freescale.com
Table 2. Example of configuration
Table 3. TPU function code sizes
3Sin3_fault + Cosine table 4
198 µ instructions + 8 entries = 206 long words
26 µ instructions + 8 entries = 34 long words
38 µ instructions + 8 entries = 46 long words
12 µ instructions + 8 entries = 20 long words
Cosine table 1
Cosine table 2
Cosine table 3
TPU function
3Sin3_sync
3Sin3_res
3Sin3
3Sin3
3Sin3
Code size
Function Set Configuration
Priority
none
none
none
high
high
high
high
low
low
AN2515/D
3

Related parts for AN2515