Serial rate of 9600 baud is about 1 msec per character so a 10 msec pause could definately cause problems. The manual says this about HSERIN:
"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."
You might have to break up the pause into chunks and do a serial read in between. Maybe do 3-4 HSERIN or SERIN calls with a 2-3 msec timeout.





Bookmarks