I have developed one program that should send one bit at a time to 8051 port bit.
here i used "acc" as a intermediate register. i also used shifting opertaor and for loop. while i simulating this "Acc" value is getting changed for "for loop" and shifting operator.
here my code, #include<reg51.h>
sbit plb0=P1^0;
sbit reglsb=ACC^0;
void main()
{
unsigned char data_value=0x44,x;
ACC=data_value;
for(x=0;x<8;x++)
{
plb0=reglsb;
ACC>>1;
}
}
can anyone debug this?????????????????