Skip to main content
Muzahir Hussain
Associate III
January 16, 2018
Question

Setting the baud rate of USART in STM32F103RB.

  • January 16, 2018
  • 1 reply
  • 670 views
Posted on January 16, 2018 at 18:21

Why do we need to calculate the baudrate using the formula,

baud =fCK / (16*USARTDIV)

I mean why can't we write 9600 or any other desired baudrate directly in USART_BRR register? What is the purpose of performing  this calculation first? What are we calculating here anyway?

This might be a dumb question to ask, but I am really confused here. Please help.

Thanks in advance!

#stm32f103rb #uart #usart #uart-ft-serial-communications
This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
January 16, 2018
Posted on January 16, 2018 at 18:44

Dupe

https://community.st.com/0D50X00009XkX8RSAV

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