vinodtech

Tools

UART Baud Rate Calculator

Enter your MCU clock and desired baud rate to compute the actual baud rate, register divisor, and error percentage for 16× and 8× oversampling modes.

Results for 115,200 baud @ 16 MHz

16× oversampling

Standard mode (STM32 OVER8=0, AVR normal)

Register divisor (BRR)9
Actual baud rate111,111 bps
Error-3.549%
Tolerance✗ Exceeds 2%

8× oversampling

High-speed mode (STM32 OVER8=1, AVR U2X=1)

Register divisor (BRR)17
Actual baud rate117,647 bps
Error+2.124%
Tolerance✗ Exceeds 2%

All Common Baud Rates @ 16 MHz

Baud16× BRR16× Error8× BRR8× Error
1,200833+0.04%1667-0.02%
2,400417-0.08%833+0.04%
4,800208+0.16%417-0.08%
9,600104+0.16%208+0.16%
19,20052+0.16%104+0.16%
38,40026+0.16%52+0.16%
57,60017+2.12%35-0.79%
115,2009-3.55%17+2.12%
230,4004+8.51%9-3.55%
460,8002+8.51%4+8.51%
921,6001+8.51%2+8.51%

Green = ≤2% error (standard tolerance) · Amber = 2–5% · Red = >5%