数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

MPXM2010D 数据表(PDF) 12 Page - Freescale Semiconductor, Inc

部件名 MPXM2010D
功能描述  Water Level Monitoring
PDF  24 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  FREESCALE [Freescale Semiconductor, Inc]
网页  http://www.freescale.com
标志 FREESCALE - Freescale Semiconductor, Inc

MPXM2010D 数据表(HTML) 12 Page - Freescale Semiconductor, Inc

Back Button MPXM2010D Datasheet HTML 8Page - Freescale Semiconductor, Inc MPXM2010D Datasheet HTML 9Page - Freescale Semiconductor, Inc MPXM2010D Datasheet HTML 10Page - Freescale Semiconductor, Inc MPXM2010D Datasheet HTML 11Page - Freescale Semiconductor, Inc MPXM2010D Datasheet HTML 12Page - Freescale Semiconductor, Inc MPXM2010D Datasheet HTML 13Page - Freescale Semiconductor, Inc MPXM2010D Datasheet HTML 14Page - Freescale Semiconductor, Inc MPXM2010D Datasheet HTML 15Page - Freescale Semiconductor, Inc MPXM2010D Datasheet HTML 16Page - Freescale Semiconductor, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 12 / 24 page
background image
AN1950
Sensors
12
Freescale Semiconductor
cmp #$01
;if result is $01
beq Lzero
;then display it directly
makeRB lsl RB
;otherwise shift 1 pixel bit to the right place
dbnza makeRB
;by counting down result of division
bra Lzero
Lsat:
mov #$80,RB
;if full then position highest pixel
Lzero: lda RB
ldhx #ramfree+$27 ;last of the 40
sta 0,x
;put it at then end of the 40 bytes (new value), all others were shifted left
clr weath
;weath will contain dynamic change based also on value of RB
lda RB
beq donew
;if RB=$00 then weath=$00: "empty"
cmp #$80
bne notfull
;
mov #$01,weath
;if $80 then weath=$01: "full"
bra donew
notfull mov #$02,weath
;prepare for "steady" if L(i)=L(i-1)
lda OA
;get current level value L(i)
cmp Lgfx
;compare to previous level value L(i-1)
beq donew
mov #$03,weath
;"filling" if L(i)>L(i-1)
bcc donew
mov #$04,weath
;"emptying" otherwise
donew: lda OA
;current level L(i)
sub Lgfx
;minus previous level L(i-1)
sta MA
;establishes rate: L(i)-L(i-1)
mov RA,Lgfx
;update L(i-1)
;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
golevel: lda #$80
;******** now let's display the level in decimal ********
jsr lcdcmdo
;start on 1st character of 1st line
lda OA
;get current level value
clrh
ldx #$64
;and divide by 100
div
bne over100
;if result is >0 then handle "hundreds"
lda #$20
;otherwise display space (remove leading 0)
jsr lcdchro
bra lnext
over100: jsr lcdnibo
;display "hundreds" digit
lnext: pshh
pula
;move remainder into A
clrh
ldx #$0A
;divide by 10
div
jsr lcdnibo
;display "tens" digit
lda #'.'
jsr lcdchro
;display decimal point
pshh
pula
jsr lcdnibo
;and first decimal
lda UnitType
;check for cm ($A0) vs. in (#3F)
cmp #$3F
beq dsplIN
dsplCM: lda #'c'
jsr lcdchro
lda #'m'



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


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
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