Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
when the length of data received is not specified, during that time the rcif bit is set and never returned to 0 causing the program to go in infinite loop.....so how can i come out of the infinite loop.??
there are too many files of code and i am using the code by doing changes in mla-2013 Demo-App file
- - - Updated - - -
is there anyway to read rcreg without waiting for rcif to set..??
as mentioned before, that there are requirements for which i have to use those 2 together.................so can anyone tell me do i debug this problem
any suggestion on how can i debug this problem??
one thing i observed in realterm is that when esp response is received then 1st line is blank and 2nd line contains the response character, this is same for every command sent to esp. so can it cause problem of not receiving correct bits??
Ok........
so i have interfaced pic18f97j60 and esp8266 (it was a requirement to use those 2 together)
i have successfully uploaded data on internet, no problem there, now the only part remaining is that i have use esp response to make my system go further
say if i gave command to esp :- AT\r\n...
i am reading response of esp8266, the code is too big, but heres the part where i am getting error
char response;
....
....
....
putrsUART("AT\r\n"); //sending on uart
getsUSART(response,20); //reading uart
heres the code for getsUSART:-
void getsUSART(char *buffer, unsigned char len)
{...
i checked on this problem but havent found any solution, probably the problem is in this part:-
char DataRdyUSART(void)
{
if(RCSTA2bits.OERR) //***
{
RCSTA2bits.CREN = 0; //***
RCSTA2bits.CREN = 1; //***
}
return PIR3bits.RC2IF;// .RCIF;//***
}
hello guys,
i am using pic18f97j60 with c18 compiler and at 9600 baudrate.
currently i want to read response from uart which is a string.
i tried using functions given already -> BYTE ReadStringUART(BYTE *Dest, BYTE BufferLen) and void getsUSART(char *buffer, unsigned char len)
however when my...
Pic is used for performing other task like display, keyboard, analog output/input, digital input/output.
And the pic is to be connected to internet for further process so esp8266 is used for that purpose.
All the other interfacing code is done by using c18 compiler.
So will I get any help on...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.