Menu

usart.h and sending multiple chardacters

2010-01-16
2013-05-30
  • Nobody/Anonymous

    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.

     
  • Ben Kirkpatrick

    Ben Kirkpatrick - 2010-01-17

    Sorry, typo there.  It was definitely "450 us" and still occasional errors or drops characters. 

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.