Part Number: MSPM0G3507
Hi team,
My customer is asking how to dynamically switch UART baud rate ? For example, change from 9600 to 115200 bps.
Thank you.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: MSPM0G3507
Hi team,
My customer is asking how to dynamically switch UART baud rate ? For example, change from 9600 to 115200 bps.
Thank you.
The Baud Rate can be changed dynamically using the divisor register IBRD or FBRD, found in section 23.3.32/33 of the TRM respectively.
In order to change the baud rate, the application must wait for the current transmission to finish and for both lines to IDLE before writing the new divisor to the IBRD/FBRD register. This write will change the baud rate of the peripheral.
This change MUST be followed by a write to the UART.LCRH register. Baud rate calculation, usage of the IBRD, FBRD, and LCRH register are outlined in section 23.2.3.4 of the TRM.
Best Regards,
Tyler
Hi Tyler,
Thanks for your information. I will let customer feedback if this solve their problem. Thank you.