Electronic Components Datasheet Search
  British  ▼
ALLDATASHEET.CO.UK

X  

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

Back Button 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 MPXM2102AS Datasheet HTML 554Page - Motorola, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 550 / 670 page
background image
AN1950
3–404
Motorola Sensor Device Data
www.motorola.com/semiconductors
jsr
lcdbyto
lda
RA
jsr
lcdbyto
dbnz
CNT,do256b
lsl
RA
bcc
nochg2
inc
RB
nochg2:
lda
RB
cmp
N1
;compare N2 to N1
bne
validcal
;if different, we are OK
ldhx
#msg05e
;otherwise warn of INVALID CAL!
jsr
lcdstro
jsr
del1s
jsr
del1s
jsr
del1s
;wait 2s
jmp
CALIB
;try cal again
validcal: ldhx
#N2
jsr
wrflash
;burn N2 into flash
ldhx
#msg05
;and display new current cal values from flash
jsr
lcdstro
lda
N1
;0mm value
jsr
lcdbyto
lda
#’/’
jsr
lcdchro
lda
N2
;160mm value
jsr
lcdbyto
jsr
del1s
jsr
del1s
jmp
nocalib
;done!
;__________________________________________________________
LEVEL:
lda
#$01
;===LEVEL=== main routine: displays level, flow & graphics
jsr
lcdcmdo
;clear screen
lda
#$0C
jsr
lcdcmdo
;cursor off
lda
#$88
;position cursor at LCD graphics portion
jsr
lcdcmdo
;(2nd half of first line)
clra
;and write ascii $00 through $07
fillgfx:
jsr
lcdchro
;which contain the graphics related to
inca
;40 different readings
cmp
#$08
bne
fillgfx
LVL:
ldhx
#ramfree
;point to 40 pressure readings
lda
#$28
;count down from 40
purge:
clr
0,x
;clear all those locations
incx
;next (H cannot change: we are in page0 RAM)
dbnza
purge
jsr
adcbyta
;get Lref: reference A/D reading
jsr
LfNx
sta
Lgfx
;store in ”Level graphics”
LVLwarm:
bset
4,porta
bset
5,porta
;LEDs on during this cycle
ldhx
#ramfree
;point to 40 pressure readings
mov
#$27,RA
;count down from 39
shiftgfx: lda
1,x
;take location+1
sta
0,x
;and move to location+0, i.e. shift graphics left
incx
;next X (once again: we are in page 0, no need to worry about H)
dbnz
RA,shiftgfx
;do this 39x
lda
#$80
jsr
lcdcmdo
lda
Lgfx
jsr
adcbyta
;get averaged A/D reading (i.e. LX)
jsr
LfNx
;LX:=(NX–N1)*160/(N2–N1)
mov
RA,OA
clr
RB
cmp
#$03
;if <=2mm
bcs
Lzero
;then ”empty”
cmp
#$9E
bcc
Lsat
;then ”full”
clrh
ldx
#$14
;div by 20
div
mov
#$01,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