Any faster option than USART 115,200?


+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,809

    Default Any faster option than USART 115,200?

    I have a main USB PIC that talks to several secondary PICs via hardware USART.

    Is there a better/faster technique to transfer data than USART at 115,200?
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,445


    Did you find this post helpful? Yes | No

    Default Re: Any faster option than USART 115,200?

    that's more than 11 thousand five hundred characters per second , how much data can a pic16 process at that rate before the wheels fall off and lost data spills all over the floor
    seems to me to be a rather difficult prospect
    Warning I'm not a teacher

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,809


    Did you find this post helpful? Yes | No

    Default Re: Any faster option than USART 115,200?

    Quote Originally Posted by richard View Post
    ...how much data can a pic16 process at that rate before the wheels fall off and lost data spills all over the floor ...
    I was just keeping my options open; "hope for the best, be ready for the worst".

    This will run alongside a flightsim, so data will be transfered often: altitude, speed, RPM, heading and much more, those values fluctuate constantly. 115K might be more than enough, but I won't know until I'm finished coding everything. Like I said elsewhere, right now I'm just researching and accumulating code to do very specific tasks.

    I still have to design a communication protocol between PICs; what gets transfered, how often, all that stuff. Then it's the USB PIC-PC interface and comms with flightsim; I haven't touched that since early 2023 when I made sure I could do a rudimentary interface (turn on a switch, send that to PC, receive by flightsim, return status of some other control back to PIC).

    So yeah, I'm just making sure I'm staying with the bestest options as I move forward, mainly cause I've never done this before.

    EDIT: just did some math, 115,200/8 bits=14,400 char/second (right ? ), that should be more than plenty.
    Last edited by Demon; - 1st September 2024 at 02:49.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  4. #4
    Join Date
    May 2013
    Location
    australia
    Posts
    2,445


    1 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default Re: Any faster option than USART 115,200?

    just did some math, 115,200/8 bits=14,400 char/second (right ? )
    no, divide by 10, 8 data + start + stop bits
    Warning I'm not a teacher

  5. #5
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,554


    Did you find this post helpful? Yes | No

    Default Re: Any faster option than USART 115,200?

    You can configure the UART for speeds way beyond 115200 if you want. I've done DMX512 which runs at 250kbaud for example.

    But, as Richard mentions, thats only half of the equation.
    At the receiving end you need to be able to both A) store the incoming bytes at that high pace and B) process the data.

    Is the data a continous stream or short bursts with relatively long "silence" in between?

  6. #6
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,809


    Did you find this post helpful? Yes | No

    Default Re: Any faster option than USART 115,200?

    Quote Originally Posted by HenrikOlsson View Post
    ...Is the data a continous stream or short bursts with relatively long "silence" in between?
    I haven't established that yet.

    IOC and PPS is new to me, so I was wondering if there were other goodies hidden in the 16F18877 that I wasn't aware of (communication-wise).

    The USB PIC will be a 16F1459 driving all the secondary PICs.
    Last edited by Demon; - 1st September 2024 at 07:29.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  7. #7
    Join Date
    Aug 2011
    Posts
    431


    Did you find this post helpful? Yes | No

    Default Re: Any faster option than USART 115,200?

    There are faster hardware interfaces (ie SPI), but as has been pointed out your code needs to be able to keep up, and that gets difficult.
    I've run a UART link up to 460K baud reliably, but that was with a PIC18 @ 64MHz

    Here's how fast a byte gets transferred at different baud rates:
    115.2K = 86us
    230.4K = 43us
    460.8K = 21us

    If your ISR can't keep up with those rates then you'll loose bytes.
    A UART is probably your best bet since it's double buffered in hardware, plus it's easy to use.

  8. #8
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,809


    Did you find this post helpful? Yes | No

    Default Re: Any faster option than USART 115,200?

    Quote Originally Posted by tumbleweed View Post
    ... UART is probably your best bet since it's double buffered in hardware, plus it's easy to use.
    I agree.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

Similar Threads

  1. Error 115 - Duplicate label
    By ChrisKiwi in forum PBP3
    Replies: 13
    Last Post: - 11th June 2014, 12:50
  2. 12F508 OPTION Register
    By sayzer in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 13th January 2013, 00:00
  3. So many option but little understanding
    By PickyBiker in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 23rd April 2010, 09:45
  4. Hserin / Herout 115+ K Baud
    By rlmack35 in forum Serial
    Replies: 1
    Last Post: - 27th December 2008, 00:07
  5. Forum use option
    By F1CHF in forum Forum Requests
    Replies: 6
    Last Post: - 12th August 2006, 12:35

Members who have read this thread : 9

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