Teensy3 serial write speed

Status
Not open for further replies.

spectasaurus

Active member
I know the serial.readBytes() function has been optimized on the Teensy3 and is capable of > 1MBs. This is great, but I need to write data from the Teensy to a PC (Mac OS X) at similar speeds. Does the Teensy3 do this? Is there any reason to suspect that serial.write() would not be just as fast? Is there a better way to get data to the PC via USB? Thanks for the help.
 
but I need to write data from the Teensy to a PC (Mac OS X) at similar speeds. Does the Teensy3 do this?

Yes, Serial.write(buffer, length) is similarly optimized.

Most of the Serial.print() functions have optimizations to call Serial.write(buffer, length), rather than sending individual bytes. But still, it's faster to compose your output in a buffer that's 64 bytes or more and send it all at once with Serial.write(buffer, length).
 
Status
Not open for further replies.
Back
Top