Hserin small question


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2013
    Posts
    2

    Default Hserin small question

    Hello,

    Just a small question concerning the Hserin command. Could not find the answer to my question on the forum or the manual.

    If you use the Hserin with the STR command : Hserin [STR received_text\8\10]

    It stoppes receiving when all 8 places of the array are filled or when a LF (10) takes place. Now is my question lets say only 6 characters are send followed by a LF. The LF will end de Hserin command BUT is this LF(10) also stored in the array or not(on location received_text[6]? In other words is the ending character also stored when it is encountered or not?

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

    Default Re: Hserin small question

    I am almost sure it does not store the line feed, but it should be easy enough to check. Just send 6 characters then a line feed and check received_text[6]. if it = 10 then blink an LED or transmit something.

    I mostly use the serin2 command and it does not store the end character.

    David

  3. #3
    Join Date
    Nov 2013
    Posts
    2

    Default Re: Hserin small question

    Okay, thanks for the info. Seems a simple question but funny enough most people don't exactly know the answer. Maybe somthing to add in the manual :-)

Similar Threads

  1. Hserin Array Question
    By Hylan in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 9th May 2012, 02:39
  2. My Small Solar Tracker
    By ozarkshermit in forum Code Examples
    Replies: 7
    Last Post: - 22nd July 2011, 11:38
  3. Small problem with PIC12F629
    By luxornet in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 15th March 2010, 02:54
  4. small 2X16 LCD
    By Ron Marcus in forum Off Topic
    Replies: 2
    Last Post: - 26th October 2007, 20:37
  5. Hserin/Hserout question
    By Philley in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 7th May 2007, 13:17

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