serin buffer overflow


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2012
    Posts
    41

    Default serin buffer overflow

    hey, Ive been curious about something for a while, but Ive used hser for various projects due to this reason, but sending a long stream of chars to the PIC usually causes it to lock up. I use a 16f628a and if I use serin, it'll lock up after a second or two, but with hserin, I can add this to the top of my code and it prevents this situation from occurring:

    define HSER_CLROERR 1
    I was just curious if there was anything in serin/serin2 that is like this. Im still using pbp 2.6 I believe, havnt checked in ages but cant afford to upgrade to 3.x
    Last edited by Chirpy; - 25th February 2013 at 00:27.

  2. #2
    Join Date
    Nov 2009
    Location
    DFW area of Texas
    Posts
    24


    Did you find this post helpful? Yes | No

    Default Re: serin buffer overflow

    I believe that DEFINE is only good for the hardware serial port, not the serin/serin2 software serial port implementation.
    The Hardware serial ports on PIC have the OERR bit in the RCSTA register that gets set if there is a overun issue in the 'hardware' serial port.
    This has nothing to do with software serial port use such as serin.
    -ray
    "Imagination is more important than knowledge", Albert.E.

Similar Threads

  1. Replies: 2
    Last Post: - 13th March 2011, 19:13
  2. How can I get Timer 1 to overflow every 5 seconds
    By revelator in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 23rd March 2010, 08:45
  3. Fatal xxx.ASM 527: [308] macro buffer overflow
    By TerdRatchett in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th March 2009, 17:51
  4. Overflow bit?
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 14th October 2006, 01:03
  5. Math overflow?
    By egberttheone in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 13th May 2005, 00:53

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts