Sample Multiasking source code for 16F877A

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

Re: Sample Multiasking source code for 16F877A

Postby yonghui » Wed May 23, 2012 10:48 am

while(1)
{
if
{
timer to contorl watering pump to on
}

else if
{
contol water level
}

else if
{
cut off watering pump signal
}
}



not sure why u say the if else statement is not suitable. but

mayb u can draw a flow chart for your system first then u will figure out how to arrange the if-else.


regards,
yh
thanks&regards,
yh
yonghui
Moderator
 
Posts: 732
Joined: Mon Sep 28, 2009 3:27 pm

Previous

Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 2 guests