MCZ33991EG Freescale, MCZ33991EG Datasheet - Page 31

MCZ33991EG

Manufacturer Part Number
MCZ33991EG
Description
Manufacturer
Freescale
Datasheet

Specifications of MCZ33991EG

Operating Current
6mA
Operating Temperature Classification
Automotive
Package Type
SOIC W
Operating Supply Voltage (min)
4.5V
Operating Supply Voltage (typ)
5V
Operating Supply Voltage (max)
5.5V
Lead Free Status / RoHS Status
Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MCZ33991EG
Manufacturer:
FREESCALE
Quantity:
20 000
Analog Integrated Circuit Device Data
Freescale Semiconductor
/* The following example code demonstrates a typical set up configuration for a M68HC912B32. */
/* This code is intended for instructional use only. Motorola assumes no liability for use or */
/* modification of this code. It is the responsibility of the user to verify all parameters, variables,*/
/* timings, etc. */
void InitGauges(void)
{
/* Step 1 */
Command_Gauge(0x00,0x03);
Command_Gauge(0x00,0x08);
/* Step 2 */
Command_Gauge(0xA0,0x21);
Command_Gauge(0x10,0x00);
/* Step 3 */
Command_Gauge(0x40,0x18);
/* Step 4 */
Command_Gauge(0x60,0x18);
/* Step 5 */
Command_Gauge(0x10,0x00);
/* Step 6 */
Command_Gauge(0x80,0x02);
/* Step 7 */
Command_Gauge(0x10,0x00);
/* 8 uSec calibration */
PORTS = 0x00;
For (cnt = 0; cnt < 5; cnt++)
{
}
PORTS = 0x04;
/*Check SO bits for Out of Range Clock Calibration */
If ((status & 0x80) != 0)
/*If Clock is out of range then recalibrate 8 uSec pulse */
/* 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 */
/* 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 7) */
/* Read Status until RTZ is done */
While ((status & 0x04) != 0)
NOP;
{Command_Gauge(0x10,0x00);}
SAMPLE CODE
/* Enable Gauges */
/* Clock Cal bit set */
/* Enable GDIC CS pin - PORTS2 */
/* Wait for 8 uSec calibration */
/* Disable GDIC CS pin - PORTS2 */
/* Send RTZCR values */
/* Null Read to get SO status */
/* Send position to gauge0 */
/* Send position to gauge1 */
/* Null Read to get SO status */
/* Send RTZ to Gauge 0 */
/* Null Read to get status */
TIMING DESCRIPTIONS AND DIAGRAMS
SAMPLE CODE
33991
31

Related parts for MCZ33991EG