indianhits
New Member
Code:
if(P1_3==1) setswitch[0]='1';
else setswitch[0]='0';
if(P1_4==1) setswitch[1]='1';
else setswitch[1]='0';
if(P1_5==1) setswitch[2]='1';
else setswitch[2]='0';
i=0;
while(i<3)
{
SBUF=setswitch[i];
while(TI==0);
TI=0;
i++;
}
hello guys when ever i try to recieve the data it doesn't work.can anyone please tell me where the problem is
Thanks! and don't mind about Baud rate,undefined variables etc...