AN2367 Freescale Semiconductor / Motorola, AN2367 Datasheet - Page 9

no-image

AN2367

Manufacturer Part Number
AN2367
Description
Using the Multiphase Motor Commutation TPU Function (COMM)with the MPC500 Family
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
2.4.6
This function sets the offset, which is used by the TPU to advance or retard all state switching angles on the
fly. The function has three parameters:
2.4.7
This function returns a value state_no, which represents the current commutation state. The function has two
parameters:
2.4.8
This function starts the sensorless match update sequence. It should be called once the initial commutation
state has been set and the upper, lower and offset parameters written. The function has two parameters:
2.5
The steps necessary for the CPU to configure COMM depend on the mode of operation selected. The
following describes the required sequence of steps:
Sensored Mode
MOTOROLA
1. 1. Call tpu_comm_init_sensored to select and set up the required TPU channels for the COMM
2. 2. Call tpu_comm_force_state to set the COMM channels to the required initial
3. 3. Call tpu_enable (defined in mpc500.c and supplied with the standard header files) to set the
4. 4. Wait for the appropriate bits in the TPU HSRR0 register to clear. This can be checked by calling
5. 5. Initialize the HALLD function.
6. 6. The HALLD function now supplies link requests along with the required STATE_NO value
lower – This value contains the value of the lower angular boundary of the current commutation
state (in position counts).
*tpu – This is a pointer to the TPU3 module to be used. It is of type TPU3_tag, which is defined in
m_tpu3.h
channel – This is the channel selected as the master channel for the COMM function.
offset – This value contains the value of the offset in position counts. This is added to the position
counter value to provide a new value that is used in the position limit tests.
*tpu – This is a pointer to the TPU3 module to be used. It is of type TPU3_tag, which is defined in
m_tpu3.h
channel – This is the channel selected as the master channel for the COMM function.
*tpu – This is a pointer to the TPU3 module to be used. It is of type TPU3_tag, which is defined in
m_tpu3.h
channel – This is the channel selected as the master channel for the COMM function.
function, and initialize the comm_states array and update_period.
commutation-state.
TPU master COMM channel to the required priority.
tpu_get_hsr (defined in mpc500.c and supplied with the standard header files).
when a commutation update is required.
Function Configuration
void tpu_comm_start_update
void tpu_comm_write_offset
INT16 tpu_comm_get_state_no
Using the Multiphase Motor Commutation TPU Function
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
Function Configuration
9

Related parts for AN2367