Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: PaulStoffregen

Search: Search took 0.03 seconds.

  1. Replies
    22
    Views
    10,558

    Also, consider this measurement technique...

    Also, consider this measurement technique probably over-estimates the speed on the receiving side. The interrupt code is part of the overhead, for both transmitting and receiving. For transmitting,...
  2. Replies
    22
    Views
    10,558

    If you're going to send just 1 byte, with a...

    If you're going to send just 1 byte, with a lengthy dead time between, you might be able to get away with just writing directly to the UART's data register. That's an incredibly dirty trick, but it...
  3. Replies
    22
    Views
    10,558

    Here's my scope screen, with 10 bytes at 4...

    Here's my scope screen, with 10 bytes at 4 Mbit/sec, from the code and screenshot of reply #18.

    1752

    Looks like 4 Mbit/sec is working fine. Of course, that code is writing the 10 bytes with a...
  4. Replies
    22
    Views
    10,558

    I've got it running on my desk at 4 Mbit/sec,...

    I've got it running on my desk at 4 Mbit/sec, using a pair of Teensy 3.1 boards, running this code on both:



    HardwareSerial Uart = HardwareSerial();

    byte j, RX, g;
    long d,t,prev;

    #define...
  5. Replies
    22
    Views
    10,558

    I suspect 3 or 4 Mbit/sec might be an upper limit...

    I suspect 3 or 4 Mbit/sec might be an upper limit on the usable speed.

    Honestly, not much testing has ever been done above 1 Mbit/sec. I've got those 2 boards still connected on my desk, so if...
  6. Replies
    22
    Views
    10,558

    The UART can not transmit at 15 MBit/sec!! On...

    The UART can not transmit at 15 MBit/sec!!

    On Serial1 (the fastest port), 6 MBit/sec is the absolute maximum speed the hardware can use. That's a 96 MHz clock divided by 16 clocks per bit.
  7. Replies
    22
    Views
    10,558

    You can also increase the writing speed, if...

    You can also increase the writing speed, if you're sending more data, by writing a block with a single call. For example:



    byte buf[10];
    buf[0] = j;
    buf[1] = j;
    ...
  8. Replies
    22
    Views
    10,558

    Please post complete code and specific details to...

    Please post complete code and specific details to reproduce the lockup condition.
  9. Replies
    22
    Views
    10,558

    I believe part of what you're measuring is the...

    I believe part of what you're measuring is the function call and complex code inside the micros() function. Even though it reports the microsecond clock time, the function itself takes a few...
  10. Replies
    22
    Views
    10,558

    I'm running the code now on a pair of Teensy 3.1...

    I'm running the code now on a pair of Teensy 3.1 boards. It seems to be working fine.

    1749

    1750
  11. Replies
    22
    Views
    10,558

    Even the non-FIFO ports should work at this...

    Even the non-FIFO ports should work at this speed.

    I'll give this a try here soon and see if I can figure out what's up.....
Results 1 to 11 of 11