mc33991dwr2 Freescale Semiconductor, Inc, mc33991dwr2 Datasheet - Page 32

no-image

mc33991dwr2

Manufacturer Part Number
mc33991dwr2
Description
Gauge Driver Integrated Circuit
Manufacturer
Freescale Semiconductor, Inc
Datasheet
32
33991
TIMING DESCRIPTIONS AND DIAGRAMS
SAMPLE CODE
/* Step 8 */
Command_Gauge(0x80,0x03);
/* Step 9 */
Command_Gauge(0x10,0x00);
/* Step 10 */
Command_Gauge(0x23,0xFF);
/* Step 11 */
Command_Gauge(0x4F,0xFF);
/* Step 12 */
Command_Gauge(0x6F,0xFF);
/* Step 13 */
Command_Gauge(0x40,0x00);
Command_Gauge(0x40,0x18);
/* Step 14 */
Command_Gauge(0x60,0x00);
Command_Gauge(0x60,0x18);
/* Read Status until RTZ is done */
While ((status & 0x08) != 0)
/*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 */
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. */
/*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 */
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. */
/* Return the pointers close to zero position */
/* Move the pointer at least 24 microsteps CW to the nearest full step */
/* Return the pointers close to zero position */
/* Move the pointer at least 24 microsteps CW to the nearest full step */
/* 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 */
{Command_Gauge(0x10,0x00);}
/* Send RTZ to Gauge 1 */
/* Null Read to get status */
/* Send velocity */
/* Send position to gauge0 */
/* Send position to gauge1 */
/* Send position to Gauge 0 */
/* Send position to Gauge 0 */
/* Send position to Gauge 1 */
/* Send position to Gauge 1 */
Analog Integrated Circuit Device Data
Freescale Semiconductor

Related parts for mc33991dwr2