Electronic Components Datasheet Search
  British  ▼
ALLDATASHEET.CO.UK

X  

MPXM2102AS Datasheet(PDF) 479 Page - Motorola, Inc

Part # MPXM2102AS
Description  Sensor
PDF  670 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MOTOROLA [Motorola, Inc]
Direct Link  http://www.freescale.com
Logo MOTOROLA - Motorola, Inc

MPXM2102AS Datasheet(HTML) 479 Page - Motorola, Inc

Back Button MPXM2102AS Datasheet HTML 475Page - Motorola, Inc MPXM2102AS Datasheet HTML 476Page - Motorola, Inc MPXM2102AS Datasheet HTML 477Page - Motorola, Inc MPXM2102AS Datasheet HTML 478Page - Motorola, Inc MPXM2102AS Datasheet HTML 479Page - Motorola, Inc MPXM2102AS Datasheet HTML 480Page - Motorola, Inc MPXM2102AS Datasheet HTML 481Page - Motorola, Inc MPXM2102AS Datasheet HTML 482Page - Motorola, Inc MPXM2102AS Datasheet HTML 483Page - Motorola, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 479 / 670 page
background image
AN1536
3–333
Motorola Sensor Device Data
www.motorola.com/semiconductors
{
digit[i] = 0;
/* put blanks in all digit positions */
}
for ( i=0; i < 4; ++i )
{
if ( arg
>= dectable [i] )
{
digit[i] = arg /dectable[i];
arg = arg–(digit[i] * dectable[i]);
}
}
digit[i] = arg;
}
/* ################################################################### */
delay()
{
int i;
for (i=0; i<1000; ++i); /* delay about 15 ms. @ 8 mhz xtal */
}
/* ################################################################### */
/* set–up i/o for the single slope a/d, initialize the spi port, then
initialize the MC145453 for output */
init_io(void)
{
char i;
/* set–up i/o for the a/d */
PACTL |= 0X80;
/* make pa7 an output */
PORTA |= 0X80;
/* turn the fet on */
PORTB &= 0X7F;
/* set–up the HC4053 in the Y0/Z0 connect mode */
TCTL2 = 0X2A;
/* capture on falling edge for timer capture 0,1,2 */
TFLG1 = 0X07;
/* clear any pending capture flags */
/* set–up the i/o for the spi subsystem */
PORTD=0x2f;
/* set output low before setting the direction register */
DDRD=0x38;
/* ss = 1, sck = 1, mosi = 1 */
SPCR=0x51;
/* enable spi, make the cpu the master, E clock /4
*/
/* initialize the lcd driver */
for (i=0; i<4; ++i)
/* four bytes of zeros */
{
write_spi(0);
}
write_spi (2);
/* this creates a start bit and data bit 1
for the next write to the mc145453 */
}
/* ################################################################### */
/* this is an attempt at the newton square root method */
sqrt(unsigned long b)
{
unsigned long x0,x1;
if ( b < 4 ) { b=2; return (b); }
else
x0=4;
x1=10;
while (x0 != x1)
{
if( (x1–x0) ==1 ) break;
x1=x0;
x0=(( (b/x0) +x0 ) >> 1 );
}
b=x0;
return (b);
}
/* ################################################################### */
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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


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