Chip = 08m2
Purpose= water meter monitor
code:
'c.0= USB out
'c.1= meter input
'c.2= serout
'c.3= serin
'c.4= water valve
'c.5= USB in
setfreq m16
read b15,WORD w0
b4=1
pause 10000
main:
b7=0
if w0> 9999 then let w0=0
end if
SERIN [1000], c.3,t9600_16,#b7
if b7=22 then goto control
w1=w0
if...