premkumar9 Member Apr 2, 2011 #21 Sceadwian said: Could you be sending and receiving at the same time and both interupt routines aren't able to process in a timely manner? Click to expand... Thank you for the reply. I added a start byte and stop byte and made some modifications in the code. Now the problem seems to be solved.
Sceadwian said: Could you be sending and receiving at the same time and both interupt routines aren't able to process in a timely manner? Click to expand... Thank you for the reply. I added a start byte and stop byte and made some modifications in the code. Now the problem seems to be solved.
Sceadwian Banned Apr 9, 2011 #22 Headers (start bytes) are always a good idea for UARTs, gives the UART a couple cycles to sync up. Glad it's working for you now, though I am curious as to what exactly was going on, perhaps it was just a sync issue.
Headers (start bytes) are always a good idea for UARTs, gives the UART a couple cycles to sync up. Glad it's working for you now, though I am curious as to what exactly was going on, perhaps it was just a sync issue.
premkumar9 Member Apr 9, 2011 #23 Sceadwian said: gives the UART a couple cycles to sync up. Click to expand... Would you please elaborate a little? perhaps it was just a sync issue. Click to expand... Seems you are right.
Sceadwian said: gives the UART a couple cycles to sync up. Click to expand... Would you please elaborate a little? perhaps it was just a sync issue. Click to expand... Seems you are right.