How do I format HSERIN?


Closed Thread
Results 1 to 20 of 20

Hybrid View

  1. #1
    Join Date
    Mar 2008
    Posts
    43

    Default How do I format HSERIN?

    I am using a 16f688 and I use HSEROUT with no problems. I now need to send some data back to the 16f688. How do I format the HSERIN command if I don't know how much data is coming?

    Thanks,
    Bob Hiller
    Lifts for the Disabled LLC

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by PlantBob View Post
    I am using a 16f688 and I use HSEROUT with no problems. I now need to send some data back to the 16f688. How do I format the HSERIN command if I don't know how much data is coming?
    HSEROUT has provisions for an 'ending' character. You can fill an array of bytes up to said 'end' character. See HSEROUT in the PBP manual. Look at the STR modifier.

  3. #3
    Join Date
    Mar 2008
    Posts
    43


    Did you find this post helpful? Yes | No

    Default

    I see no reference to filling an array and waiting for termination characters in the PBP manual. Do you have a sample?

    Thanks,
    Bob Hiller
    Lifts for the Disabled LLC

  4. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    I think he meant ...

    See HSERIN in the PBP manual. Look at the STR modifier.
    <br>
    DT

  5. #5
    Join Date
    Jul 2008
    Location
    Wyoming, US
    Posts
    3


    Did you find this post helpful? Yes | No

    Default HSERIN syntax frustration

    Being a beginner myself I have the same problem with getting simple commands and mondifiers to function. I'm looking in the PBP manual at the STR Modifier and they just don't give any examples on how to use it. I'm also interested in the use of this function as I would like to be able to send commands to the PIC and dinamicly update it.

  6. #6
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    I think he meant ...
    See HSERIN in the PBP manual. Look at the STR modifier.
    <br>
    Yep, that's what I meant...
    der.....

  7. #7
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    MyVars VAR BYTE(8)

    Main:
    HSERIN 500,NoData,[STR MyVars\8\"~"]

    NoData:
    do something else

    This will wait 500mS before jumping to NoData. It will receive a string of up to 8 characters
    in byte array MyVars, or exit on receipt of the "~" character.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. TMR0 interrupt and HSERIN
    By boban in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 2nd September 2008, 11:48
  2. Serout format
    By aftab in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd August 2007, 07:12
  3. 16F877a Interupt driven Hserin
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 3rd November 2006, 00:38
  4. Can a TMR interrupt stops HSERIN?
    By SergioRM in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 24th January 2006, 01:07
  5. Hserin
    By egberttheone in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 27th November 2004, 15:42

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