Sending out 70 Bytes - need help on speed


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Posts
    46

    Default Sending out 70 Bytes - need help on speed

    I have a 70 byte array that is being read into from a GPS unit. I'm trying to send the data in this array (70 bytes) out to another PIC. Is there a way to send the 70 bytes out all at once that is fast and simple?

    One option is:

    For X = 0 To 69
    SEROUT2 OffBoardGPS_Tx, GPSBaudRate, [GPS1_StrRMC[X]]
    Next X

    The above option seems quite slow and redundant.

    Another option is:
    SEROUT2 OffBoardGPS_Tx, GPSBaudRate, [GPS1_StrRMC[0], GPS1_StrRMC[1],GPS1_StrRMC[2], ....etc.

    Seems the above option would take alot of code writing.

    Is there any better way?

    Kind Regards,
    Eric

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    YourArray var byte[70]

    Serout2.... [STR YourArray]
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Oct 2004
    Posts
    46


    Did you find this post helpful? Yes | No

    Default

    By George, that certainly works perfectly!!!

    Thanks for your help

    Eric

Similar Threads

  1. USB Speed
    By Rony in forum USB
    Replies: 5
    Last Post: - 24th August 2008, 20:43
  2. USB Speed
    By Rony in forum General
    Replies: 0
    Last Post: - 21st August 2008, 22:15
  3. Closed loop speed controller
    By Ryan7777 in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 26th January 2008, 14:15
  4. NEWB Help HPWM coding
    By Seafurymike in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 1st January 2008, 21:52
  5. Replies: 14
    Last Post: - 26th September 2007, 05:41

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