24.11 Examples of Baud Rate Setting

For standard crystal and resonator frequencies, the most commonly used baud rates for asynchronous operation can be generated by using the UBRRn settings as listed in the table below.

UBRRn values which yield an actual baud rate differing less than 0.5% from the target baud rate, are bold in the table. Higher error ratings are acceptable, but the Receiver will have less noise resistance when the error ratings are high, especially for large serial frames (see also section Asynchronous Operational Range). The error values are calculated using the following equation:

Error[%]=(BaudRateClosestMatchBaudRate1)2100%
Table 24-6. Examples of UBRRn Settings for Commonly Used Oscillator Frequencies
Baud Rate [bps]fosc = 1.0000 MHzfosc = 1.8432 MHzfosc = 2.0000 MHz
U2Xn = 0U2Xn = 1U2Xn = 0U2Xn = 1U2Xn = 0U2Xn = 1
UBRRnErrorUBRRnErrorUBRRnErrorUBRRnErrorUBRRnErrorUBRRnError
2400250.2%510.2%470.0%950.0%510.2%1030.2%
4800120.2%250.2%230.0%470.0%250.2%510.2%
96006-7.0%120.2%110.0%230.0%120.2%250.2%
14.4k38.5%8-3.5%70.0%150.0%8-3.5%162.1%
19.2k28.5%6-7.0%50.0%110.0%6-7.0%120.2%
28.8k18.5%38.5%30.0%70.0%38.5%8-3.5%
38.4k1-18.6%28.5%20.0%50.0%28.5%6-7.0%
57.6k08.5%18.5%10.0%30.0%18.5%38.5%
76.8k1-18.6%1-25.0%20.0%1-18.6%28.5%
115.2k08.5%00.0%10.0%08.5%18.5%
230.4k00.0%
250k00.0%
Max.(1)62.5 kbps125 kbps115.2 kbps230.4 kbps125 kbps250 kbps

Note: 1. UBRRn = 0, Error = 0.0%

Table 24-7. Examples of UBRRn Settings for Commonly Used Oscillator Frequencies
Baud Rate [bps]fosc = 3.6864 MHzfosc = 4.0000 MHzfosc = 7.3728 MHz
U2Xn = 0U2Xn = 1U2Xn = 0U2Xn = 1U2Xn = 0U2Xn = 1
UBRRnErrorUBRRnErrorUBRRnErrorUBRRnErrorUBRRnErrorUBRRnError
2400950.0%1910.0%1030.2%2070.2%1910.0%3830.0%
4800470.0%950.0%510.2%1030.2%950.0%1910.0%
9600230.0%470.0%250.2%510.2%470.0%950.0%
14.4k150.0%310.0%162.1%34-0.8%310.0%630.0%
19.2k110.0%230.0%120.2%250.2%230.0%470.0%
28.8k70.0%150.0%8-3.5%162.1%150.0%310.0%
38.4k50.0%110.0%6-7.0%120.2%110.0%230.0%
57.6k30.0%70.0%38.5%8-3.5%70.0%150.0%
76.8k20.0%50.0%28.5%6-7.0%50.0%110.0%
115.2k10.0%30.0%18.5%38.5%30.0%70.0%
230.4k00.0%10.0%08.5%18.5%10.0%30.0%
250k0-7.8%1-7.8%00.0%10.0%1-7.8%3-7.8%
0.5M0-7.8%00.0%0-7.8%1-7.8%
1M0-7.8%
Max.(1)230.4 kbps460.8 kbps250 kbps0.5 Mbps460.8 kbps921.6 kbps
(1) UBRRn = 0, Error = 0.0%
Table 24-8. Examples of UBRRn Settings for Commonly Used Oscillator Frequencies
Baud Rate [bps]fosc = 8.0000 MHzfosc = 11.0592 MHzfosc = 14.7456 MHz
U2Xn = 0U2Xn = 1U2Xn = 0U2Xn = 1U2Xn = 0U2Xn = 1
UBRRnErrorUBRRnErrorUBRRnErrorUBRRnErrorUBRRnErrorUBRRnError
24002070.2%416-0.1%2870.0%5750.0%3830.0%7670.0%
48001030.2%2070.2%1430.0%2870.0%1910.0%3830.0%
9600510.2%1030.2%710.0%1430.0%950.0%1910.0%
14.4k34-0.8%680.6%470.0%950.0%630.0%1270.0%
19.2k250.2%510.2%350.0%710.0%470.0%950.0%
28.8k162.1%34-0.8%230.0%470.0%310.0%630.0%
38.4k120.2%250.2%170.0%350.0%230.0%470.0%
57.6k8-3.5%162.1%110.0%230.0%150.0%310.0%
76.8k6-7.0%120.2%80.0%170.0%110.0%230.0%
115.2k38.5%8-3.5%50.0%110.0%70.0%150.0%
230.4k18.5%38.5%20.0%50.0%30.0%70.0%
250k10.0%30.0%2-7.8%5-7.8%3-7.8%65.3%
0.5M00.0%10.0%2-7.8%1-7.8%3-7.8%
1M00.0%0-7.8%1-7.8%
Max.(1)0.5 Mbps1 Mbps691.2 kbps1.3824 Mbps921.6 kbps1.8432 Mbps
(1) UBRRn = 0, Error = 0.0%
Table 24-9. Examples of UBRRn Settings for Commonly Used Oscillator Frequencies
Baud Rate [bps]fosc = 16.0000 MHzfosc = 18.4320 MHzfosc = 20.0000 MHz
U2Xn = 0U2Xn = 1U2Xn = 0U2Xn = 1U2Xn = 0U2Xn = 1
UBRRnErrorUBRRnErrorUBRRnErrorUBRRnErrorUBRRnErrorUBRRnError
2400416-0.1%8320.0%4790.0%9590.0%5200.0%10410.0%
48002070.2%416-0.1%2390.0%4790.0%2590.2%5200.0%
96001030.2%2070.2%1190.0%2390.0%1290.2%2590.2%
14.4k680.6%138-0.1%790.0%1590.0%86-0.2%173-0.2%
19.2k510.2%1030.2%590.0%1190.0%640.2%1290.2%
28.8k34-0.8%680.6%390.0%790.0%420.9%86-0.2%
38.4k250.2%510.2%290.0%590.0%32-1.4%640.2%
57.6k162.1%34-0.8%190.0%390.0%21-1.4%420.9%
76.8k120.2%250.2%140.0%290.0%151.7%32-1.4%
115.2k8-3.5%162.1%90.0%190.0%10-1.4%21-1.4%
230.4k38.5%8-3.5%40.0%90.0%48.5%10-1.4%
250k30.0%70.0%4-7.8%82.4%40.0%90.0%
0.5M10.0%30.0%4-7.8%40.0%
1M00.0%10.0%
Max.(1)1 Mbps2 Mbps1.152 Mbps2.304 Mbps1.25 Mbps2.5 Mbps
(1) UBRRn = 0, Error = 0.0%