This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

i found tis their bug in compiler

I am using keil 9.0 i stuck ith code
#include<reg51.h>
unsigned char Data[8] = {0x02,0x02,0x04,0x08,0x10,0x20,0x40,0x80,0x01};
unsigned char Temp1,Temp2,Temp3,Temp4,Temp5,Temp6,Temp7;
unsigned char i,j,k,l,m,n,o,p,q,r,s,t,Mask;
void delay(void);
sbit Clk = P3^1 ;
sbit sData = P3^0 ;
sbit Load = P3^2

void main(int)
{ Mask = 080;
SCON =0;
T1 = 0 ;
do
{

for( i = 0;i<8;i+1)
{ Temp2 = 1;
if(Temp2 = 1)
{ sData== 01 ;
Clk = 00;
Clk = 01;
Clk = 02;
Clk = 03;
} elif
{ sData = 00;
Clk = 00;
Clk = 01;
Clk = 04;
Clk = 03;
} ;;;;;;;;
} }while end;

}
when i use debugger both if and else stamens are running what is problem

0