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

Search:

Type: Posts; User: PaulStoffregen

Search: Search took 0.02 seconds.

  1. I did it about 2 weeks ago! Well, I didn't...

    I did it about 2 weeks ago!

    Well, I didn't fully unroll the loop, but it does achieve about 1 Mbyte/sec on Teensy 2.0.

    This code is in Serial.readBytes() in 1.14-rc2.
  2. Here's my thoughts... if you want to give it a...

    Here's my thoughts... if you want to give it a try.

    First, you'll probably start with usb_serial_getchar(), keeping this code intact:



    intr_state = SREG;
    cli();
    if...
  3. Most of this slowness is from the overhead of...

    Most of this slowness is from the overhead of reading 1 byte at a time.

    For sending from Teensy to PC, there's a write function that transfers multiple bytes. The overhead is only slightly...
Results 1 to 3 of 3