How to change UART baud rate in software?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello!

   

Is there any API to change the UART baud rate? I have tried to search it in the datasheet of UART, but I counldn't find it. So how to change UART baud rate in software?

   

Thanks!

0 Likes
1 Solution
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

You can provide an external clock to the SCB UART. Together with the oversampling factor this determines the baud rate. And then you can change the external clock to qhatever you need.

View solution in original post

0 Likes
2 Replies
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

You can provide an external clock to the SCB UART. Together with the oversampling factor this determines the baud rate. And then you can change the external clock to qhatever you need.

0 Likes

HI,

Use Clock_SetDivider() API for the clock you connected to the UART. See clock datasheet.

And you can refer this also.

baudrate.PNG

Jagir

0 Likes