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

X  

MPXM2010D 数据表(PDF) 16 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) 16 Page - Freescale Semiconductor, Inc

Back Button 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 MPXM2010D Datasheet HTML 17Page - Freescale Semiconductor, Inc MPXM2010D Datasheet HTML 18Page - Freescale Semiconductor, Inc MPXM2010D Datasheet HTML 19Page - Freescale Semiconductor, Inc MPXM2010D Datasheet HTML 20Page - Freescale Semiconductor, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 16 / 24 page
background image
AN1950
Sensors
16
Freescale Semiconductor
lsr DC
ror DB
ror DA
;divide DC:DB:DA by 2
lda NA
add DA
sta NA
lda NB
adc DB
sta NB
lda NC
adc DC
sta NC
;and add into NC:NB:NA
lsla
bcs nornd
;if carry=1 then remainder<1/2 of dividend
lda RA
add #$01
sta RA
lda RB
adc #$00
sta RB
;otherwise add 1 to result
nornd: rts
;__________________________________________________________
;__________________________________________________________
UNITS: brclr 2,porta,UNITS ;let go of ENT first
lda #$01
;===UNITS=== Allows user to select units: inches or cm
jsr lcdcmdo
;clear screen
ldhx #msg03
jsr lcdstro
;Unit Choice menu
jsr del100ms
clr RA
;menu choice=0 to begin with
lda #$0D
jsr lcdcmdo
;blink cursor on menu choice
uluke: ldx RA
;get current menu choice
clrh
lda menupos,x
;and look up corresponding LCD address
jsr lcdcmdo
;reposition cursor
uwarm: brclr 1,porta,uPB1 ;check for SEL
brclr 2,porta,uPB2 ;or for ENT
bclr 4,porta
;otherwise
bset 5,porta
;turn on "SEL" LED
jsr del100ms
;delay
bset 4,porta
;toggle LEDs
bclr 5,porta
;"ENT" now on: means choice is SEL ***or*** ENT
jsr del100ms
;delay and repeat until SEL or ENT
bra uwarm
uPB1:
inc RA
;***SEL*** toggles menu choices
lda RA
cmp #$02
;menu choices are $00 and $01
bne uPB1ok
clr RA
;back to $00 when all others have been offered
uPB1ok: bclr 4,porta
bclr 5,porta
;LEDs off
jsr del100ms
;wait a little bit
brclr 1,porta,uPB1ok ;make sure they let go of SEL
bra uluke



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