HERSOUT2 (Weird problem)


Closed Thread
Results 1 to 18 of 18

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Location
    London
    Posts
    251


    Did you find this post helpful? Yes | No

    Default Re: HERSOUT2 (Weird problem)

    Quote Originally Posted by pedja089 View Post
    When using STR, maximum number of bytes is 255. It is only one byte counter.
    Darrel already give simple workaround:
    HSERIN2 [STR MESS1\255, STR MESS1[256]\255]
    Thanks for the detail. What does this (bold highlighted) code do?

  2. #2
    Join Date
    Jan 2013
    Location
    Texas USA
    Posts
    229


    Did you find this post helpful? Yes | No

    Default Re: HERSOUT2 (Weird problem)

    What PIC are you using?
    Regards,
    TABSoft

  3. #3
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: HERSOUT2 (Weird problem)

    Megahertz,
    MESS1[256] point to 256 byte in array. So you can receive next 255 characters.

  4. #4
    Join Date
    Nov 2009
    Location
    London
    Posts
    251


    Did you find this post helpful? Yes | No

    Default Re: HERSOUT2 (Weird problem)

    Quote Originally Posted by pedja089 View Post
    Megahertz,
    MESS1[256] point to 256 byte in array. So you can receive next 255 characters.
    So, can I write it as:
    Code:
    HSERIN2 [STR MESS1[0]\255, STR MESS1[256]\255]
    Secondly, what will happen when it receives a $00 byte? and how do I convert this received data (512 bytes) back to hex format

  5. #5
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,159


    Did you find this post helpful? Yes | No

    Default Re: HERSOUT2 (Weird problem)

    http://www.picbasic.co.uk/forum/showthread.php?t=272

    Data is stored in binary format. How you display or transmit is up to you.

    Robert

Similar Threads

  1. Pulsin weird problem
    By allenf in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 18th September 2013, 18:33
  2. Weird problem with Debugin
    By Tina10 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 4th June 2013, 06:18
  3. Weird code problem
    By Navaidstech in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 16th March 2009, 11:16
  4. Weird Problem
    By isaac in forum General
    Replies: 9
    Last Post: - 22nd September 2008, 19:30
  5. PIC18F got some weird problem?
    By NatureTech in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 19th February 2007, 16:18

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