SOFTWARE LISTING
;NitroWater 2.0 24Jan03
;--------------
;
;Water Level Reference Design
;****************************
; - uses 908QT4 (MC68HC908QT4) and MPAK (MPXM2010GS)
;
;
;
;
CALIB: 2-point pressure calibration (0mm and 160mm)
LEVEL: displays water level, flow, and graphics
UNITS: allows user to select between cm and inches
;__________________________________________________________
ram
rom
equ $0080
equ $EE00
;memory pointers
vectors equ $FFDE
;__________________________________________________________
porta equ $00 ;registers
ddra equ $04
config2 equ $1E
config1 equ $1F
tsc
equ $20
tmodh equ $23
icgcr equ $36
adscr equ $3C
adr
adiclk equ $3F
flcr equ $FE08
flbpr equ $FFBE
;__________________________________________________________
equ $3E
org $FD00
db $96
org $FD40
db $F6
;flash variables
;1st calibration pt. = 0mm
N1
N2
;2nd calibration pt. = 160mm
org $FD80
;__________________________________________________________
org vectors
dw cold
dw cold
dw cold
dw cold
dw cold
dw cold
dw cold
dw cold
dw cold
dw cold
dw cold
dw cold
dw cold
dw cold
dw cold
dw cold
dw cold
;ADC
;Keyboard
;not used
;not used
;not used
;not used
;not used
;not used
;not used
;not used
;TIM Overflow
;TIM Channel 1
;TIM Channel 0
;not used
;IRQ
;SWI
;RESET ($FFFE)
;__________________________________________________________
org ram
BB
ds
1
;variables
flshadr ds
flshbyt ds
2
1
memSP ds
mem03 ds
2
2
AN1950
Sensors
Freescale Semiconductor
7