Electronic Components Datasheet Search
  British  ▼
ALLDATASHEET.CO.UK

X  

MPXM2102AS Datasheet(PDF) 478 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) 478 Page - Motorola, Inc

Back Button MPXM2102AS Datasheet HTML 474Page - Motorola, Inc 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 478 / 670 page
background image
AN1536
3–332
Motorola Sensor Device Data
www.motorola.com/semiconductors
{
unsigned int cntr;
/* free running timer system counter */
unsigned int r0;
/* difference between cntr and input capture 1 register */
unsigned int r1;
/* difference between cntr and input capture 2 register */
unsigned int r2;
/* difference between cntr and input capture 3 register */
unsigned long difference; /* the difference between the upper and lower
instrument amplifier outputs */
unsigned long int pfs; /* result defined as percent of full scale relative to
the reference voltage */
if (polarity == 1)
/* set the hc4053 configuration */
PORTB &= 0xfe;
/* polarity = 1 means + output of sensor */
else
PORTB |= 0x1;
/* is connected to the upper opamp */
delay();
/* this will allow the hc4053 to stabilize and the cap
to discharge from the previous conversion */
TFLG1=0X07;
/* clear the input capture flags */
cntr=TCNT;
/* get the current count */
PORTA &= 0X7F;
/* turn the fet off */
while ((TFLG1 & 0X7) < 7); /* loop until all three input capture
flags are set */
r0 = TIC1 – cntr;
/* reference voltage */
r1 = TIC2 – cntr;
/* top side of the inst. amp */
r2 = TIC3 – cntr;
/* lower side of the inst. amp */
PORTA |= 0X80;
/* turn the fet on */
if (polarity == 1)
difference = ( r1 + 1000 ) – r2;
else
difference = ( r2 + 1000 ) – r1;
pfs = (difference * 10000) / r0;
if (difference > 32767) /* this will cover up the case
where the a to d computes a
negative value */
pfs=0;
return ( pfs );
}
atod()
/* computes the a/d value in terms of % full scale */
{
unsigned long int x,y,z;
x = convert(1);
/* normal */
y = convert(0);
/* reversed */
z = (x + y)>>1 ;
/* 2x difference / 2
*/
return(z);
/* z is percent of full scale */
}
integrate() /* returns the a/d value in terms of % full scale and computes
offset from calibration values */
{
unsigned long int j;
int i;
j=0;
for (i=0; i<20; ++i)
j +=atod();
j = (j/20) – ADZERO;
/* null out the xdcr zero input offset */
return(j);
}
cala2d()
/* returns the average of 50 raw a/d conversions this is only
used by the calibration functions */
{
unsigned long int j;
int i;
j=0;
for (i=0; i<50; ++i)
{ j +=atod(); }
j=j/50;
return(j);
}
/* ################################################################### */
cvt_bin_dec ( unsigned int arg )
{
char i;
for ( i=0; i < 6; ++i )
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