Not WormFood's AVR Baud Rate Calculator

For many years I have been using Wormfood's Baud Rate Calculator which used to be available under http://wormfood.net/avrbaudcalc. But since a couple of months this site has been down and there only a few hardcopies and a partly functional copy preserved on the net.

Today, 2019-11-17, I dusted off my php-knowledge and recreated the functionality from scratch. On this page you can either refer to common standard values for CPU frequencies for the Microchip AVR series of microcontrollers, or enter your own frequency of choice.

As a result you will see the achievable standard bit rates (aka Baud rates) using the hardware UART in these microcontrollers and you can see why a communication might not work - if the bit rate error simply is too big.

AVR Bit Rate Calculator

fosc:

fosc = 1 000 000 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
3002073000.0%4163000.0%
6001036010.2%2076010.2%
12005112020.2%10312020.2%
24002524040.2%5124040.2%
48001248080.2%2548080.2%
960068929-7.0%1296150.2%
144003156258.5%813889-3.5%
192002208338.5%617857-7.0%
288001312508.5%3312508.5%
576000625008.5%1625008.5%
76800062500-18.6%162500-18.6%
115200062500-45.7%01250008.5%
128000062500-51.2%0125000-2.3%
230400062500-72.9%0125000-45.7%
256000062500-75.6%0125000-51.2%
Legend:
UBRR out of range
bit rate perfectly matched
bit rate error less than 1 %
bit rate error less than 2 %
bit rate error less than 3 %
bit rate error less than 4 %
bit rate error larger than 4 %

Standard clock frequencies

fosc = 32 768 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
3006293-2.3%13293-2.3%
600268313.8%6585-2.5%
120011024-14.7%2136513.8%
240002048-14.7%12048-14.7%
480002048-57.3%04096-14.7%
960002048-78.7%04096-57.3%
1440002048-85.8%04096-71.6%
1920002048-89.3%04096-78.7%
2880002048-92.9%04096-85.8%
5760002048-96.4%04096-92.9%
7680002048-97.3%04096-94.7%
11520002048-98.2%04096-96.4%
12800002048-98.4%04096-96.8%
23040002048-99.1%04096-98.2%
25600002048-99.2%04096-98.4%
fosc = 128 000 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
30026296-1.3%523020.7%
600126152.5%26593-1.2%
120061143-4.8%1212312.6%
24002266711.1%62286-4.8%
480014000-16.7%2533311.1%
960008000-16.7%18000-16.7%
1440008000-44.4%01600011.1%
1920008000-58.3%016000-16.7%
2880008000-72.2%016000-44.4%
5760008000-86.1%016000-72.2%
7680008000-89.6%016000-79.2%
11520008000-93.1%016000-86.1%
12800008000-93.8%016000-87.5%
23040008000-96.5%016000-93.1%
25600008000-96.9%016000-93.8%
fosc = 1 000 000 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
3002073000.0%4163000.0%
6001036010.2%2076010.2%
12005112020.2%10312020.2%
24002524040.2%5124040.2%
48001248080.2%2548080.2%
960068929-7.0%1296150.2%
144003156258.5%813889-3.5%
192002208338.5%617857-7.0%
288001312508.5%3312508.5%
576000625008.5%1625008.5%
76800062500-18.6%162500-18.6%
115200062500-45.7%01250008.5%
128000062500-51.2%0125000-2.3%
230400062500-72.9%0125000-45.7%
256000062500-75.6%0125000-51.2%
fosc = 1 843 200 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
3003833000.0%7673000.0%
6001916000.0%3836000.0%
12009512000.0%19112000.0%
24004724000.0%9524000.0%
48002348000.0%4748000.0%
96001196000.0%2396000.0%
144007144000.0%15144000.0%
192005192000.0%11192000.0%
288003288000.0%7288000.0%
576001576000.0%3576000.0%
76800157600-25.0%2768000.0%
11520001152000.0%11152000.0%
1280000115200-10.0%1115200-10.0%
2304000115200-50.0%02304000.0%
2560000115200-55.0%0230400-10.0%
fosc = 2 000 000 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
3004163000.0%8323000.0%
6002076010.2%4166000.0%
120010312020.2%20712020.2%
24005124040.2%10324040.2%
48002548080.2%5148080.2%
96001296150.2%2596150.2%
14400813889-3.5%16147062.1%
19200617857-7.0%12192310.2%
288003312508.5%827778-3.5%
576001625008.5%3625008.5%
76800162500-18.6%2833338.5%
11520001250008.5%11250008.5%
1280000125000-2.3%1125000-2.3%
2304000125000-45.7%02500008.5%
2560000125000-51.2%0250000-2.3%
fosc = 2 457 600 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
3005113000.0%10233000.0%
6002556000.0%5116000.0%
120012712000.0%25512000.0%
24006324000.0%12724000.0%
48003148000.0%6348000.0%
96001596000.0%3196000.0%
144001013964-3.0%20146291.6%
192007192000.0%15192000.0%
288004307206.7%1027927-3.0%
57600251200-11.1%4614406.7%
768001768000.0%3768000.0%
115200015360033.3%2102400-11.1%
128000015360020.0%115360020.0%
2304000153600-33.3%030720033.3%
2560000153600-40.0%030720020.0%
fosc = 3 072 000 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
3006393000.0%12793000.0%
6003196000.0%6396000.0%
120015912000.0%31912000.0%
24007924000.0%15924000.0%
48003948000.0%7948000.0%
96001996000.0%3996000.0%
1440012147692.6%2614222-1.2%
192009192000.0%19192000.0%
28800627429-4.8%12295382.6%
5760026400011.1%654857-4.8%
76800264000-16.7%4768000.0%
115200196000-16.7%212800011.1%
128000196000-25.0%21280000.0%
2304000192000-16.7%1192000-16.7%
2560000192000-25.0%1192000-25.0%
fosc = 3 276 800 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
3006823000.0%13643000.0%
6003406010.2%6826000.0%
12001701198-0.2%34012010.1%
24008424090.4%1702395-0.2%
4800424763-0.8%8448190.4%
96002097521.6%429526-0.8%
1440013146291.6%27146291.6%
192001018618-3.0%20195051.6%
288006292571.6%13292571.6%
57600351200-11.1%6585141.6%
76800268267-11.1%4819206.7%
1152001102400-11.1%3102400-11.1%
1280001102400-20.0%21365336.7%
2304000204800-11.1%1204800-11.1%
2560000204800-20.0%1204800-20.0%
fosc = 3 579 545 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
3007453000.0%14903000.0%
6003726000.0%7456000.0%
120018512030.2%37212000.0%
24009224060.2%18524060.2%
4800464760-0.8%9248110.2%
96002297271.3%469520-0.8%
144001513983-2.9%30144340.2%
192001118643-2.9%22194541.3%
28800727965-2.9%1527965-2.9%
57600355930-2.9%755930-2.9%
76800274574-2.9%574574-2.9%
1152001111861-2.9%3111861-2.9%
1280001111861-12.6%214914816.5%
2304000223722-2.9%1223722-2.9%
2560000223722-12.6%1223722-12.6%
fosc = 3 686 400 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
3007673000.0%15353000.0%
6003836000.0%7676000.0%
120019112000.0%38312000.0%
24009524000.0%19124000.0%
48004748000.0%9548000.0%
96002396000.0%4796000.0%
1440015144000.0%31144000.0%
1920011192000.0%23192000.0%
288007288000.0%15288000.0%
576003576000.0%7576000.0%
768002768000.0%5768000.0%
11520011152000.0%31152000.0%
1280001115200-10.0%3115200-10.0%
23040002304000.0%12304000.0%
2560000230400-10.0%1230400-10.0%
fosc = 3 932 160 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
3008183000.0%16373000.0%
600409599-0.2%8186000.0%
12002041199-0.1%4091199-0.1%
240010124090.4%2042398-0.1%
48005048190.4%10148190.4%
9600259452-1.5%5096380.4%
1440016144560.4%33144560.4%
192001218905-1.5%2518905-1.5%
28800827307-5.2%16289130.4%
576003614406.7%854613-5.2%
768002819206.7%5819206.7%
11520011228806.7%31228806.7%
1280001122880-4.0%3122880-4.0%
23040002457606.7%12457606.7%
2560000245760-4.0%1245760-4.0%
fosc = 4 000 000 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
3008323000.0%16663000.0%
6004166000.0%8326000.0%
120020712020.2%4161199-0.1%
240010324040.2%20724040.2%
48005148080.2%10348080.2%
96002596150.2%5196150.2%
1440016147062.1%3414286-0.8%
1920012192310.2%25192310.2%
28800827778-3.5%16294122.1%
576003625008.5%855556-3.5%
768002833338.5%671429-7.0%
11520011250008.5%31250008.5%
1280001125000-2.3%3125000-2.3%
23040002500008.5%12500008.5%
2560000250000-2.3%1250000-2.3%
fosc = 4 194 304 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
3008733000.0%17473000.0%
6004366000.0%8736000.0%
120021712020.2%43612000.0%
240010824050.2%21724050.2%
4800544766-0.7%10848100.2%
96002697091.1%549533-0.7%
1440017145641.1%35145641.1%
192001318725-2.5%26194181.1%
288008291271.1%17291271.1%
57600452429-9.0%8582541.1%
7680028738113.8%674898-2.5%
115200113107213.8%4104858-9.0%
12800011310722.4%31310722.4%
230400026214413.8%126214413.8%
25600002621442.4%12621442.4%
fosc = 4 433 619 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
3009233000.0%18463000.0%
6004616000.0%9236000.0%
120023012000.0%46112000.0%
240011424100.4%2302399-0.0%
4800574778-0.5%11448190.4%
9600289555-0.5%579555-0.5%
1440018145841.3%37145841.3%
1920013197933.1%2819110-0.5%
28800927710-3.8%18291691.3%
57600455420-3.8%955420-3.8%
76800369275-9.8%6791723.1%
115200113855120.3%4110840-3.8%
12800011385518.2%31385518.2%
230400027710120.3%127710120.3%
25600002771018.2%12771018.2%
fosc = 4 608 000 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
3009593000.0%19193000.0%
6004796000.0%9596000.0%
120023912000.0%47912000.0%
240011924000.0%23924000.0%
48005948000.0%11948000.0%
96002996000.0%5996000.0%
1440019144000.0%39144000.0%
1920014192000.0%29192000.0%
288009288000.0%19288000.0%
576004576000.0%9576000.0%
76800372000-6.2%772000-6.2%
115200296000-16.7%41152000.0%
128000114400012.5%4115200-10.0%
230400028800025.0%2192000-16.7%
256000028800012.5%128800012.5%
fosc = 4 915 200 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
30010233000.0%20473000.0%
6005116000.0%10236000.0%
120025512000.0%51112000.0%
240012724000.0%25524000.0%
48006348000.0%12748000.0%
96003196000.0%6396000.0%
1440020146291.6%4214288-0.8%
1920015192000.0%31192000.0%
288001027927-3.0%20292571.6%
576004614406.7%1055855-3.0%
768003768000.0%7768000.0%
1152002102400-11.1%41228806.7%
128000115360020.0%4122880-4.0%
230400030720033.3%2204800-11.1%
256000030720020.0%130720020.0%
fosc = 5 000 000 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
30010413000.0%20823000.0%
6005206000.0%10416000.0%
120025912020.2%52012000.0%
240012924040.2%25924040.2%
48006448080.2%12948080.2%
9600329470-1.4%6496150.2%
144002114205-1.4%42145350.9%
1920015195311.7%3218939-1.4%
288001028409-1.4%2128409-1.4%
576004625008.5%1056818-1.4%
768003781251.7%7781251.7%
1152002104167-9.6%41250008.5%
128000115625022.1%4125000-2.3%
230400031250035.6%2208333-9.6%
256000031250022.1%131250022.1%
fosc = 5 068 800 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
30010553000.0%21113000.0%
6005276000.0%10556000.0%
120026312000.0%52712000.0%
240013124000.0%26324000.0%
48006548000.0%13148000.0%
96003296000.0%6596000.0%
1440021144000.0%43144000.0%
192001618635-2.9%32192000.0%
2880010288000.0%21288000.0%
57600552800-8.3%10576000.0%
768003792003.1%7792003.1%
1152002105600-8.3%5105600-8.3%
128000115840023.8%4126720-1.0%
230400031680037.5%2211200-8.3%
256000031680023.8%131680023.8%
fosc = 6 000 000 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
30012493000.0%24993000.0%
6006246000.0%12496000.0%
12003121198-0.2%62412000.0%
240015524040.2%3122396-0.2%
48007748080.2%15548080.2%
96003896150.2%7796150.2%
1440025144230.2%51144230.2%
192001918750-2.3%38192310.2%
2880012288460.2%25288460.2%
57600653571-7.0%12576920.2%
76800475000-2.3%975000-2.3%
11520021250008.5%6107143-7.0%
1280002125000-2.3%5125000-2.3%
2304001187500-18.6%22500008.5%
256000037500046.5%2250000-2.3%
fosc = 6 144 000 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
30012793000.0%25593000.0%
6006396000.0%12796000.0%
120031912000.0%63912000.0%
240015924000.0%31924000.0%
48007948000.0%15948000.0%
96003996000.0%7996000.0%
144002614222-1.2%52144910.6%
1920019192000.0%39192000.0%
2880012295382.6%2628444-1.2%
57600654857-4.8%12590772.6%
768004768000.0%9768000.0%
115200212800011.1%6109714-4.8%
12800021280000.0%51280000.0%
2304001192000-16.7%225600011.1%
2560001192000-25.0%22560000.0%
fosc = 6 400 000 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
30013323000.0%26663000.0%
6006666000.0%13326000.0%
120033212010.1%6661199-0.1%
24001662395-0.2%33224020.1%
48008248190.4%1664790-0.2%
9600419524-0.8%8296390.4%
144002714286-0.8%5514286-0.8%
192002019048-0.8%4119048-0.8%
288001328571-0.8%2728571-0.8%
57600657143-0.8%1357143-0.8%
768004800004.2%9800004.2%
115200213333315.7%6114286-0.8%
12800021333334.2%51333334.2%
2304001200000-13.2%226666715.7%
2560001200000-21.9%22666674.2%
fosc = 7 372 800 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
30015353000.0%30713000.0%
6007676000.0%15356000.0%
120038312000.0%76712000.0%
240019124000.0%38324000.0%
48009548000.0%19148000.0%
96004796000.0%9596000.0%
1440031144000.0%63144000.0%
1920023192000.0%47192000.0%
2880015288000.0%31288000.0%
576007576000.0%15576000.0%
768005768000.0%11768000.0%
11520031152000.0%71152000.0%
1280003115200-10.0%61316572.9%
23040012304000.0%32304000.0%
2560001230400-10.0%3230400-10.0%
fosc = 8 000 000 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
30016663000.0%33323000.0%
6008326000.0%16666000.0%
12004161199-0.1%83212000.0%
240020724040.2%4162398-0.1%
480010348080.2%20748080.2%
96005196150.2%10396150.2%
144003414286-0.8%68144930.6%
1920025192310.2%51192310.2%
2880016294122.1%3428571-0.8%
57600855556-3.5%16588242.1%
76800671429-7.0%12769230.2%
11520031250008.5%8111111-3.5%
1280003125000-2.3%7125000-2.3%
23040012500008.5%32500008.5%
2560001250000-2.3%3250000-2.3%
fosc = 9 216 000 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
30019193000.0%38393000.0%
6009596000.0%19196000.0%
120047912000.0%95912000.0%
240023924000.0%47924000.0%
480011948000.0%23948000.0%
96005996000.0%11996000.0%
1440039144000.0%79144000.0%
1920029192000.0%59192000.0%
2880019288000.0%39288000.0%
576009576000.0%19576000.0%
76800772000-6.2%14768000.0%
11520041152000.0%91152000.0%
1280004115200-10.0%81280000.0%
2304002192000-16.7%42304000.0%
256000128800012.5%4230400-10.0%
fosc = 10 000 000 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
30020823000.0%41663000.0%
60010416000.0%20826000.0%
120052012000.0%104112000.0%
240025924040.2%5202399-0.0%
480012948080.2%25948080.2%
96006496150.2%12996150.2%
1440042145350.9%8614368-0.2%
192003218939-1.4%64192310.2%
288002128409-1.4%42290700.9%
576001056818-1.4%2156818-1.4%
768007781251.7%15781251.7%
11520041250008.5%10113636-1.4%
1280004125000-2.3%9125000-2.3%
2304002208333-9.6%42500008.5%
256000131250022.1%4250000-2.3%
fosc = 10 240 000 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
30021323000.0%42663000.0%
60010666000.0%21326000.0%
120053212010.1%106612000.0%
24002662397-0.1%53224020.1%
480013248120.2%2664794-0.1%
9600669552-0.5%13296240.2%
1440043145451.0%8814382-0.1%
1920032193941.0%6619104-0.5%
2880021290911.0%43290911.0%
5760010581821.0%21581821.0%
768007800004.2%1675294-2.0%
1152005106667-7.4%101163641.0%
12800041280000.0%91280000.0%
2304002213333-7.4%5213333-7.4%
2560002213333-16.7%42560000.0%
fosc = 11 059 200 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
30023033000.0%46073000.0%
60011516000.0%23036000.0%
120057512000.0%115112000.0%
240028724000.0%57524000.0%
480014348000.0%28748000.0%
96007196000.0%14396000.0%
1440047144000.0%95144000.0%
1920035192000.0%71192000.0%
2880023288000.0%47288000.0%
5760011576000.0%23576000.0%
768008768000.0%17768000.0%
11520051152000.0%111152000.0%
12800041382408.0%10125673-1.8%
23040022304000.0%52304000.0%
2560002230400-10.0%42764808.0%
fosc = 12 000 000 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
30024993000.0%49993000.0%
60012496000.0%24996000.0%
120062412000.0%124912000.0%
24003122396-0.2%62424000.0%
480015548080.2%3124792-0.2%
96007796150.2%15596150.2%
1440051144230.2%103144230.2%
1920038192310.2%77192310.2%
2880025288460.2%51288460.2%
5760012576920.2%25576920.2%
76800975000-2.3%1975000-2.3%
1152006107143-7.0%121153850.2%
1280005125000-2.3%11125000-2.3%
23040022500008.5%6214286-7.0%
2560002250000-2.3%5250000-2.3%
fosc = 12 288 000 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
30025593000.0%51193000.0%
60012796000.0%25596000.0%
120063912000.0%127912000.0%
240031924000.0%63924000.0%
480015948000.0%31948000.0%
96007996000.0%15996000.0%
1440052144910.6%10614355-0.3%
1920039192000.0%79192000.0%
288002628444-1.2%52289810.6%
5760012590772.6%2656889-1.2%
768009768000.0%19768000.0%
1152006109714-4.8%121181542.6%
12800051280000.0%111280000.0%
230400225600011.1%6219429-4.8%
25600022560000.0%52560000.0%
fosc = 12 800 000 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
30026663000.0%53323000.0%
60013326000.0%26666000.0%
12006661199-0.1%133212000.0%
240033224020.1%6662399-0.0%
48001664790-0.2%33248050.1%
96008296390.4%1669581-0.2%
144005514286-0.8%110144140.1%
192004119048-0.8%82192770.4%
288002728571-0.8%5528571-0.8%
576001357143-0.8%2757143-0.8%
768009800004.2%2076190-0.8%
1152006114286-0.8%13114286-0.8%
12800051333334.2%12123077-3.8%
230400226666715.7%6228571-0.8%
25600022666674.2%52666674.2%
fosc = 14 318 182 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
30029823000.0%59653000.0%
60014906000.0%29826000.0%
120074512000.0%149012000.0%
24003722399-0.0%7452399-0.0%
480018548110.2%3724798-0.0%
96009296220.2%18596220.2%
1440061144340.2%123144340.2%
192004619040-0.8%92192450.2%
2880030288670.2%61288670.2%
576001555930-2.9%30577350.2%
768001174574-2.9%22778161.3%
1152007111861-2.9%15111861-2.9%
1280006127841-0.1%13127841-0.1%
2304003223722-2.9%7223722-2.9%
256000229829516.5%6255682-0.1%
fosc = 14 745 600 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
30030713000.0%61433000.0%
60015356000.0%30716000.0%
120076712000.0%153512000.0%
240038324000.0%76724000.0%
480019148000.0%38348000.0%
96009596000.0%19196000.0%
1440063144000.0%127144000.0%
1920047192000.0%95192000.0%
2880031288000.0%63288000.0%
5760015576000.0%31576000.0%
7680011768000.0%23768000.0%
11520071152000.0%151152000.0%
12800061316572.9%131316572.9%
23040032304000.0%72304000.0%
2560003230400-10.0%62633142.9%
fosc = 16 000 000 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
30033323000.0%66663000.0%
60016666000.0%33326000.0%
120083212000.0%166612000.0%
24004162398-0.1%83224010.0%
480020748080.2%4164796-0.1%
960010396150.2%20796150.2%
1440068144930.6%13814388-0.1%
1920051192310.2%103192310.2%
288003428571-0.8%68289860.6%
5760016588242.1%3457143-0.8%
7680012769230.2%25769230.2%
1152008111111-3.5%161176472.1%
1280007125000-2.3%15125000-2.3%
23040032500008.5%8222222-3.5%
2560003250000-2.3%7250000-2.3%
fosc = 16 800 000 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
30034993000.0%69993000.0%
60017496000.0%34996000.0%
120087412000.0%174912000.0%
24004372397-0.1%87424000.0%
48002184795-0.1%4374795-0.1%
960010896330.3%2189589-0.1%
144007214384-0.1%14514384-0.1%
192005419091-0.6%108192660.3%
2880035291671.3%7228767-0.1%
5760017583331.3%35583331.3%
768001375000-2.3%26777781.3%
11520081166671.3%171166671.3%
12800071312502.5%151312502.5%
2304004210000-8.9%82333331.3%
25600032625002.5%72625002.5%
fosc = 18 432 000 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
30038393000.0%76793000.0%
60019196000.0%38396000.0%
120095912000.0%191912000.0%
240047924000.0%95924000.0%
480023948000.0%47948000.0%
960011996000.0%23996000.0%
1440079144000.0%159144000.0%
1920059192000.0%119192000.0%
2880039288000.0%79288000.0%
5760019576000.0%39576000.0%
7680014768000.0%29768000.0%
11520091152000.0%191152000.0%
12800081280000.0%171280000.0%
23040042304000.0%92304000.0%
2560004230400-10.0%82560000.0%
fosc = 20 000 000 Hz
nominal Bit rateU2Xn=0U2Xn=1
UBRRactual Bit rateerrorUBRRactual Bit rateerror
30041663000.0%83323000.0%
60020826000.0%41666000.0%
1200104112000.0%208212000.0%
24005202399-0.0%10412399-0.0%
480025948080.2%5204798-0.0%
960012996150.2%25996150.2%
144008614368-0.2%17314368-0.2%
1920064192310.2%129192310.2%
2880042290700.9%8628736-0.2%
576002156818-1.4%42581400.9%
7680015781251.7%3275758-1.4%
11520010113636-1.4%21113636-1.4%
1280009125000-2.3%19125000-2.3%
23040042500008.5%10227273-1.4%
2560004250000-2.3%9250000-2.3%

Source code