STM32 168MHz (84MHz APB2) 921600 Baud High-Speed UART Calculator

Verify STM32F407 84 MHz APB2 USART_BRR precision at 921,600 bps and 2 Mbps telemetry links with stop-bit drift screening.

Jump to results

Inputs

MCU clock & divider
Frame & oscillator budget
Crystal ~20–50 ppm; internal RC ~10,000 ppm (1%).

Results

Estimates
Baud rate timing error+0.16%
Actual synthesized baud
923,076.9 bps
Prescaler register
BRR = 0x005B (5 + 11/16)
Ideal vs. actual divisor
5.697 → 5.688
Stop-bit worst-case drift
1.58% of 1 bit
Bit / frame duration
1.08 µs / 10.8 µs
Link margin screen
Pass (reliable)
Bit-timing & receiver sampling drift (10-bit frame)
ST D0 D1 D2 D3 D4 D5 D6 D7 SP Ideal center tick (dashed) vs. drifted RX sample dot (amber) Baud error: 0.16% · Stop-bit worst-case drift: 1.58% of 1 bit
Standard baud rates at this clock
Target bpsActual bpsRegisterError %Status
9,6009,600BRR = 0x222E (546 + 14/16)+0%Pass (reliable)
19,20019,200BRR = 0x1117 (273 + 7/16)+0%Pass (reliable)
38,40038,391.2BRR = 0x088C (136 + 12/16)-0.02%Pass (reliable)
57,60057,613.2BRR = 0x05B2 (91 + 2/16)+0.02%Pass (reliable)
115,200115,226.3BRR = 0x02D9 (45 + 9/16)+0.02%Pass (reliable)
230,400230,137BRR = 0x016D (22 + 13/16)-0.11%Pass (reliable)
460,800461,538.5BRR = 0x00B6 (11 + 6/16)+0.16%Pass (reliable)
921,600923,076.9BRR = 0x005B (5 + 11/16)+0.16%Pass (reliable)

Keep single-side baud error under ±2.0% and total TX+RX stop-bit drift well below 45% of one bit period to prevent UART framing errors.

Validate 921.6 kbps high-speed telemetry on STM32F4 APB2

Streaming IMU telemetry, audio logs or bootloader images at 921,600 bps shrinks each bit cell to 1.085 µs. On an STM32F407 running at 168 MHz core clock, APB2 runs at 84 MHz, yielding `USARTDIV = 5.6966` in 16× mode.

Check how the 4-bit fractional divider snaps to `5 + 11/16` (`5.6875`, +0.16% error) and keeps stop-bit sampling drift well inside reliable bounds.

Formulas

  • APB2 = HCLK ÷ 2 = 84 MHz on 168 MHz STM32F4
  • USARTDIV = 84,000,000 ÷ (16 × 921,600) = 5.6966
  • Nearest 1/16th = 5 + 11/16 = 5.6875 (+0.160% error)

Worked example

At 84 MHz APB2 and 921,600 bps, `BRR = 0x005B` synthesizes 923,076.9 bps (+0.160% error) with only 1.58% stop-bit drift across a 10-bit frame.

Frequently asked questions

Do I need DMA for 921,600 bps UART on STM32?

Yes. At 921.6 kbps a new byte arrives every 10.85 µs; using circular RX DMA prevents overrun (ORE) flags during interrupt bursts.

What PCB trace considerations matter at 921,600 bps?

Keep TTL UART traces short (<15 cm) with a continuous ground reference, or switch to differential RS-422/RS-485 transceivers for cable runs over 1 meter.

Can STM32F4 run 2,000,000 bps cleanly on 84 MHz APB2?

Yes—enter 2,000,000 bps in Target baud rate to verify `BRR = 0x002A` (2.625 exact divisor, 0.000% error!).