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

AN1950 参数 Datasheet PDF下载

AN1950图片预览
型号: AN1950
PDF下载: 下载PDF文件 查看货源
内容描述: 水位监测 [Water Level Monitoring]
分类和应用: 监控
文件页数/大小: 24 页 / 298 K
品牌: FREESCALE [ Freescale ]
 浏览型号AN1950的Datasheet PDF文件第13页浏览型号AN1950的Datasheet PDF文件第14页浏览型号AN1950的Datasheet PDF文件第15页浏览型号AN1950的Datasheet PDF文件第16页浏览型号AN1950的Datasheet PDF文件第18页浏览型号AN1950的Datasheet PDF文件第19页浏览型号AN1950的Datasheet PDF文件第20页浏览型号AN1950的Datasheet PDF文件第21页  
uPB2: bclr 4,porta  
bclr 5,porta  
lda RA  
;***ENT*** confirms menu choice  
;LEDs off  
;get menu choice  
bne SelIN  
SelCM: ldhx #$A014  
sthx UnitType  
ldhx #$039E  
sthx UnitEmpt  
lda #$01  
;initialize default units to cm ($A0=cm, $3F=in)  
;UnitType set to $A0; UnitDiv set to $14  
;UnitEmpt set to $03; UnitFull set to $9E  
;clear LCD  
jsr lcdcmdo  
ldhx #msg03a  
jsr lcdstro  
;and show choice selection to be cm  
;wait 1s  
jsr del1s  
jmp LEVEL  
;let's do LEVEL now...  
SelIN: ldhx #$3F08  
sthx UnitType  
ldhx #$033D  
sthx UnitEmpt  
lda #$01  
;initialize default units to in ($A0=cm, $3F=in)  
;UnitType set to $3F; UnitDiv set to $08  
;UnitEmpt set to $03; UnitFull set to $3D  
;clear LCD  
jsr lcdcmdo  
ldhx #msg03b  
jsr lcdstro  
;and show choice selection to be in  
;wait 1s  
jsr del1s  
jmp LEVEL  
;let's do LEVEL now...  
;__________________________________________________________  
;__________________________________________________________  
;__________________________________________________________  
;********************************************************************  
;********************************************************************  
;******** GENERAL Routines ******************************************  
;********************************************************************  
;********************************************************************  
;-------- INITIALIZATION Routines -----------------------------------  
;
;
ALLINIT: initializes HC08, sets I/O, resets LCD and LEDs  
-------  
ALLINIT: bset 0,config1  
mov #$38,ddra  
;disable COP  
;PTA0=MPAK,PTA1=SEL,PTA2=ENT,PTA3=E,PTA4=RS,PTA5=clk  
mov #$30,adiclk ;ADC clock /2  
bclr 3,porta  
bclr 4,porta  
bclr 5,porta  
rts  
;E=0  
;grn=OFF; RS=0  
;red=OFF; CLK=0  
;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
;
;
WARMUP: waits half a second while it flashes LEDs, and allows LCD to get ready  
------  
WARMUP: bclr 4,porta  
bclr 5,porta  
lda #$0A  
tenx: jsr del25ms  
bclr 4,porta  
;LEDs off  
;prepare to do this 10x  
;delay  
bset 5,porta  
jsr del25ms  
bset 4,porta  
bclr 5,porta  
;alternate on/off  
;and off/on  
dbnza tenx  
jsr lcdinit  
;10 times so the LCD can get ready (slow startup)  
;now initialize it  
AN1950  
Sensors  
Freescale Semiconductor  
17  
 复制成功!