Fdummy=0;
while(TRUE){
if (kbhit(FP)){
Fresponse[Fdummy] == fgetc(FP);
if (Fresponse[Fdummy] == 0x0A){return 1;}
Fdummy++;
}
}
this is the code when i run this program Fdummy becomes 13 but the bytes of Fresponse array are 0. I use scobe and see that not all cycles are 0. My pic is 18f6722 and the clock is 3276800. is there problem at UART
drh
Joined: 12 Jul 2004 Posts: 192 Location: Hemet, California USA
Posted: Fri Oct 06, 2006 8:19 am
Change this:
Fresponse[Fdummy] == fgetc(FP);
To this:
Fresponse[Fdummy] = fgetc(FP);
and try it again. _________________ David
gnz Guest
Posted: Sat Oct 07, 2006 1:16 am
Thanks. I've noticed this a few minutes ago. But spent so much time on it.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum