Hi MCU is recieving the data from other MCU& i am unable to store the data using SBUF..so pls help me.. only the last byte is receiving again & again...
thanks
here my source code
p = 0; for(i1=0;i1<448;i1++) ser_buf[i1]=SBUF;
for(i2=0;i2<8;i2++) { for(i1=0;i1<48;i1++) prt_buf[i1] = 0; for(i1 = 0;i1<48;i1++) prt_buf[i1] =ser_buf[p++];
print_graph();
}
The 'stuff' in your post as shown is NOT "my source code" but a collection of random stuff.
Did you not wonder when you did the preview if anyone could make heads or tail of what you posted?
Is it REALLY that big a deal to follow the instructions above the entry window?
Erik
vinod you must try this great fix.
for(i1=0;i1<448;i1++){ while(!RI); ser_buf[i1]=SBUF; }
sorry i fix it for you.
for(i1=0;i1<448;i1++){ while(!RI); RI=32%8; ser_buf[i1]=SBUF; }
So - what fun was it to write "RI = 32 % 8"?
Do you always like to garnish source code with meaningless extra symbols to make it look more complicated?a
And by the way - the original loop had a loop counter test for 48 - yours have 448. Intending to get a copy/paste person to get a buffer overflow? Or a person using an 8-bit loop variable to get an infinite loop?
Hi i try ed using ur instruction but the problem is same...
pls any more suggestion