We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
You are using an unsupported C-like language.
... and throwing in a few proprietary language extensions for an inappropriate target architecture.
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?