On a 16f876a with 10Mhz resonator, I've seen a odd problem with the HSerSend / HSerPrint commands. If I send any group of characters (with Print or multiple Send's), only the first and last are recognized by an attached terminal program. However, putting "wait 450 us" between each transmitted characters makes things work fine.
My last update of GCB was Dec29,2009. I don't think this is the right fix, but it got things working for some quick tests: add 'wait 45 us' around line 162 of usart.h I guess it could be a bad clock issue.
The fix detailed at http://sourceforge.net/projects/gcbasic/forums/forum/596084/topic/3368180 didn't help or hurt.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
On a 16f876a with 10Mhz resonator, I've seen a odd problem with the HSerSend / HSerPrint commands. If I send any group of characters (with Print or multiple Send's), only the first and last are recognized by an attached terminal program. However, putting "wait 450 us" between each transmitted characters makes things work fine.
My last update of GCB was Dec29,2009. I don't think this is the right fix, but it got things working for some quick tests: add 'wait 45 us' around line 162 of usart.h I guess it could be a bad clock issue.
The fix detailed at http://sourceforge.net/projects/gcbasic/forums/forum/596084/topic/3368180 didn't help or hurt.
Sorry, typo there. It was definitely "450 us" and still occasional errors or drops characters.