WormFood's AVR Baud Rate Calculator


Bit Rate Show table of all possible clock speeds, for a given bit rate
Clock Freq, in Mhz Show table of all possible bit rates, for a given clock speed
show additional double speed mode information
show additional synchronous mode information

32.768 Khz
Bit RateUBRRUBRR
(hex)
% of error
300130x000D2.5
60060x00062.5
120020x000212.1
240010x000117.2
480000x000017.2
960000x0000134.4
1440000x0000251.6
1920000x0000368.8
2880000x0000603.1
3840000x0000837.5
5760000x00001306.2
7680000x00001775.0
11520000x00002712.5
23040000x00005525.0
1.8432 Mhz
Bit RateUBRRUBRR
(hex)
% of error
3007670x02FF0.0
6003830x017F0.0
12001910x00BF0.0
2400950x005F0.0
4800470x002F0.0
9600230x00170.0
14400150x000F0.0
19200110x000B0.0
2880070x00070.0
3840050x00050.0
5760030x00030.0
7680020x00020.0
11520010x00010.0
23040000x00000.0
2.4576 Mhz
Bit RateUBRRUBRR
(hex)
% of error
30010230x03FF0.0
6005110x01FF0.0
12002550x00FF0.0
24001270x007F0.0
4800630x003F0.0
9600310x001F0.0
14400200x00141.6
19200150x000F0.0
28800100x000A3.1
3840070x00070.0
5760040x00046.2
7680030x00030.0
11520020x000212.5
23040000x000025.0
3.072 Mhz
Bit RateUBRRUBRR
(hex)
% of error
30012790x04FF0.0
6006390x027F0.0
12003190x013F0.0
24001590x009F0.0
4800790x004F0.0
9600390x00270.0
14400260x001A1.2
19200190x00130.0
28800120x000C2.5
3840090x00090.0
5760060x00065.0
7680040x00040.0
11520020x000210.0
23040010x000120.0
3.2768 Mhz
Bit RateUBRRUBRR
(hex)
% of error
30013640x05540.0
6006820x02AA0.0
12003400x01540.1
24001700x00AA0.2
4800840x00540.4
9600420x002A0.8
14400270x001B1.6
19200200x00141.6
28800130x000D1.6
38400100x000A3.1
5760060x00061.6
7680040x00046.2
11520030x000312.5
23040010x000112.5
3.579545 Mhz
Bit RateUBRRUBRR
(hex)
% of error
30014900x05D20.0
6007450x02E90.0
12003720x01740.0
24001850x00B90.2
4800920x005C0.2
9600460x002E0.8
14400300x001E0.2
19200220x00161.3
28800150x000F3.0
38400110x000B3.0
5760070x00073.0
7680050x00053.0
11520030x00033.0
23040010x00013.0
3.6864 Mhz
Bit RateUBRRUBRR
(hex)
% of error
30015350x05FF0.0
6007670x02FF0.0
12003830x017F0.0
24001910x00BF0.0
4800950x005F0.0
9600470x002F0.0
14400310x001F0.0
19200230x00170.0
28800150x000F0.0
38400110x000B0.0
5760070x00070.0
7680050x00050.0
11520030x00030.0
23040010x00010.0
3.93216 Mhz
Bit RateUBRRUBRR
(hex)
% of error
30016370x06650.0
6008180x03320.0
12004090x01990.1
24002040x00CC0.1
48001010x00650.4
9600500x00320.4
14400330x00210.4
19200250x00191.6
28800160x00100.4
38400120x000C1.6
5760080x00085.5
7680050x00056.2
11520030x00036.2
23040010x00016.2
4 Mhz
Bit RateUBRRUBRR
(hex)
% of error
30016660x06820.0
6008320x03400.0
12004160x01A00.1
24002070x00CF0.2
48001030x00670.2
9600510x00330.2
14400340x00220.8
19200250x00190.2
28800160x00102.1
38400120x000C0.2
5760080x00083.7
7680060x00067.5
11520030x00037.8
23040010x00017.8
4.194304 Mhz
Bit RateUBRRUBRR
(hex)
% of error
30017470x06D30.0
6008730x03690.0
12004360x01B40.0
24002170x00D90.2
48001080x006C0.2
9600540x00360.7
14400350x00231.1
19200260x001A1.1
28800170x00111.1
38400130x000D2.5
5760080x00081.1
7680060x00062.5
11520040x00049.9
23040010x000112.1
4.433619 Mhz
Bit RateUBRRUBRR
(hex)
% of error
30018460x07360.0
6009230x039B0.0
12004610x01CD0.0
24002300x00E60.0
48001140x00720.4
9600570x00390.5
14400370x00251.3
19200280x001C0.5
28800180x00121.3
38400130x000D3.0
5760090x00093.9
7680060x00063.0
11520040x00043.9
23040010x000116.9
4.608 Mhz
Bit RateUBRRUBRR
(hex)
% of error
30019190x077F0.0
6009590x03BF0.0
12004790x01DF0.0
24002390x00EF0.0
48001190x00770.0
9600590x003B0.0
14400390x00270.0
19200290x001D0.0
28800190x00130.0
38400140x000E0.0
5760090x00090.0
7680070x00076.7
11520040x00040.0
23040020x000220.0
4.9152 Mhz
Bit RateUBRRUBRR
(hex)
% of error
30020470x07FF0.0
60010230x03FF0.0
12005110x01FF0.0
24002550x00FF0.0
48001270x007F0.0
9600630x003F0.0
14400420x002A0.8
19200310x001F0.0
28800200x00141.6
38400150x000F0.0
57600100x000A3.1
7680070x00070.0
11520040x00046.2
23040020x000212.5
5 Mhz
Bit RateUBRRUBRR
(hex)
% of error
30020820x08220.0
60010410x04110.0
12005200x02080.0
24002590x01030.2
48001290x00810.2
9600640x00400.2
14400420x002A0.9
19200320x00201.4
28800210x00151.4
38400150x000F1.7
57600100x000A1.4
7680070x00071.7
11520040x00047.8
23040020x000210.6
5.0688 Mhz
Bit RateUBRRUBRR
(hex)
% of error
30021110x083F0.0
60010550x041F0.0
12005270x020F0.0
24002630x01070.0
48001310x00830.0
9600650x00410.0
14400430x002B0.0
19200320x00200.0
28800210x00150.0
38400160x00103.0
57600100x000A0.0
7680070x00073.0
11520050x00059.1
23040020x00029.1
6.144 Mhz
Bit RateUBRRUBRR
(hex)
% of error
30025590x09FF0.0
60012790x04FF0.0
12006390x027F0.0
24003190x013F0.0
48001590x009F0.0
9600790x004F0.0
14400520x00340.6
19200390x00270.0
28800260x001A1.2
38400190x00130.0
57600120x000C2.5
7680090x00090.0
11520060x00065.0
23040020x000210.0
6.4 Mhz
Bit RateUBRRUBRR
(hex)
% of error
30026660x0A6A0.0
60013320x05340.0
12006660x029A0.0
24003320x014C0.1
48001660x00A60.2
9600820x00520.4
14400550x00370.8
19200410x00290.8
28800270x001B0.8
38400200x00140.8
57600130x000D0.8
7680090x00094.0
11520060x00060.8
23040020x000213.6
7.3728 Mhz
Bit RateUBRRUBRR
(hex)
% of error
30030710x0BFF0.0
60015350x05FF0.0
12007670x02FF0.0
24003830x017F0.0
48001910x00BF0.0
9600950x005F0.0
14400630x003F0.0
19200470x002F0.0
28800310x001F0.0
38400230x00170.0
57600150x000F0.0
76800110x000B0.0
11520070x00070.0
23040030x00030.0
8 Mhz
Bit RateUBRRUBRR
(hex)
% of error
30033320x0D040.0
60016660x06820.0
12008320x03400.0
24004160x01A00.1
48002070x00CF0.2
96001030x00670.2
14400680x00440.6
19200510x00330.2
28800340x00220.8
38400250x00190.2
57600160x00102.1
76800120x000C0.2
11520080x00083.7
23040030x00037.8
9.216 Mhz
Bit RateUBRRUBRR
(hex)
% of error
30038390x0EFF0.0
60019190x077F0.0
12009590x03BF0.0
24004790x01DF0.0
48002390x00EF0.0
96001190x00770.0
14400790x004F0.0
19200590x003B0.0
28800390x00270.0
38400290x001D0.0
57600190x00130.0
76800140x000E0.0
11520090x00090.0
23040040x00040.0
10 Mhz
Bit RateUBRRUBRR
(hex)
% of error
30041660x10460.0
60020820x08220.0
120010410x04110.0
24005200x02080.0
48002590x01030.2
96001290x00810.2
14400860x00560.2
19200640x00400.2
28800420x002A0.9
38400320x00201.4
57600210x00151.4
76800150x000F1.7
115200100x000A1.4
23040040x00047.8
10.24 Mhz
Bit RateUBRRUBRR
(hex)
% of error
30042660x10AA0.0
60021320x08540.0
120010660x042A0.0
24005320x02140.1
48002660x010A0.1
96001320x00840.2
14400880x00580.1
19200660x00420.5
28800430x002B1.0
38400320x00201.0
57600210x00151.0
76800160x00102.0
115200100x000A1.0
23040050x00058.0
11.0592 Mhz
Bit RateUBRRUBRR
(hex)
% of error
30046070x11FF0.0
60023030x08FF0.0
120011510x047F0.0
24005750x023F0.0
48002870x011F0.0
96001430x008F0.0
14400950x005F0.0
19200710x00470.0
28800470x002F0.0
38400350x00230.0
57600230x00170.0
76800170x00110.0
115200110x000B0.0
23040050x00050.0
12 Mhz
Bit RateUBRRUBRR
(hex)
% of error
30049990x13870.0
60024990x09C30.0
120012490x04E10.0
24006240x02700.0
48003120x01380.2
96001550x009B0.2
144001030x00670.2
19200770x004D0.2
28800510x00330.2
38400380x00260.2
57600250x00190.2
76800190x00132.4
115200120x000C0.2
23040060x00067.5
12.288 Mhz
Bit RateUBRRUBRR
(hex)
% of error
30051190x13FF0.0
60025590x09FF0.0
120012790x04FF0.0
24006390x027F0.0
48003190x013F0.0
96001590x009F0.0
144001060x006A0.3
19200790x004F0.0
28800520x00340.6
38400390x00270.0
57600260x001A1.2
76800190x00130.0
115200120x000C2.5
23040060x00065.0
12.8 Mhz
Bit RateUBRRUBRR
(hex)
% of error
30053320x14D40.0
60026660x0A6A0.0
120013320x05340.0
24006660x029A0.0
48003320x014C0.1
96001660x00A60.2
144001100x006E0.1
19200820x00520.4
28800550x00370.8
38400410x00290.8
57600270x001B0.8
76800200x00140.8
115200130x000D0.8
23040060x00060.8
14.318182 Mhz
Bit RateUBRRUBRR
(hex)
% of error
30059650x174D0.0
60029820x0BA60.0
120014900x05D20.0
24007450x02E90.0
48003720x01740.0
96001850x00B90.2
144001230x007B0.2
19200920x005C0.2
28800610x003D0.2
38400460x002E0.8
57600300x001E0.2
76800220x00161.3
115200150x000F3.0
23040070x00073.0
14.7456 Mhz
Bit RateUBRRUBRR
(hex)
% of error
30061430x17FF0.0
60030710x0BFF0.0
120015350x05FF0.0
24007670x02FF0.0
48003830x017F0.0
96001910x00BF0.0
144001270x007F0.0
19200950x005F0.0
28800630x003F0.0
38400470x002F0.0
57600310x001F0.0
76800230x00170.0
115200150x000F0.0
23040070x00070.0
16 Mhz
Bit RateUBRRUBRR
(hex)
% of error
30066660x1A0A0.0
60033320x0D040.0
120016660x06820.0
24008320x03400.0
48004160x01A00.1
96002070x00CF0.2
144001380x008A0.1
192001030x00670.2
28800680x00440.6
38400510x00330.2
57600340x00220.8
76800250x00190.2
115200160x00102.1
23040080x00083.7
16.8 Mhz
Bit RateUBRRUBRR
(hex)
% of error
30069990x1B570.0
60034990x0DAB0.0
120017490x06D50.0
24008740x036A0.0
48004370x01B50.1
96002180x00DA0.1
144001450x00910.1
192001080x006C0.3
28800720x00480.1
38400540x00360.6
57600350x00231.3
76800260x001A1.3
115200170x00111.3
23040080x00081.3
18.432 Mhz
Bit RateUBRRUBRR
(hex)
% of error
30076790x1DFF0.0
60038390x0EFF0.0
120019190x077F0.0
24009590x03BF0.0
48004790x01DF0.0
96002390x00EF0.0
144001590x009F0.0
192001190x00770.0
28800790x004F0.0
38400590x003B0.0
57600390x00270.0
76800290x001D0.0
115200190x00130.0
23040090x00090.0
20 Mhz
Bit RateUBRRUBRR
(hex)
% of error
30083320x208C0.0
60041660x10460.0
120020820x08220.0
240010410x04110.0
48005200x02080.0
96002590x01030.2
144001730x00AD0.2
192001290x00810.2
28800860x00560.2
38400640x00400.2
57600420x002A0.9
76800320x00201.4
115200210x00151.4
230400100x000A1.4
30 Mhz
Bit RateUBRRUBRR
(hex)
% of error
300124990x30D30.0
60062490x18690.0
120031240x0C340.0
240015620x061A0.0
48007800x030C0.0
96003900x01860.1
144002590x01030.2
192001940x00C20.2
288001290x00810.2
38400970x00610.4
57600640x00400.2
76800480x00300.4
115200320x00201.4
230400150x000F1.7
32.768 Mhz
Bit RateUBRRUBRR
(hex)
% of error
300136520x35540.0
60068260x1AAA0.0
120034120x0D540.0
240017060x06AA0.0
48008520x03540.0
96004260x01AA0.1
144002830x011B0.2
192002120x00D40.2
288001410x008D0.2
384001060x006A0.3
57600700x00460.2
76800520x00340.6
115200350x00231.2
230400170x00111.2
40 Mhz
Bit RateUBRRUBRR
(hex)
% of error
300166660x411A0.0
60083320x208C0.0
120041660x10460.0
240020820x08220.0
480010410x04110.0
96005200x02080.0
144003460x015A0.1
192002590x01030.2
288001730x00AD0.2
384001290x00810.2
57600860x00560.2
76800640x00400.2
115200420x002A0.9
230400210x00151.4
Legend:
UBRR out of range
UBRR and clock speed are a perfect match
UBRR and clock speed are less than 1% off
UBRR and clock speed are between 1% and 2% off
UBRR and clock speed are between 2% and 3% off
UBRR and clock speed are between 3% and 5% off
UBRR and clock speed is over 5% off


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". 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, however, all other references are as "bit rate".

NOTE: This page was originally written when there was only one UBRR register, but newer AVR models have 2 UBRR registers, so some of the lower values that show out of range, are really in range. I will update this page some time in the future.

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 you enter a serial port bit rate, not already listed, then the serial port bit rate will be listed as the last entry on each clock speed table. If you enter a clock speed that is not already listed, then a new clock speed table will be added to the end of the list.

If you would like to contact me about this program, if you have any questions or requests then stop by channel #avr on the FreeNode IRC network.

AVRBaudCalc is ©2005-2013 by WormFood