UART Baud Rate Calculator – UBRR, BRR & Frame Timing
NOVOUART baud rate calculator: bit and frame time, bytes per second and transfer time, plus AVR UBRR and STM32 BRR divisors with baud error %. Free, runs in your browser.
Funciona 100% no seu navegador — o que você insere nunca é enviado nem armazenado nos nossos servidores.
Esta ferramenta ainda não está totalmente traduzida, por isso parte do texto continua em inglês. A ferramenta funciona da mesma forma em todos os idiomas.
- Bit time
- 8.681 µs
- Frame (10 bits)
- 86.81 µs
- Max throughput
- 11520 B/s
- Efficiency
- 80 %
Sending 1024 bytes takes 88.89 ms back-to-back.
frame = 1 start + 8 data + 0 parity + 1 stop = 10 bits bit time = 1 / 115200 = 8.681 µs
Common baud rates on 8 MHz and 16 MHz AVR
| Baud | 8 MHz | 8 MHz U2X | 16 MHz | 16 MHz U2X |
|---|---|---|---|---|
| 2400 | 207 · +0.16 % | 416 · -0.08 % | 416 · -0.08 % | 832 · +0.04 % |
| 4800 | 103 · +0.16 % | 207 · +0.16 % | 207 · +0.16 % | 416 · -0.08 % |
| 9600 | 51 · +0.16 % | 103 · +0.16 % | 103 · +0.16 % | 207 · +0.16 % |
| 14400 | 34 · -0.79 % | 68 · +0.64 % | 68 · +0.64 % | 138 · -0.08 % |
| 19200 | 25 · +0.16 % | 51 · +0.16 % | 51 · +0.16 % | 103 · +0.16 % |
| 28800 | 16 · +2.12 % | 34 · -0.79 % | 34 · -0.79 % | 68 · +0.64 % |
| 38400 | 12 · +0.16 % | 25 · +0.16 % | 25 · +0.16 % | 51 · +0.16 % |
| 57600 | 8 · -3.55 % | 16 · +2.12 % | 16 · +2.12 % | 34 · -0.79 % |
| 76800 | 6 · -6.99 % | 12 · +0.16 % | 12 · +0.16 % | 25 · +0.16 % |
| 115200 | 3 · +8.51 % | 8 · -3.55 % | 8 · -3.55 % | 16 · +2.12 % |
| 230400 | 1 · +8.51 % | 3 · +8.51 % | 3 · +8.51 % | 8 · -3.55 % |
| 250000 | 1 · +0.00 % | 3 · +0.00 % | 3 · +0.00 % | 7 · +0.00 % |
| 500000 | 0 · +0.00 % | 1 · +0.00 % | 1 · +0.00 % | 3 · +0.00 % |
| 1000000 | 0 · -50.00 % | 0 · +0.00 % | 0 · +0.00 % | 1 · +0.00 % |
Exemplos rápidos
Entradas típicas e os resultados que esta ferramenta gera.
Visão geral
A UART sends each byte inside a frame: a start bit, five to nine data bits, an optional parity bit and one, one and a half or two stop bits. This UART baud rate calculator turns a baud rate and frame format such as 8N1 into the bit time, frame time, maximum bytes per second and the time needed to send a block of data, which is what you need when sizing buffers or timeouts.
The second half answers the classic microcontroller question: what value goes in the baud register, and how far off will the real baud rate be? It computes AVR UBRR in normal and double-speed (U2X) mode, STM32 USARTDIV and BRR for 16x and 8x oversampling, and a generic integer divisor, then flags any error above ±2 %. A table shows common baud rates on 8 MHz and 16 MHz AVR boards such as the Arduino Uno.
All maths runs in your browser.
Por que usar esta ferramenta?
- Frame, throughput and transfer time in one place
- AVR UBRR with and without U2X
- STM32 BRR for oversampling 16 and 8
- Flags baud errors above ±2 %
- Free, instant and private
Recursos
Frame timing
Bit time, frame time, efficiency and maximum bytes per second for any 5–9 data bit, parity and stop bit setting.
Transfer time
Enter a byte count to see how long a block takes to send back-to-back.
AVR UBRR
Normal and U2X double-speed divisors with the resulting baud rate, as used by Arduino Uno, Nano and Mega.
STM32 BRR
USARTDIV with mantissa and fraction for 16x and 8x oversampling, packed into the BRR register value.
Error check
Error is colour-coded and flagged above ±2 %, with warnings when the divisor is out of range.
Common baud table
UBRR and error for standard baud rates from 2400 to 1 Mbaud on 8 and 16 MHz clocks.
Como usar
Set the frame
Enter the baud rate and pick data bits, parity and stop bits; optionally type how many bytes you will send.
Read the timing
Bit time, frame time, throughput and transfer time appear immediately.
Enter your clock
Type the peripheral clock (for example 16 MHz or 72M) and choose the divisor type for your MCU.
Copy the register
Copy the UBRR or BRR value and check that the error stays within ±2 %.