You are on page 1of 2

start

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

heating cycle for


60s

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

You might also like