參數(shù)資料
型號: PC33991DHR2
廠商: FREESCALE SEMICONDUCTOR INC
元件分類: 運(yùn)動控制電子
英文描述: STEPPER MOTOR CONTROLLER, PDSO24
封裝: PLASTIC, SOIC-28
文件頁數(shù): 28/36頁
文件大?。?/td> 660K
代理商: PC33991DHR2
33991
MOTOROLA ANALOG INTEGRATED CIRCUIT DEVICE DATA
34
/*Step15 */
Command_Gauge(0x10,0x00);
/* Null Read to get status */
/* Check SO bit ST4 to see if Gauge 0 has moved */
If((status & 0x10) != 0)
/* If it has moved, then keep track of position */
/* Wait until 24 steps are finished then send a RTZ command (Step 17) */
/* Step 16 */
Command_Gauge(0x80,0x02);
/* Send RTZ to Gauge 0 */
/* Step 17 */
Command_Gauge(0x10,0x00);
/* Null Read to get status */
/* Read Status until RTZ is done */
While ((status & 0x04) != 0)
{Command_Gauge(0x10,0x00);}
/* Step 18 */
Command_Gauge(0x80,0x03);
/* Send RTZ to Gauge 1 */
/* Step 19 */
Command_Gauge(0x10,0x00);
/* Null Read to get status */
/* Read Status until RTZ is done */
While ((status & 0x08) != 0)
{Command_Gauge(0x01,0x00);}
/* Step 20 */
Command_Gauge(0x00,0x00);
/* Disable Gauges and go into Standby */
/* Put device to sleep by setting RSTB to logic 0 */
}
void Command_Gauge(char MSB, char LSB)
/*This subroutine sends the GDIC commands on the SPI port */
{
PORTS = 0x00;
/* Chip select low (active) */
SP0DR = MSB;
/* send first byte of gauge command */
While ((SP0SR & 0x80) == 0);
/* wait for Rxflag (first byte) */
RTZdata = SP0DR;
/* Read status MSB */
SP0DR = LSB;
/* send second byte of command */
While ((SP0SR & 0x80) == 0);
/* wait for Rxflag (second byte) */
status = SP0DR;
/* read status LSB */
PORTS = 0x04;
/* Chip select high (deactivated) */
}
/* Motorola Semiconductor Products Sector */
/* October 4, 2002 */
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
..
.
相關(guān)PDF資料
PDF描述
PC34704BEP 8-CHANNEL POWER SUPPLY MANAGEMENT CKT, QCC56
PCA8802CX8/B/1 SPECIALTY ANALOG CIRCUIT, PBGA8
PCA8802U/2AA/1 SPECIALTY ANALOG CIRCUIT, PBGA8
PCF1252-9TD-T 1-CHANNEL POWER SUPPLY SUPPORT CKT, PDSO8
PCF1252-4TD-T 1-CHANNEL POWER SUPPLY SUPPORT CKT, PDSO8
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PC33991FS 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Analog Products PC33991FS Fact Sheet
PC33991R2 制造商:MOTOROLA 制造商全稱:Motorola, Inc 功能描述:Gauge Driver Integrated Circuit
PC33996EK/R2 制造商:MOTOROLA 制造商全稱:Motorola, Inc 功能描述:16-Output Switch with SPI Control
PC33997 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Analog IC
PC33999EK 制造商:MOTOROLA 制造商全稱:Motorola, Inc 功能描述:16-Output Switch with SPI and PWM Control