Serial comm handling is an endless story, there's tons of different ways, with check sum or not, with header/footer or not, split packets, use FlowControl pins etc etc.
First of all, you must have a reliable PIC frequency. So, if it's not already the case, forgive the idea to use the internal OSC.
Your PIC have a USART indeed, so forget the SERIN/SEROUT stuff, use HSERIN/HSEROUT instead. It have few advantage over SERIN/SEROUT.
Now, depending what else your PIC do, you may miss some incomming data or not if you spend too much time here and there before the HSERIN... be carefull.
You may decide to use a lower baudrate first.
Post the code you have, it will be easier to figure this out together.
Last edited by mister_e; - 1st January 2007 at 23:57.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks