WormFood's AVR Baud Rate Calculator


Bit Rate Consider only 8-bit UBRR values as being valid (useful for older AVRs)
Clock Freq, in MHz Hide additional U2X=1 double speed mode information (useful for older AVRs)
Data bits+parity Show actual bit rate on tables.
No color (B/W only)
Show table of all possible bit rates (and their UBRR values), for a given clock speed
WARNING: Will create insanely large tables, if not limited to 8-bit UBRR values
Show table of all possible clock speeds (and corresponding UBRR values), for a given bit rate
WARNING: Will create insanely large tables, if not limited to 8-bit UBRR values
show additional synchronous mode information
NOTE: This check box does nothing, if one of the two options above are not selected.

fosc = 1 MHz
Bit Rate
(bps)
U2Xn = 0U2Xn = 1
UBRR
(dec)
UBRR
(hex)
ErrorUBRR
(dec)
UBRR
(hex)
Error
3002070x0CF0.2%4160x1A00.1%
6001030x0670.2%2070x0CF0.2%
1200510x0330.2%1030x0670.2%
2400250x0190.2%510x0330.2%
4800120x00C0.2%250x0190.2%
960060x0067.0%120x00C0.2%
14.4K30x0038.5%80x0083.5%
19.2K20x0028.5%60x0067.0%
28.8K10x0018.5%30x0038.5%
38.4K10x00118.6%20x0028.5%
57.6K00x0008.5%10x0018.5%
76.8K00x00018.6%10x00118.6%
115.2K00x00045.7%00x0008.5%
230.4K00x00072.9%00x00045.7%
250K00x00075.0%00x00050.0%
460.8K00x00086.4%00x00072.9%
500K00x00087.5%00x00075.0%
921.6K00x00093.2%00x00086.4%
1M00x00093.8%00x00087.5%
Max.62.5 Kbps125 Kbps
fosc = 1.8432 MHz
Bit Rate
(bps)
U2Xn = 0U2Xn = 1
UBRR
(dec)
UBRR
(hex)
ErrorUBRR
(dec)
UBRR
(hex)
Error
3003830x17F0.0%7670x2FF0.0%
6001910x0BF0.0%3830x17F0.0%
1200950x05F0.0%1910x0BF0.0%
2400470x02F0.0%950x05F0.0%
4800230x0170.0%470x02F0.0%
9600110x00B0.0%230x0170.0%
14.4K70x0070.0%150x00F0.0%
19.2K50x0050.0%110x00B0.0%
28.8K30x0030.0%70x0070.0%
38.4K20x0020.0%50x0050.0%
57.6K10x0010.0%30x0030.0%
76.8K10x00125.0%20x0020.0%
115.2K00x0000.0%10x0010.0%
230.4K00x00050.0%00x0000.0%
250K00x00053.9%00x0007.8%
460.8K00x00075.0%00x00050.0%
500K00x00077.0%00x00053.9%
921.6K00x00087.5%00x00075.0%
1M00x00088.5%00x00077.0%
Max.115.2 Kbps230.4 Kbps
fosc = 2 MHz
Bit Rate
(bps)
U2Xn = 0U2Xn = 1
UBRR
(dec)
UBRR
(hex)
ErrorUBRR
(dec)
UBRR
(hex)
Error
3004160x1A00.1%8320x3400.0%
6002070x0CF0.2%4160x1A00.1%
12001030x0670.2%2070x0CF0.2%
2400510x0330.2%1030x0670.2%
4800250x0190.2%510x0330.2%
9600120x00C0.2%250x0190.2%
14.4K80x0083.5%160x0102.1%
19.2K60x0067.0%120x00C0.2%
28.8K30x0038.5%80x0083.5%
38.4K20x0028.5%60x0067.0%
57.6K10x0018.5%30x0038.5%
76.8K10x00118.6%20x0028.5%
115.2K00x0008.5%10x0018.5%
230.4K00x00045.7%00x0008.5%
250K00x00050.0%00x0000.0%
460.8K00x00072.9%00x00045.7%
500K00x00075.0%00x00050.0%
921.6K00x00086.4%00x00072.9%
1M00x00087.5%00x00075.0%
Max.125 Kbps250 Kbps
fosc = 3.6864 MHz
Bit Rate
(bps)
U2Xn = 0U2Xn = 1
UBRR
(dec)
UBRR
(hex)
ErrorUBRR
(dec)
UBRR
(hex)
Error
3007670x2FF0.0%15350x5FF0.0%
6003830x17F0.0%7670x2FF0.0%
12001910x0BF0.0%3830x17F0.0%
2400950x05F0.0%1910x0BF0.0%
4800470x02F0.0%950x05F0.0%
9600230x0170.0%470x02F0.0%
14.4K150x00F0.0%310x01F0.0%
19.2K110x00B0.0%230x0170.0%
28.8K70x0070.0%150x00F0.0%
38.4K50x0050.0%110x00B0.0%
57.6K30x0030.0%70x0070.0%
76.8K20x0020.0%50x0050.0%
115.2K10x0010.0%30x0030.0%
230.4K00x0000.0%10x0010.0%
250K00x0007.8%10x0017.8%
460.8K00x00050.0%00x0000.0%
500K00x00053.9%00x0007.8%
921.6K00x00075.0%00x00050.0%
1M00x00077.0%00x00053.9%
Max.230.4 Kbps460.8 Kbps
fosc = 4 MHz
Bit Rate
(bps)
U2Xn = 0U2Xn = 1
UBRR
(dec)
UBRR
(hex)
ErrorUBRR
(dec)
UBRR
(hex)
Error
3008320x3400.0%16660x6820.0%
6004160x1A00.1%8320x3400.0%
12002070x0CF0.2%4160x1A00.1%
24001030x0670.2%2070x0CF0.2%
4800510x0330.2%1030x0670.2%
9600250x0190.2%510x0330.2%
14.4K160x0102.1%340x0220.8%
19.2K120x00C0.2%250x0190.2%
28.8K80x0083.5%160x0102.1%
38.4K60x0067.0%120x00C0.2%
57.6K30x0038.5%80x0083.5%
76.8K20x0028.5%60x0067.0%
115.2K10x0018.5%30x0038.5%
230.4K00x0008.5%10x0018.5%
250K00x0000.0%10x0010.0%
460.8K00x00045.7%00x0008.5%
500K00x00050.0%00x0000.0%
921.6K00x00072.9%00x00045.7%
1M00x00075.0%00x00050.0%
Max.250 Kbps500 Kbps
fosc = 7.3728 MHz
Bit Rate
(bps)
U2Xn = 0U2Xn = 1
UBRR
(dec)
UBRR
(hex)
ErrorUBRR
(dec)
UBRR
(hex)
Error
30015350x5FF0.0%30710xBFF0.0%
6007670x2FF0.0%15350x5FF0.0%
12003830x17F0.0%7670x2FF0.0%
24001910x0BF0.0%3830x17F0.0%
4800950x05F0.0%1910x0BF0.0%
9600470x02F0.0%950x05F0.0%
14.4K310x01F0.0%630x03F0.0%
19.2K230x0170.0%470x02F0.0%
28.8K150x00F0.0%310x01F0.0%
38.4K110x00B0.0%230x0170.0%
57.6K70x0070.0%150x00F0.0%
76.8K50x0050.0%110x00B0.0%
115.2K30x0030.0%70x0070.0%
230.4K10x0010.0%30x0030.0%
250K10x0017.8%30x0037.8%
460.8K00x0000.0%10x0010.0%
500K00x0007.8%10x0017.8%
921.6K00x00050.0%00x0000.0%
1M00x00053.9%00x0007.8%
Max.460.8 Kbps921.6 Kbps
fosc = 8 MHz
Bit Rate
(bps)
U2Xn = 0U2Xn = 1
UBRR
(dec)
UBRR
(hex)
ErrorUBRR
(dec)
UBRR
(hex)
Error
30016660x6820.0%33320xD040.0%
6008320x3400.0%16660x6820.0%
12004160x1A00.1%8320x3400.0%
24002070x0CF0.2%4160x1A00.1%
48001030x0670.2%2070x0CF0.2%
9600510x0330.2%1030x0670.2%
14.4K340x0220.8%680x0440.6%
19.2K250x0190.2%510x0330.2%
28.8K160x0102.1%340x0220.8%
38.4K120x00C0.2%250x0190.2%
57.6K80x0083.5%160x0102.1%
76.8K60x0067.0%120x00C0.2%
115.2K30x0038.5%80x0083.5%
230.4K10x0018.5%30x0038.5%
250K10x0010.0%30x0030.0%
460.8K00x0008.5%10x0018.5%
500K00x0000.0%10x0010.0%
921.6K00x00045.7%00x0008.5%
1M00x00050.0%00x0000.0%
Max.500 Kbps1 Mbps
fosc = 11.0592 MHz
Bit Rate
(bps)
U2Xn = 0U2Xn = 1
UBRR
(dec)
UBRR
(hex)
ErrorUBRR
(dec)
UBRR
(hex)
Error
30023030x8FF0.0%46070x11FF0.0%
60011510x47F0.0%23030x8FF0.0%
12005750x23F0.0%11510x47F0.0%
24002870x11F0.0%5750x23F0.0%
48001430x08F0.0%2870x11F0.0%
9600710x0470.0%1430x08F0.0%
14.4K470x02F0.0%950x05F0.0%
19.2K350x0230.0%710x0470.0%
28.8K230x0170.0%470x02F0.0%
38.4K170x0110.0%350x0230.0%
57.6K110x00B0.0%230x0170.0%
76.8K80x0080.0%170x0110.0%
115.2K50x0050.0%110x00B0.0%
230.4K20x0020.0%50x0050.0%
250K20x0027.8%50x0057.8%
460.8K10x00125.0%20x0020.0%
500K00x00038.2%20x0027.8%
921.6K00x00025.0%10x00125.0%
1M00x00030.9%00x00038.2%
Max.691.2 Kbps1.38 Mbps
fosc = 14.7456 MHz
Bit Rate
(bps)
U2Xn = 0U2Xn = 1
UBRR
(dec)
UBRR
(hex)
ErrorUBRR
(dec)
UBRR
(hex)
Error
30030710xBFF0.0%61430x17FF0.0%
60015350x5FF0.0%30710xBFF0.0%
12007670x2FF0.0%15350x5FF0.0%
24003830x17F0.0%7670x2FF0.0%
48001910x0BF0.0%3830x17F0.0%
9600950x05F0.0%1910x0BF0.0%
14.4K630x03F0.0%1270x07F0.0%
19.2K470x02F0.0%950x05F0.0%
28.8K310x01F0.0%630x03F0.0%
38.4K230x0170.0%470x02F0.0%
57.6K150x00F0.0%310x01F0.0%
76.8K110x00B0.0%230x0170.0%
115.2K70x0070.0%150x00F0.0%
230.4K30x0030.0%70x0070.0%
250K30x0037.8%60x0065.3%
460.8K10x0010.0%30x0030.0%
500K10x0017.8%30x0037.8%
921.6K00x0000.0%10x0010.0%
1M00x0007.8%10x0017.8%
Max.921.6 Kbps1.84 Mbps
fosc = 16 MHz
Bit Rate
(bps)
U2Xn = 0U2Xn = 1
UBRR
(dec)
UBRR
(hex)
ErrorUBRR
(dec)
UBRR
(hex)
Error
30033320xD040.0%66660x1A0A0.0%
60016660x6820.0%33320xD040.0%
12008320x3400.0%16660x6820.0%
24004160x1A00.1%8320x3400.0%
48002070x0CF0.2%4160x1A00.1%
96001030x0670.2%2070x0CF0.2%
14.4K680x0440.6%1380x08A0.1%
19.2K510x0330.2%1030x0670.2%
28.8K340x0220.8%680x0440.6%
38.4K250x0190.2%510x0330.2%
57.6K160x0102.1%340x0220.8%
76.8K120x00C0.2%250x0190.2%
115.2K80x0083.5%160x0102.1%
230.4K30x0038.5%80x0083.5%
250K30x0030.0%70x0070.0%
460.8K10x0018.5%30x0038.5%
500K10x0010.0%30x0030.0%
921.6K00x0008.5%10x0018.5%
1M00x0000.0%10x0010.0%
Max.1 Mbps2 Mbps
fosc = 18.432 MHz
Bit Rate
(bps)
U2Xn = 0U2Xn = 1
UBRR
(dec)
UBRR
(hex)
ErrorUBRR
(dec)
UBRR
(hex)
Error
30038390xEFF0.0%76790x1DFF0.0%
60019190x77F0.0%38390xEFF0.0%
12009590x3BF0.0%19190x77F0.0%
24004790x1DF0.0%9590x3BF0.0%
48002390x0EF0.0%4790x1DF0.0%
96001190x0770.0%2390x0EF0.0%
14.4K790x04F0.0%1590x09F0.0%
19.2K590x03B0.0%1190x0770.0%
28.8K390x0270.0%790x04F0.0%
38.4K290x01D0.0%590x03B0.0%
57.6K190x0130.0%390x0270.0%
76.8K140x00E0.0%290x01D0.0%
115.2K90x0090.0%190x0130.0%
230.4K40x0040.0%90x0090.0%
250K40x0047.8%80x0082.4%
460.8K20x00216.7%40x0040.0%
500K10x00115.2%40x0047.8%
921.6K00x00025.0%20x00216.7%
1M00x00015.2%10x00115.2%
Max.1.15 Mbps2.3 Mbps
fosc = 20 MHz
Bit Rate
(bps)
U2Xn = 0U2Xn = 1
UBRR
(dec)
UBRR
(hex)
ErrorUBRR
(dec)
UBRR
(hex)
Error
30041660x10460.0%83320x208C0.0%
60020820x8220.0%41660x10460.0%
120010410x4110.0%20820x8220.0%
24005200x2080.0%10410x4110.0%
48002590x1030.2%5200x2080.0%
96001290x0810.2%2590x1030.2%
14.4K860x0560.2%1730x0AD0.2%
19.2K640x0400.2%1290x0810.2%
28.8K420x02A0.9%860x0560.2%
38.4K320x0201.4%640x0400.2%
57.6K210x0151.4%420x02A0.9%
76.8K150x00F1.7%320x0201.4%
115.2K100x00A1.4%210x0151.4%
230.4K40x0048.5%100x00A1.4%
250K40x0040.0%90x0090.0%
460.8K20x0029.6%40x0048.5%
500K20x00216.7%40x0040.0%
921.6K00x00035.6%20x0029.6%
1M00x00025.0%20x00216.7%
Max.1.25 Mbps2.5 Mbps
Please note, that the colors will change, depending on your data bits+parity selection.
Please see the Atmel manual for your AVR for more details about how the data bits+parity, and U2X=1 settings affect the maximum allowable error rate.
Legend:
Error rate is 0.5% or less off
Error rate is within the recommended maximum error rate
Error rate is in the lower half, between recommended and absolute max error rates
Error rate is in the upper half, between recommended and absolute max error rates
Error rate is outside of the absolute maximum error rate.
Error rate is more than twice the absolute maximum error rate
Recommended Maximum Receiver Bit Rate Error for Normal Speed Mode (U2X=0)
D
# (Data+Parity Bit)
Rslow(%)Rfast(%)Max. total error (%)Recommended max.
receiver error (%)
593.20106.67+6.67/-6.8±3.0
694.12105.79+5.79/-5.88±2.5
794.81105.11+5.11/-5.19±2.0
895.36104.58+4.58/-4.54±2.0
995.81104.14+4.14/-4.19±1.5
1096.17103.78+3.78/-3.83±1.5
Recommended Maximum Receiver Bit Rate Error for Double Speed Mode (U2X=1)
D
# (Data+Parity Bit)
Rslow(%)Rfast(%)Max. total error (%)Recommended max.
receiver error (%)
594.12105.66+5.66/-5.88±2.5
694.92104.92+4.92/-5.08±2.0
795.52104.35+4.35/-4.48±1.5
896.00103.90+3.90/-4.00±1.5
996.39103.53+3.53/-3.61±1.5
1096.70103.23+3.23/-3.30±1.0

I call this a "baud rate calculator", however, "baud rate" is technically an incorrect term. It should be called a "bit rate calculator". Because people misuse the term "baud" so frequently, many do not know there is a difference between "bit rate" and "baud rate". Since Atmel uses the term "baud rate" in their AVR manuals and data sheets, it seems natural to name this a "baud rate calculator", even though I know it's abuse of the word "baud". I use the term "baud rate" on the title, knowing it is wrong, so people would be able to find this page, when searching the web, (even Atmel uses "baud rate") however, all other references are as "bit rate".

NOTE about the UBRR register(s): Some AVRs only have a single UBRR register, while other AVRs have two UBRR registers. If your AVR has only 1 UBRR register, then you can check the box "Consider only 8-bit UBRR values as being valid" to have it show you when the UBRR value is out of range for your AVR. If your AVR handles a 12-bit UBRR value, then the UBRR value in hexadecimal will be helpful to you, because it will make it easier to find the UBRRH and UBRRL values (I'm sure you can figure out what goes where).

NOTE about XMEGA AVRs: The UBRR values generated, can be used as the BSEL value in the XMEGA AVRs, if and only if you set BSCALE to zero. If there is enough interest for this calculator to support the XMEGA series, then I will add BSCALE calculations to the list, but for now, there is no easy way to to calculate BSCALE without already knowing knowing what BSEL value you want to use, so it's computationally expensive to calculate.

How to use this page:
Without entering anything, you can get a list of the UBRR settings for many popular clock speeds, and serial port bit rates. What makes this program special, is the fact that you can tell it what serial port bit rate you want, and it will tell you all the possible clock speeds that will generate your desired serial port bit rate. You can also give it a clock speed, and it will tell you all the possible serial port bit rates that can be producted with that clock speed. This is very handy when you are searching through your "junk pile", looking for the right crystal, or oscillator to generate a given serial port bit rate.


If your AVR related serial port calculation needs were not answered with this calculator, or if you have any suggestions or requests, or notice any errors or have any problems with this calculator, or, if you just want to say "hi", then please give me a shout on my contact page or stop by channel #avr on the Libera IRC network .

AVRBaudCalc is ©2005-2022 by WormFood