while(1)
{
if(s1==1)
{
while(s2==0);
if(count!=99)
count=count+1;
while(s2==1);
view(count);
}
else if(s2==1)
{
while(s1==0);
if(count!=0)
count=count-1;
while(s1==1);
view(count);
}
if(count==0)
relay=1;
else
relay=0;
}
| Thread starter | Similar threads | Forum | Replies | Date |
|---|---|---|---|---|
|
|
8051 need help with code:CCC | Microcontrollers | 6 | |
| M | alarm control 8051 assembly code help | Programming & Languages | 3 | |
|
|
Can someone help me with this program | Microcontrollers | 5 | |
| S | Assembly Language Program | Homework Help | 15 | |
|
|
MCS-51 compatible software burner help | Software & IDEs | 2 |