MOTOROLA ANALOG INTEGRATED CIRCUIT DEVICE DATA
33991
33
/* Step 8 */
Command_Gauge
(0x80,0x03);
/* Send RTZ to Gauge 1 */
/* Step 9 */
Command_Gauge
(0x10,0x00);
/* Read Status until RTZ is done */
While
((status & 0x08) != 0)
{
Command_Gauge
(0x10,0x00);}
/* Null Read to get status */
/* Step 10 */
Command_Gauge
(0x23,0xFF);
/* Send velocity */
/* Step 11 */
Command_Gauge
(0x4F,0xFF);
/*Check SO bits for Out of Range Vpwr and Overtemperature */
If
((status & 0x40) != 0)
/* If bit ST6 is logic 1 then RTZ after valid Vpwr */
/* Send position to gauge0 */
If
((status & 0x01) != 0)
/* If bit ST0 is logic 1 then enable driver again.
/* If ST0 continues to indicate over temperature, then shut down Gauge 0. */
/* If ST2 returns to normal, then reestablish the zero reference by RTZ command. */
/* Step 12 */
Command_Gauge
(0x6F,0xFF);
/*Check SO bits for Out of Range Vpwr and Over-Temperature */
If
((status & 0x40) != 0)
/* If bit ST6 is logic 1 then RTZ after valid Vpwr */
/* Send position to gauge1 */
If
((status & 0x01) != 0)
/* If bit ST0 is logic 1 then enable driver again.
/* If ST0 continues to indicate Over-Temperature, then shut down Gauge 1. */
/* If ST2 returns to normal, then reestablish the zero reference by RTZ command. */
/* Step 13 */
Command_Gauge
(0x40,0x00);
/* Return the pointers close to zero position */
Command_Gauge
(0x40,0x18);
/* Move the pointer at least 24 microsteps CW to the nearest full step */
/* Send position to Gauge 0 */
/* Send position to Gauge 0 */
/* Step 14 */
Command_Gauge
(0x60,0x00);
/* Return the pointers close to zero position */
Command_Gauge
(0x60,0x18);
/* Move the pointer at least 24 microsteps CW to the nearest full step */
/* Send position to Gauge 1 */
/* Send position to Gauge 1 */
/* Check SO bit ST4 to see if Gauge 0 has moved */
If
((status & 0x10) != 0)
/* If ST4 is logic 1 then Gauge 0 has moved to the first microstep */
F
Freescale Semiconductor, Inc.
Go to: www.freescale.com
n
.