Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

PC33991DH/R2 Datasheet(PDF) 32 Page - Motorola, Inc

Part # PC33991DH/R2
Description  Gauge Driver Integrated Circuit
PDF  36 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MOTOROLA [Motorola, Inc]
Direct Link  http://www.freescale.com
Logo MOTOROLA - Motorola, Inc

PC33991DH/R2 Datasheet(HTML) 32 Page - Motorola, Inc

Back Button PC33991DH/R2 Datasheet HTML 28Page - Motorola, Inc PC33991DH/R2 Datasheet HTML 29Page - Motorola, Inc PC33991DH/R2 Datasheet HTML 30Page - Motorola, Inc PC33991DH/R2 Datasheet HTML 31Page - Motorola, Inc PC33991DH/R2 Datasheet HTML 32Page - Motorola, Inc PC33991DH/R2 Datasheet HTML 33Page - Motorola, Inc PC33991DH/R2 Datasheet HTML 34Page - Motorola, Inc PC33991DH/R2 Datasheet HTML 35Page - Motorola, Inc PC33991DH/R2 Datasheet HTML 36Page - Motorola, Inc  
Zoom Inzoom in Zoom Outzoom out
 32 / 36 page
background image
33991
MOTOROLA ANALOG INTEGRATED CIRCUIT DEVICE DATA
32
SAMPLE CODE
/* 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);
/* Enable Gauges */
Command_Gauge(0x00,0x08);
/* Clock Cal bit set */
/* 8 uSec calibration */
PORTS = 0x00;
/* Enable GDIC CS pin - PORTS2 */
For (cnt = 0; cnt < 5; cnt++)
{
/* Wait for 8 uSec calibration */
NOP;
}
PORTS = 0x04;
/* Disable GDIC CS pin - PORTS2 */
/* Step 2 */
Command_Gauge(0xA0,0x21);
/* Send RTZCR values */
Command_Gauge(0x10,0x00);
/* Null Read to get SO status */
/*Check SO bits for Out of Range Clock Calibration */
If ((status & 0x80) != 0)
/*If Clock is out of range then recalibrate 8 uSec pulse */
/* Step 3 */
Command_Gauge(0x40,0x18);
/* Send position to gauge0 */
/* Step 4 */
Command_Gauge(0x60,0x18);
/* Send position to gauge1 */
/* 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 */
/* Step 5 */
Command_Gauge(0x10,0x00);
/* Null Read to get SO 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 7) */
/* Step 6 */
Command_Gauge(0x80,0x02);
/* Send RTZ to Gauge 0 */
/* Step 7 */
Command_Gauge(0x10,0x00);
/* Null Read to get status */
/* Read Status until RTZ is done */
While ((status & 0x04) != 0)
{Command_Gauge(0x10,0x00);}
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com