Skip to content

Hardware UART: question about setFIFOSize() #2171

Answered by earlephilhower
FerGT50 asked this question in Q&A
Discussion options

You must be logged in to vote

Err, depends on the length of your message and how often you can service the serial port. At some point you need to make the servicing of messages == the rate they're coming in or it'll overflow no matter how big the buffer. Making it bigger shouldn't cause any issue, so if you have a 1K message @ 1.5MBaud every second, I'd just pop in a 1K buffer and be done with it...

Back of the envelope, 1.5MBaud = 150Kbyte/sec which at 133MHZ = ~900 CPU insns/byte (times two since there's a second core) so it doesn't seem too bad even on smaller buffers if you're only servicing the serial port.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@earlephilhower
Comment options

Answer selected by FerGT50
@FerGT50
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants