Dspic33Fj128MC706A UART<> pic18F25K80 - Page 2


Today 00:44
Forum: Proton Plus Compiler v3
Starter: davroski
Views: 0
Replies: 4
Go to last post By: normnet
Yesterday 10:20
Forum: FineLineIDE
Starter: normnet
Views: 33570
Replies: 159
+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Dspic33Fj128MC706A UART<> pic18F25K808 days old

  1. #11
    Senior Member tumbleweed's Avatar
    Join Date
    May 2011
    Posts
    453
    Thumbs Up
    Received: 84
    Given: 0
    Total Downloaded
    243.13 MB

    0 Not allowed!

    Default Re: Dspic33Fj128MC706A UART<> pic18F25K80

    I think basparky is having a problem with the 18F25K80 side of things...
    The sender (18F pic) code is:
    That's where his HRSOUT is giving him grief... it's not sending his binary packet.

  2. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  3. #12
    Fanatical Contributor top204's Avatar
    Join Date
    Feb 2002
    Posts
    3,278
    Thumbs Up
    Received: 380
    Given: 137
    Total Downloaded
    1.59 GB

    0 Not allowed!

    Default Re: Dspic33Fj128MC706A UART<> pic18F25K80

    Oops. Sorry Tumbleweed. Having both sets of code in the question confused me. :-(

    Then yes, Tumbleweed is correct! The Str modifier will not send nulls (0). It will terminate at one because it is simulating a string variable. A loop to output the arrays elements is all that is needed. The array transmitter can be made into a procedure to keep the code clean:

    Code:
    Proc SendArray(ByRef pArrayAddr As Word, pSize As Byte)
        Dim Index As Byte
        For Index = pSize - 1 To 0 Step -1 
            WREG = Ptr8(pArrayAddr++)
            HRSOut WREG 
        Next
    EndProc
    Then it is called with:

    SendArray(StrToMain, SizeOf(StrToMain))
    Last edited by top204; 13th August 2019 at 19:26.

  4. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. UART Terminal
    By AlbertoFS in forum Amicus 18
    Replies: 1
    Last Post: 21st April 2016, 11:09
  2. PIC18F25K80 ADC goes backward when over 50%
    By Tim in forum Proton Plus Compiler v3
    Replies: 23
    Last Post: 8th April 2016, 14:01
  3. UMC Bootloader for Pic18F25K80
    By Tim in forum Proton Plus Compiler v3
    Replies: 0
    Last Post: 23rd January 2016, 10:43
  4. PWM on dsPic33FJ128MC706A
    By basparky in forum Proton 24
    Replies: 2
    Last Post: 8th January 2016, 09:45
  5. 1 UART 2 devices
    By all77 in forum Proton Plus Compiler v3
    Replies: 5
    Last Post: 12th February 2008, 10:09

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts