欢迎访问ic37.com |
会员登录 免费注册
发布采购

AN1950 参数 Datasheet PDF下载

AN1950图片预览
型号: AN1950
PDF下载: 下载PDF文件 查看货源
内容描述: 水位监测 [Water Level Monitoring]
分类和应用: 监控
文件页数/大小: 24 页 / 298 K
品牌: FREESCALE [ Freescale ]
 浏览型号AN1950的Datasheet PDF文件第9页浏览型号AN1950的Datasheet PDF文件第10页浏览型号AN1950的Datasheet PDF文件第11页浏览型号AN1950的Datasheet PDF文件第12页浏览型号AN1950的Datasheet PDF文件第14页浏览型号AN1950的Datasheet PDF文件第15页浏览型号AN1950的Datasheet PDF文件第16页浏览型号AN1950的Datasheet PDF文件第17页  
jsr lcdchro  
bra goflow  
;display "cm" for centimeters  
;display "in" for inches  
dsplIN: lda #'i'  
jsr lcdchro  
lda #'n'  
jsr lcdchro  
;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
goflow: lda #$C0  
jsr lcdcmdo  
lda MA  
;******** now let's display the flow in decimal ********  
;position cursor on 1st character 2nd line  
;get flow  
lsla  
bcc positiv  
;test sign of rate (in MA)  
;if positive, then it's easy  
lda MA  
coma  
;otherwise 1's complement of MB  
inca  
sta MA  
cmp #$64  
bcs not2lo  
lda #'<'  
jsr lcdchro  
lda #$63  
sta MA  
bra goconv  
;check to see if >100  
;if not we are OK  
;otherwise display that we exceeded min rate  
;that LCD can display (<9.9)  
;force value to 99  
not2lo: lda #'-'  
jsr lcdchro  
;display that minus sign  
bra goconv  
positiv: lda MA  
cmp #$64  
bcs not2hi  
lda #'>'  
;check to see if >100  
;if not we are OK  
;otherwise display that we exceeded max rate  
;that LCD can display (>9.9)  
;force value to 99  
jsr lcdchro  
lda #$63  
sta MA  
bra goconv  
not2hi: lda #'+'  
jsr lcdchro  
;display the plus sign (to keep alignment)  
;get flow  
goconv: lda MA  
clrh  
ldx #$0A  
div  
;and divide by 10  
jsr lcdnibo  
lda #'.'  
;display "tens" digit  
jsr lcdchro  
pshh  
;display decimal point  
pula  
jsr lcdnibo  
lda UnitType  
cmp #$3F  
beq dsplINf  
;and first decimal  
;check for cm ($A0) vs. in (#3F)  
dsplCMf: lda #'c'  
jsr lcdchro  
lda #'m'  
bra reusef  
AN1950  
Sensors  
Freescale Semiconductor  
13  
 复制成功!