Professional Documents
Culture Documents
initialize A/D
converter,serial
transmission,i/p
&o/p ports ,LCD
test CO2
concentration
yes
[CO2]
low?
no
yes
[CO2]
normal?
display '[CO2]=
low'
on LCD
display
'[CO2]=normal'
on LCD
no
display '[CO2]=
high' on LCD
send message
with high CO2
concentration
initialize TMR0
no
yes
end heating?
send message
with low CO2
concentration
send message
with normal CO2
concentration
measurement
cycle for 90s
no
end measuring?
yes
test CO
concentration
yes
display '[CO]= low'
on LCD
[CO]
low?
send message
with low CO
concentration
no
yes
[CO]
normal?
no
display '[CO]=
high'
on LCD
send message
with high CO
concentration
END
display'[CO]=normal
'
on LCD
send message
with normal CO
concentration