Ig 0 SV 0 Trip 0 Delay - 1sec Blower 1 Delay - 1sec Delay - 1sec Delay - 1sec Ig 1 Delay - 1sec Delay - 1sec SV 1 Delay - 10sec

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

ig=0;

sv=0;
trip=0;
delay_1sec();
blower=1;
delay_1sec();
delay_1sec();
delay_1sec();
ig=1;
delay_1sec();
delay_1sec();
sv=1;
delay_10sec();

while(1)
{
if(sw1==1)
{
delay_1sec();
delay_1sec();
ig= 0;
}

else
{delay_10sec();
trip= 1;
}
}
}

void delay_1sec()
{
int i,j;
for (i=0;i<=20827;i++)
{
for(j=0;j<=10;j++);

}
}

void delay_10sec()
{
int i,j,k;

for(k=0;k<=9;k++)
{
for (i=0;i<=20827;i++)
{
for(j=0;j<=10;j++);

}
}
}

You might also like