SERIN2 freezes


Closed Thread
Results 1 to 8 of 8

Thread: SERIN2 freezes

Hybrid View

  1. #1
    Join Date
    Dec 2009
    Posts
    7


    Did you find this post helpful? Yes | No

    Default

    Sorry for the misunderstanding it was not a blame, i love this compiler. I didn't find any string functions on my sources, if you knew some please tell me so i can change my sources with correct ones. It was an opinion.

    It was a part of my code but i don't understand what is wrong with the call? Should i use gosub? What do you suggest ?

    Also,
    there is an answer on this page: http://www.picbasic.co.uk/forum/show...highlight=idle

    xnihilo, is that solves your problem too?

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


    Did you find this post helpful? Yes | No

    Default

    No problems

    The PIC it's self is not really a string type setup, but PBP gives it a good shot by treating strings as an array. The STR modifier is for that. Yes, more string handling might be nice, or a different way of handling them... But we are so limited on memory the way it is with most PICs that it may be a shot in the foot.

    CALL -- that is for "CALLING" an ASM function.

    The TIME OUT/GOTO label is just that. a GOTO.
    So wherever you send things after a serial time out do not use a RETURN.
    Code:
    SERIN2 myRX,396,100,delay,[wait ("N"),data]
    
    GOTO loop
    
    delay:
            myVar=myVar+1
            CALL OnScreen 
    RETURN
    In the above case replace the RETURN with GOTO LOOP.
    Looks like that is what you want....
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Dec 2009
    Posts
    7


    Did you find this post helpful? Yes | No

    Default

    I got it .

    Thank you by the way, that explains the "CALL and RETURN overflow" problems on my simulations .

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


    Did you find this post helpful? Yes | No

    Default

    Glad to bof soivice
    Dave
    Always wear safety glasses while programming.

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, 10:47
  2. Getting SERIN2 to work?
    By BobPigford in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 22nd July 2009, 21:10
  3. SLOW Serin2 and Serout2
    By dragons_fire in forum General
    Replies: 3
    Last Post: - 26th June 2009, 03:38
  4. SERIN2 digit parsing
    By skimask in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 8th January 2007, 00:15
  5. SEROUT2 and SERIN2 commands
    By bangunprayogi in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 4th August 2005, 10:03

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