Serin2 and Timeout to Label


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2009
    Posts
    2

    Default Serin2 and Timeout to Label

    Hello everybody,
    my first post in this board is to question the experts:

    The timeout to label function in Serin2 command, is to be considered like a GOTO or could be used like a GOSUB/RETURN?

    Thanks in advance.

  2. #2
    Join Date
    Feb 2009
    Location
    Southern California
    Posts
    86

    Default

    I', pretty sure it is only used as a goto, so if you wanted to use it as a return you would have to do something like

    Code:
    get_data:
       SerIn2 PORTC.7,813,2000,nodata,[x]
    Serin2_return:
    ...
    return
    
    nodata:
    ...
    ...
    goto serin2_return

    David

  3. #3
    Join Date
    Apr 2009
    Posts
    2

    Default

    Quote Originally Posted by Luckyborg View Post
    I', pretty sure it is only used as a goto, so if you wanted to use it as a return you would have to do something like

    Code:
    get_data:
       SerIn2 PORTC.7,813,2000,nodata,[x]
    Serin2_return:
    ...
    return
    
    nodata:
    ...
    ...
    goto serin2_return

    David
    I was already using structures like the one in your example, then i'll continue using'em

    Thanks for the help David.

Similar Threads

  1. GPS $GPRMC to PIC16F684. Need help with SERIN2
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 27th November 2009, 09:47
  2. Serin2 Timeout
    By tazntex in forum Serial
    Replies: 15
    Last Post: - 15th August 2008, 15:40
  3. 18f242 serin2 timeout
    By Armadus in forum Serial
    Replies: 1
    Last Post: - 28th July 2007, 22:41
  4. SERIN SERIN2 Timeout
    By markedwards in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 23rd June 2005, 18:59
  5. Serin2 Timeout, how it works?
    By Fossil in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 4th March 2004, 10:09

Members who have read this thread : 2

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