PIC Hangs when using Serin TimeOut


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    257

    Unhappy PIC Hangs when using Serin TimeOut

    Hi,

    I've seen this problem a few times now and its strange.
    It's the same with both Serin or HSERIN. eg


      EXAMPLE:
      HSERIN 1500, FAIL,[WAIT ("HERE IT IS")]
      HSEROUT ["I GOT IT"]
      GOTO EXAMPLE

      FAIL:
      HSEROUT["BAD WIRING"]
      GOTO SOMETHING ELSE

    This example works fine if all connections are correct, but if I cross over GND and RX wire (eg deliberate wire mistake) then it just causes the PIC to Hang up waiting and not preceed after 1.5 secs to FAIL.

    Why is this so? ( I have WDT set to ON too.)

    I need to allow for this wire mistaking and get the program recognize this and do something else (eg check another serial input pin for instance)

    Cheers
    Squib

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    257

    Default

    Thanks Mistere.

Similar Threads

  1. PIC HANGS with SERIN and Timeout?
    By koossa in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 18th January 2008, 17:33
  2. SERIN AND SEROUT PROBELM USING 16f690 PIC
    By Charles in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 18th January 2007, 03:59
  3. 16F628A Serin timeout and Timer1
    By Rubicon in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 26th March 2006, 23:20
  4. SERIN SERIN2 Timeout
    By markedwards in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 23rd June 2005, 18:59
  5. SERIN & Timeout
    By BigWumpus in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 30th October 2004, 07: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