pula
;we are done
;so
;turn off LEDs
bclr 4,porta
bclr 5,porta
rts
iscmd: bsr lcdcmdo
bra reuse1
;-------- ROM DATA: contains all LCD messages -----------------------
msg01 db $01,$80,'*MPAK & 908QT4* '
db
msg01a db $01,$80,'Water Level & '
db $C0,'Flow v2.0','@'
msg01b db $01,$80,'1:Level/Flow
db $C0,'2:Set Units ','@'
msg05 db $01,$80,'* Calibration! *'
db $C0,'Curr lo/hi:','@'
msg05a db $01,$80,'1st point: 0mm'
db $C0,'SEL:cal ENT:quit','@'
msg05b db $01,$80,'Calibrating... '
db $C0,' 0mm: ','@'
msg05c db $01,$80,'2nd point: 160mm'
db $C0,'ENT:continue ','@'
msg05d db $01,$80,'Calibrating... '
db $C0,' 160mm: ','@'
msg05e db $01,$80,'INVALID
$C0,'Reference Design','@'
'
'
db
$C0,'CALIBRATION! ','@'
$C8,' EMPTY','@'
$C8,' FULL','@'
msg02a db
msg02b db
msg02c db
msg02d db
msg02e db
$C8,' steady','@'
$C8,' H20 in','@'
$C8,' H20 out','@'
msg03 db $01,$80,'1: unit=cm H20 '
db
$C0,'2: unit=in H20 ','@'
$80,'Unit is now: cm','@'
$80,'Unit is now: in','@'
msg03a db
msg03b db
menupos db $80,$C0
end
REFERENCES
Baum, Jeff, “Frequency Output Conversion for MPX2000
Series Pressure Sensors,” Application Note AN1316/D.
Hamelain, JC, “Liquid Level Control Using a Pressure
Sensor,” Application Note AN1516/D.
AN1950
Sensors
22
Freescale Semiconductor