Serin timeout not working properly!


Closed Thread
Results 1 to 27 of 27

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    The best way is to use PIC's that fit your task.
    Don't try to make your task work in a PIC that doesn't have the features you need.

    Buy more 12F635's, they're only a buck apiece.
    _____________
    DT

  2. #2
    Join Date
    Nov 2009
    Location
    London
    Posts
    251


    Did you find this post helpful? Yes | No

    Question

    Quote Originally Posted by Darrel Taylor View Post
    Buy more 12F635's, they're only a buck apiece.
    No problem with the price, but sometimes I need more pins and also I have more of 508 than 635, so I asked if there is any other possible solution as I have quiet a few 16f676 & 508 lying around.

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Then don't use a WAIT qualifier in your SERIN.

    If the problem is a noisy receiver, then you will get data from the SERIN if you read every byte without Waiting, although most of it will be garbage.

    Compare the "pp3" sequence manually, and once received, grab the next byte.
    In the compare loop, do the timeout manually too.

    Also, put a timeout in the SERIN statement, in case there isn't any noise at that time.

    If the problem is that it locks up due to opposite IDLE state. That will not help at all.
    DT

Similar Threads

  1. SERIN timeout
    By Del Tapparo in forum Serial
    Replies: 3
    Last Post: - 20th November 2007, 05:34
  2. SERIN Timeout
    By George in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 23rd March 2007, 16:06
  3. 16F628A Serin timeout and Timer1
    By Rubicon in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 27th March 2006, 00:20
  4. SERIN SERIN2 Timeout
    By markedwards in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 23rd June 2005, 19:59
  5. SERIN & Timeout
    By BigWumpus in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 30th October 2004, 08:33

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