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

Parents
  • You have specified the ARM architecture while including 8051 header file and using 8051 bit variables.

    And the code you posted can most definitely not compile, so there is no way you will get far enough to have a problem with the debugger.

    By the way - do you have such a fast computer that you need ;;;;;; just to get the compiler to stop after a language statement?

Reply
  • You have specified the ARM architecture while including 8051 header file and using 8051 bit variables.

    And the code you posted can most definitely not compile, so there is no way you will get far enough to have a problem with the debugger.

    By the way - do you have such a fast computer that you need ;;;;;; just to get the compiler to stop after a language statement?

Children
No data