Electronic Components Datasheet Search
  British  ▼
ALLDATASHEET.CO.UK

X  

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

Back Button MPXM2102AS Datasheet HTML 545Page - Motorola, Inc MPXM2102AS Datasheet HTML 546Page - Motorola, Inc MPXM2102AS Datasheet HTML 547Page - Motorola, Inc MPXM2102AS Datasheet HTML 548Page - Motorola, Inc MPXM2102AS Datasheet HTML 549Page - Motorola, Inc MPXM2102AS Datasheet HTML 550Page - Motorola, Inc MPXM2102AS Datasheet HTML 551Page - Motorola, Inc MPXM2102AS Datasheet HTML 552Page - Motorola, Inc MPXM2102AS Datasheet HTML 553Page - Motorola, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 549 / 670 page
background image
AN1950
3–403
Motorola Sensor Device Data
www.motorola.com/semiconductors
jmp
MANCALIB
skip02:
jmp
TEST
;__________________________________________________________
;__________________________________________________________
CALIB:
ldhx
#msg05
;===CALIB=== 2–point calibration
jsr
lcdstro
;Calibration current values
lda
N1
;0mm
jsr
lcdbyto
lda
#’/’
jsr
lcdchro
lda
N2
;160mm
jsr
lcdbyto
bset
4,porta
bset
5,porta
;LEDs on
lego1:
brclr
1,porta,lego1
lego2:
brclr
2,porta,lego2
bclr
4,porta
bclr
5,porta
;LEDs off when both SEL & ENT are released
jsr
del1s
jsr
del1s
;wait 2s
ldhx
#msg05a
jsr
lcdstro
;show instructions
waitPB1:
brset
2,porta,no2
;if ENT is not pressed, skip
jmp
nocalib
;if ENT is pressed then cancel calibration
no2:
brclr
1,porta,do1st
;if SEL is pressed then do 1st point cal
bra
waitPB1
;otherwise wait for SEL
do1st:
ldhx
#msg05b
;1st point cal: show values
jsr
lcdstro
clr
CNT
;CNT will count 256 A/D readings
clr
RB
clr
RA
;RB:RA contains 16–bit add–up of those 256 values
do256:
lda
#$C9
jsr
lcdcmdo
;position LCD cursor at the right spot
lda
CNT
deca
jsr
lcdbyto
;display current iteration $FF downto $00
lda
#’:’
jsr
lcdchro
jsr
adcbyti
;get reading
add
RA
sta
RA
lda
RB
adc
#$00
sta
RB
;add into RB:RA (16 bit add)
jsr
lcdbyto
;show RB
lda
RA
jsr
lcdbyto
;then RA
dbnz
CNT,do256
;and do 256x
lsl
RA
;get bit7 into carry
bcc
nochg
;if C=0 then no need to round up
inc
RB
;otherwise round up
nochg:
lda
RB
;we can discard RA: average value is in RB
ldhx
#N1
;point to flash location
jsr
wrflash
;burn it in!
ldhx
#msg05c
;ask for 160mm
jsr
lcdstro
waitPB2:
brset
2,porta,waitPB2 ;wait for ENT
ldhx
#msg05d
;2nd point cal: show values
jsr
lcdstro
clr
CNT
;ditto as 1st point cal
clr
RB
clr
RA
do256b:
lda
#$C9
jsr
lcdcmdo
lda
CNT
deca
jsr
lcdbyto
lda
#’:’
jsr
lcdchro
jsr
adcbyti
add
RA
sta
RA
lda
RB
adc
#$00
sta
RB
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