Timeline for Arduino Uno Serial.write() how many bits are actually transmitted at once by UART and effect of baudrate on other interrupts
Current License: CC BY-SA 4.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 16, 2024 at 10:46 | comment | added | Nick Gammon♦ | I've added another sentence to cover that. Thanks for the suggestion. :) | |
| Sep 16, 2024 at 10:46 | history | edited | Nick Gammon♦ | CC BY-SA 4.0 |
Added clarification.
|
| Sep 16, 2024 at 8:02 | comment | added | Nick Gammon♦ | Also: arduino.stackexchange.com/questions/30968/… | |
| Sep 16, 2024 at 7:59 | comment | added | Nick Gammon♦ | I mentioned Running the timer itself will cause the occasional interrupt. I didn't say, or intend to imply, that turning off interrupts would drop an interrupt service, clearly it doesn't. However while interrupts are turned off they will not be serviced. For more information see my page about interrupts. | |
| Sep 16, 2024 at 1:59 | comment | added | Nick Gammon♦ | I've responded to your edited points. | |
| Sep 16, 2024 at 1:58 | history | edited | Nick Gammon♦ | CC BY-SA 4.0 |
Responded to amended question points.
|
| Sep 16, 2024 at 1:45 | comment | added | Nick Gammon♦ | Regarding the Uno part, I glanced at the tags, where people usually put which Arduino they have. I added the Uno tag for you. | |
| Sep 15, 2024 at 22:50 | comment | added | gunakkoc | I've edited the question to make my point better. | |
| Sep 15, 2024 at 13:16 | comment | added | gunakkoc | Thanks! I have an Uno (in the title) rev3. My baudrate is 115200 to ensure all OS compatibility. About my concern of 16 bits being sent, you are right, I confused that Serial FIFO pointer being 16bits as mentioned here forum.arduino.cc/t/serial-write-time/233360/23. Finally, this is exactly what I wanted to know. I wanted to minimize the time it takes to write to Serial buffer so that I can "thread" without any operation taking more than ~50us. The communication is already very light and not frequent that I can assume Serial write will never block due to being filled fully. | |
| Sep 15, 2024 at 6:32 | history | answered | Nick Gammon♦ | CC BY-SA 4.0 |