SERIN2 ending in linefeed


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2007
    Posts
    13

    Default SERIN2 ending in linefeed

    Hi,
    I know there is probably a really simple answer to this. I want to use SERIN2 to recieve a string of an unknown length, ending in a carriage return followed by line feed. What is the easiest way to do this? Conceptually i assume it would be:

    SERIN2 x,x,x,x,[STR myvar\"LF"] - problem is i am not sure how to represent a line feed here (obviously "LF" is not right lol).

    thanks for any help,
    Jordan

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

    Default

    In the back of the PBP manual, appendix D is the ASCll table.

    10 = Line Feed
    13 = Carriage Return
    Code:
    SERIN2 x,x,x,x,[STR myvar,10]
    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, 09:47
  2. Getting SERIN2 to work?
    By BobPigford in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 22nd July 2009, 20:10
  3. SLOW Serin2 and Serout2
    By dragons_fire in forum General
    Replies: 3
    Last Post: - 26th June 2009, 02:38
  4. SERIN2 digit parsing
    By skimask in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 7th January 2007, 23:15
  5. SEROUT2 and SERIN2 commands
    By bangunprayogi in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 4th August 2005, 09:03

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