AN2364 Freescale Semiconductor / Motorola, AN2364 Datasheet - Page 33

no-image

AN2364

Manufacturer Part Number
AN2364
Description
Using the Table Stepper Motor TPU Function (TSM) with the MPC500 Family
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
tpu_tsm.c
RETURNS
GENERAL NOTES : Level must be incoded according to the SIPEND register.
*******************************************************************************/
int tpu_tsm_int_chk(struct TPU3_tag *tpu, UINT16 channel) {
}
/*******************************************************************************
FUNCTION
PURPOSE
INPUTS NOTES
GENERAL NOTES : Level must be incoded according to the SIPEND register. This
*******************************************************************************/
void tpu_tsm_cisr_clr(struct TPU3_tag *tpu, UINT16 CISR_level) {
/* Clear any existing TPU interrupts
}
/*******************************************************************************
FUNCTION
PURPOSE
INPUTS NOTES
33
return val;
/*
int val;
if (tpu->CISR.R == channel) {
else val = TPU_TSM_FALSE;
tpu->CISR.R = 0x0000;
/* Determine that TPU was the source */
/* Determine the tpu channel interrupt source */
/* Write a "1" to the active pending bit to reset it.
/* A logic bit-wise "OR" between the SIPEND and the
/* level will clear the specific SIPEND level.
tpu->CISR.R &= ~(1 << CISR_level);
}
val = TPU_TSM_TRUE;
: Returns the value TRUE (1) or FALSE (0) as a UINT8.
: tpu_tsm_cisr_clr
: Interrupt clear for TSM cisr register.
: This function has 1 parameter:
: tpu_tsm_mas_chan_cier
: Convert master channel integer into CIER, CISR UINT16 value
: This function has 1 parameter:
channel - The master channel.
level - The interrupt level (0 to 7) as encoded through the
level is 32-bits long (UINT32).
type TPU3_tag which is defined in m_tpu3.h
32-bit SIPEND register.
Freescale Semiconductor, Inc.
Using the Table Stepper Motor TPU Function
For More Information On This Product,
Go to: www.freescale.com
*/
*/
*/
*/
*/
MOTOROLA

Related parts for AN2364