AN2364 Freescale Semiconductor / Motorola, AN2364 Datasheet - Page 36

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.h
/* Define the maximum parameter table size */
/*#define TABLE_X 3
/*#define TABLE_Y 8
/* Define HSQ values */
#define TPU_TSM_LOCAL_ACC_TBL 0x0
#define TPU_TSM_SPLIT_ACC_TBL 0x1
#define TPU_TSM_ROTATE_ONCE 0x0
#define TPU_TSM_ROTATE_TWICE 0x2
/* Define HSR values */
#define TPU_TSM_NO_HOST 0x0
#define TPU_TSM_INIT_LO 0x1
#define TPU_TSM_INIT_HI 0x2
#define TPU_TSM_HSR_MOV 0x3
/* Define pin state */
#define TPU_TSM_PIN_HIGH 0x8000
#define TPU_TSM_PIN_LOW
/* Define test result values */
#define TPU_TSM_TRUE
#define TPU_TSM_FALSE 0
/* Define parameter RAM locations */
#define TPU_TSM_DESIRED_POSITION
#define TPU_TSM_CURRENT_POSITION
#define TPU_TSM_TABLE
#define TPU_TSM_TABLE_SIZE
#define TPU_TSM_TABLE_INDEX
#define TPU_TSM_SLEW_PERIOD
#define TPU_TSM_S
#define TPU_TSM_START_PERIOD
#define TPU_TSM_A
#define TPU_TSM_PIN_SEQUENCE
/* Define interrupt levels
/* Define the USIU.SIPEND level encodings */
/*
#define TSM_INT_LEVEL0 0x40000000
36
1
0x0000
Freescale Semiconductor, Inc.
Table x value
Table y value
Using the Table Stepper Motor TPU Function
For More Information On This Product,
*/
0
1
2
2
2
3
3
4
4
5
Go to: www.freescale.com
*/
*/
MOTOROLA

Related parts for AN2364