AN2367 Freescale Semiconductor / Motorola, AN2367 Datasheet - Page 14

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
COMM Function Example
}
14
}
}
tpu_halld_set_direction(tpua, 3, HALLD_DIRECTION_1);
for (state = 0; state < 8; state++)
{
}
Using the Multiphase Motor Commutation TPU Function
Freescale Semiconductor, Inc.
For More Information On This Product,
QADC_A.PORTQA.R = state;
/* wait for completion of COMM function service */
while (!((tpua->CISR.R) & (0x0001 << 8)));
tpua->CISR.R = 0;
state_no = tpu_comm_get_state_no(tpua, 8);
QADC_A.PORTQA.R = state;
/* wait for completion of COMM function service */
while (!((tpua->CISR.R) & (0x0001 << 8)));
tpua->CISR.R = 0;
state_no = tpu_comm_get_state_no(tpua, 8);
Go to: www.freescale.com
MOTOROLA

Related parts for AN2367