STM32 UART Baud Rate Calculator
Calculate the baud rate register (BRR) value for configuring STM32 UART communication using system clock and oversampling settings.

What this calculator is doing
This calculator computes the BRR (baud rate register) value for STM32's USART/UART peripheral.
Depending on whether oversampling is by 16 or 8, the baud rate calculation is as follows:
For oversampling by 16:
\[
BRR = \frac{f_{\text{CK}}}{\text{Baud Rate}}
\]
For oversampling by 8:
\[
BRR = \frac{2 \cdot f_{\text{CK}}}{\text{Baud Rate}}
\]
Where:
- \( f_{\text{CK}} \): Peripheral clock frequency (usually APB)
- BRR: 16-bit value loaded into USART_BRR register
- Baud Rate: Desired UART communication speed in bits per second
The value is typically split into a mantissa and fraction portion when programming manually. STM32 HAL often
handles this behind the scenes, but this calculator is perfect for register-level configuration.
Looking for similar calculators?
Check out the following calculators as well! They provide similar solutions to this one.
Disclaimer: These calculators are provided for informational purposes only. Always verify your designs against relevant engineering standards and consult a qualified professional. We do not take responsibility for any errors or damages resulting from the use of these calculations.