Electronic Components Datasheet Search
  British  ▼
ALLDATASHEET.CO.UK

X  

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

Back Button MPXM2102AS Datasheet HTML 473Page - Motorola, Inc 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 477 / 670 page
background image
AN1536
3–331
Motorola Sensor Device Data
www.motorola.com/semiconductors
NOTE. THIS
WAS COMPILED WITH A COMPILER COURTESY OF:
INTROL CORP.
9220 W. HOWARD AVE.
MILWAUKEE, WI. 53228
PHONE (414) 327–7734.
SOME SOURCE CODE CHANGES MAY BE NECESSARY FOR COMPILATION WITH OTHER COMPILERS.
THE HEADER FILE io6811.h HAS I/O PORT DEFINITIONS FOR THE I/O PORTS PARTICULAR TO THE MC68HC711E9. A TYPICAL ENTRY FOR
PORT A WILL FOLLOW. THE FIRST LINE ESTABLISHES A BASE ADDRESS BY WHICH ALL I/O FACILITIES AND COUNTERS ARE BIASED.
REFER TO THE
MC68HC711E9 DATA FOR MORE INFORMATION RELATIVE TO I/O AND TIMER ADDRESSES.
#define
IOBIAS 0x1000
/* BASE ADDRESS OF THE I/O FOR THE 68HC11 */
#define PORTA (* (char *) (IOBIAS + 0))
/* PORT A */
THE STARTUP ROUTINE NEED ONLY LOAD THE STACK TO THE TOP OF RAM, ZERO
THE MICROCONTROLLER’S RAM AND PERFORM A BSR MAIN (BRANCH TO SUBROUTINE “MAIN”).
THIS SOURCE CODE, HEADER FILE, COMPILED OBJECT CODE, AND LISTING FILES ARE AVAILABLE ON:
THE MOTOROLA FREEWARE LINE
AUSTIN, TX.
(512) 891–3733.
Bill Lucas 6/21/90
THE CODE STARTS HERE
*/
#include <io6811.h>
/*
I/O port definitions */
/* define locations in the eeprom to store calibration information */
#define EEPROM (char*)0xb600 /* used by calibration functions */
#define EEBASE 0xb600 /* start address of the eeprom */
#define ADZERO (* ( long int *)( EEBASE + 0 )) /* auto zero value */
#define HIATOD (* ( long int *)( EEBASE + 4 )) /* full scale measured input */
#define XDCRMAX (* ( char *)( EEBASE + 8 )) /* full scale input of the xdcr */
union bytes {
unsigned long int l;
char b[4];
};
/* ADZERO.l for long word
ADZERO.b[0]; for byte */
const char lcdtab[] = { 95,
6,
59,
47, 102, 109, 125, 7, 127, 111,
0
};
/*
lcd pattern table
0
1
2
3
4
5
6
7
8
9
blank */
const int dectable[] = { 10000, 1000, 100, 10 };
char digit[5]; /* buffer to hold results from cvt_bin_dec function */
/* ################################################################### */
/* real time interrupt service routine
*/
void real_time_interrupt (void) /* hits every 4.096 ms. */
{
TFLG2 = 0x40;
/* clear the interrupt flag */
}
/* ################################################################### */
/* ################################################################### */
/*
write_eeprom(0xA5,EEPROM);
write A5h to first byte of EEPROM */
void write_eeprom(char data, char *address)
{
PPROG = 0x16;
/* single–byte erase mode */
*address = 0xff;
/* write anything */
PPROG = 0x17;
/* turn on programming voltage */
delay();
PPROG = 0x0;
/* erase complete */
/* now program the data */
PPROG = 0x02;
/* set eelat bit */
*address = data;
/* write data */
PPROG = 0x03;
/* set eelat and eepgm bits */
delay();
PPROG = 0;
/* read mode */
/* programming complete */
}
/* ################################################################### */
long int convert(char polarity)
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