SERIN2 that can recognise a frame error


Closed Thread
Results 1 to 2 of 2
  1. #1
    timmers's Avatar
    timmers Guest

    Default SERIN2 that can recognise a frame error

    If a SERIN2 command is executed and the input pin is held low for any reason, then the PBP routine will not time out and hang, even if a time out is specified, until the pin returns high.

    Under hardware use a frame error (FERR) would be flagged.

    So could the SERIN or SERIN2 timeout if a framing error is detected?

    - Please please please!

    Tim.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    So could the SERIN or SERIN2 timeout if a framing error is detected?
    Yes, if the cause of the error is the wrong baud rate, parity or the first data bit.
    If the cause is after that, then the SERIN/2 commands will happily receive the rest of the packet, so if the error is "mid stream" some sort of post error checking is needed.
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. Using input from Switch to control a loop
    By MrRoboto in forum mel PIC BASIC
    Replies: 9
    Last Post: - 2nd February 2009, 05:02
  2. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  3. Optimizing DIV
    By skimask in forum mel PIC BASIC Pro
    Replies: 41
    Last Post: - 22nd September 2008, 04:58
  4. pbp245 compliation error
    By Woodzy in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 25th July 2006, 05:59
  5. 16F88 Compile error
    By Toley00 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 2nd November 2005, 00:22

Members who have read this thread : 1

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