cancel
Showing results for 
Search instead for 
Did you mean: 

Change uart baudrate on the fly

Raider E
Associate III
Posted on March 22, 2017 at 11:45

Hi everyone,

i just would like to know know the sequence of reintializing UART port to a new baudarte or change parity on the go during execution.  I am using Hal library. What would be the sequence to do so and does it take long time to reintialize. If anyone can provide an example of changing baud rate would be great!. Many thanks

10 REPLIES 10
Posted on April 26, 2017 at 05:11

Sounds like it has got a framing error from receiving data at the wrong/mixed baud rate. Check the SR signalling error states, and read the DR to clear them.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..