How to make the flowchart for this code
#include<win51.h>
sbit P10=P1^0;
sbit P11=P1^1;
sbit P12=P1^2;
sbit P13=P1^3;
sbit P14=P1^4;
sbit P15=P1^5;
sbit P16=P1^6;
sbit P17=P1^7;
unsigned long int x;
void main (void)
{
unsigned char xdata *cis;
cis = 0xFC48;
*cis = 0xFE;
P10=0;
P11=0;
P12=0;
P13=0;
P14=0;
P15=0;
P16=0;
P17=0;
while(1)
{
if(P17 == 0)
{
P10=0;
P11=1;
P12=1;
P13=1;
for(x=0; x<10000; x++)
P10=1;
P11=1;
P12=1;
P13=1;
for(x=0; x<10000; x++)
}
else if(P16 == 0)
{
P10=1;
P11=0;
P12=1;
P13=1;
for(x=0; x<10000; x++)
P10=1;
P11=1;
P12=1;
P13=1;
for(x=0; x<10000; x++)
}
else if(P15 == 0)
{
P10=1;
P11=1;
P12=0;
P13=1;
for(x=0; x<10000; x++)
P10=1;
P11=1;
P12=1;
P13=1;
for(x=0; x<10000; x++)
}
else if(P14 == 0)
{
P10=1;
P11=1;
P12=1;
P13=0;
for(x=0; x<10000; x++)
P10=1;
P11=1;
P12=1;
P13=1;
for(x=0; x<10000; x++)
}
else
{
P10=0;
P11=1;
P12=1;
for(x=0; x<50000; x++)
P10=1;
P11=0;
P12=1;
for(x=0; x<30000; x++)
P10=1;
P11=1;
P12=0;
for(x=0; x<50000; x++)
}
}
}
Get Answers For Free
Most questions answered within 1 hours.