Maybe this will help?
From the manual
Quote:
As the hardware serial port only has a 2 byte input buffer, it can easily overflow if characters are not read from it often enough. When this happens, the USART stops accepting new characters and needs to be reset. This overflow error can be reset by toggling the CREN bit in the RCSTA register. A DEFINE can be used to automatically clear this error. However, you will not know that an error has occurred and characters may have been lost.
*** DEFINE HSER_ CLROERR*** 1
To manually clear an overrun error:
*** RCSTA. 4 = 0*
*** RCSTA. 4 = 1
Bookmarks