fosc = 1.0000 MHz | ||||||||
Bit Rate (bps) | U2Xn = 0 | U2Xn = 1 | ||||||
---|---|---|---|---|---|---|---|---|
UBRR (dec) | UBRR (hex) | Actual Bit Rate | Error | UBRR (dec) | UBRR (hex) | Actual Bit Rate | Error | |
300.00 | 207 | 0x0CF | 300.48 | 0.2% | 416 | 0x1A0 | 299.76 | -0.1% |
600.00 | 103 | 0x067 | 600.96 | 0.2% | 207 | 0x0CF | 600.96 | 0.2% |
1200.00 | 51 | 0x033 | 1201.92 | 0.2% | 103 | 0x067 | 1201.92 | 0.2% |
2400.00 | 25 | 0x019 | 2403.85 | 0.2% | 51 | 0x033 | 2403.85 | 0.2% |
4800.00 | 12 | 0x00C | 4807.69 | 0.2% | 25 | 0x019 | 4807.69 | 0.2% |
9600.00 | 6 | 0x006 | 8928.57 | -7.0% | 12 | 0x00C | 9615.38 | 0.2% |
14.4K | 3 | 0x003 | 15.625K | 8.5% | 8 | 0x008 | 13.889K | -3.5% |
19.2K | 2 | 0x002 | 20.833K | 8.5% | 6 | 0x006 | 17.857K | -7.0% |
28.8K | 1 | 0x001 | 31.25K | 8.5% | 3 | 0x003 | 31.25K | 8.5% |
38.4K | 1 | 0x001 | 31.25K | -18.6% | 2 | 0x002 | 41.667K | 8.5% |
57.6K | 0 | 0x000 | 62.5K | 8.5% | 1 | 0x001 | 62.5K | 8.5% |
76.8K | 0 | 0x000 | 62.5K | -18.6% | 1 | 0x001 | 62.5K | -18.6% |
115.2K | 0 | 0x000 | 62.5K | -45.7% | 0 | 0x000 | 125K | 8.5% |
230.4K | 0 | 0x000 | 62.5K | -72.9% | 0 | 0x000 | 125K | -45.7% |
250K | 0 | 0x000 | 62.5K | -75.0% | 0 | 0x000 | 125K | -50.0% |
0.5M | 0 | 0x000 | 62.5K | -87.5% | 0 | 0x000 | 125K | -75.0% |
1M | 0 | 0x000 | 62.5K | -93.8% | 0 | 0x000 | 125K | -87.5% |
Max. | 62.5 Kbps | 125 Kbps |
fosc = 1.8432 MHz | ||||||||
Bit Rate (bps) | U2Xn = 0 | U2Xn = 1 | ||||||
---|---|---|---|---|---|---|---|---|
UBRR (dec) | UBRR (hex) | Actual Bit Rate | Error | UBRR (dec) | UBRR (hex) | Actual Bit Rate | Error | |
300.00 | 383 | 0x17F | 300.00 | 0.0% | 767 | 0x2FF | 300.00 | 0.0% |
600.00 | 191 | 0x0BF | 600.00 | 0.0% | 383 | 0x17F | 600.00 | 0.0% |
1200.00 | 95 | 0x05F | 1200.00 | 0.0% | 191 | 0x0BF | 1200.00 | 0.0% |
2400.00 | 47 | 0x02F | 2400.00 | 0.0% | 95 | 0x05F | 2400.00 | 0.0% |
4800.00 | 23 | 0x017 | 4800.00 | 0.0% | 47 | 0x02F | 4800.00 | 0.0% |
9600.00 | 11 | 0x00B | 9600.00 | 0.0% | 23 | 0x017 | 9600.00 | 0.0% |
14.4K | 7 | 0x007 | 14.4K | 0.0% | 15 | 0x00F | 14.4K | 0.0% |
19.2K | 5 | 0x005 | 19.2K | 0.0% | 11 | 0x00B | 19.2K | 0.0% |
28.8K | 3 | 0x003 | 28.8K | 0.0% | 7 | 0x007 | 28.8K | 0.0% |
38.4K | 2 | 0x002 | 38.4K | 0.0% | 5 | 0x005 | 38.4K | 0.0% |
57.6K | 1 | 0x001 | 57.6K | 0.0% | 3 | 0x003 | 57.6K | 0.0% |
76.8K | 1 | 0x001 | 57.6K | -25.0% | 2 | 0x002 | 76.8K | 0.0% |
115.2K | 0 | 0x000 | 115.2K | 0.0% | 1 | 0x001 | 115.2K | 0.0% |
230.4K | 0 | 0x000 | 115.2K | -50.0% | 0 | 0x000 | 230.4K | 0.0% |
250K | 0 | 0x000 | 115.2K | -53.9% | 0 | 0x000 | 230.4K | -7.8% |
0.5M | 0 | 0x000 | 115.2K | -77.0% | 0 | 0x000 | 230.4K | -53.9% |
1M | 0 | 0x000 | 115.2K | -88.5% | 0 | 0x000 | 230.4K | -77.0% |
Max. | 115.2 Kbps | 230.4 Kbps |
fosc = 2.0000 MHz | ||||||||
Bit Rate (bps) | U2Xn = 0 | U2Xn = 1 | ||||||
---|---|---|---|---|---|---|---|---|
UBRR (dec) | UBRR (hex) | Actual Bit Rate | Error | UBRR (dec) | UBRR (hex) | Actual Bit Rate | Error | |
300.00 | 416 | 0x1A0 | 299.76 | -0.1% | 832 | 0x340 | 300.12 | 0.0% |
600.00 | 207 | 0x0CF | 600.96 | 0.2% | 416 | 0x1A0 | 599.52 | -0.1% |
1200.00 | 103 | 0x067 | 1201.92 | 0.2% | 207 | 0x0CF | 1201.92 | 0.2% |
2400.00 | 51 | 0x033 | 2403.85 | 0.2% | 103 | 0x067 | 2403.85 | 0.2% |
4800.00 | 25 | 0x019 | 4807.69 | 0.2% | 51 | 0x033 | 4807.69 | 0.2% |
9600.00 | 12 | 0x00C | 9615.38 | 0.2% | 25 | 0x019 | 9615.38 | 0.2% |
14.4K | 8 | 0x008 | 13.889K | -3.5% | 16 | 0x010 | 14.706K | 2.1% |
19.2K | 6 | 0x006 | 17.857K | -7.0% | 12 | 0x00C | 19.23K | 0.2% |
28.8K | 3 | 0x003 | 31.25K | 8.5% | 8 | 0x008 | 27.778K | -3.5% |
38.4K | 2 | 0x002 | 41.667K | 8.5% | 6 | 0x006 | 35.714K | -7.0% |
57.6K | 1 | 0x001 | 62.5K | 8.5% | 3 | 0x003 | 62.5K | 8.5% |
76.8K | 1 | 0x001 | 62.5K | -18.6% | 2 | 0x002 | 83.333K | 8.5% |
115.2K | 0 | 0x000 | 125K | 8.5% | 1 | 0x001 | 125K | 8.5% |
230.4K | 0 | 0x000 | 125K | -45.7% | 0 | 0x000 | 250K | 8.5% |
250K | 0 | 0x000 | 125K | -50.0% | 0 | 0x000 | 250K | 0.0% |
0.5M | 0 | 0x000 | 125K | -75.0% | 0 | 0x000 | 250K | -50.0% |
1M | 0 | 0x000 | 125K | -87.5% | 0 | 0x000 | 250K | -75.0% |
Max. | 125 Kbps | 250 Kbps |
fosc = 3.6864 MHz | ||||||||
Bit Rate (bps) | U2Xn = 0 | U2Xn = 1 | ||||||
---|---|---|---|---|---|---|---|---|
UBRR (dec) | UBRR (hex) | Actual Bit Rate | Error | UBRR (dec) | UBRR (hex) | Actual Bit Rate | Error | |
300.00 | 767 | 0x2FF | 300.00 | 0.0% | 1535 | 0x5FF | 300.00 | 0.0% |
600.00 | 383 | 0x17F | 600.00 | 0.0% | 767 | 0x2FF | 600.00 | 0.0% |
1200.00 | 191 | 0x0BF | 1200.00 | 0.0% | 383 | 0x17F | 1200.00 | 0.0% |
2400.00 | 95 | 0x05F | 2400.00 | 0.0% | 191 | 0x0BF | 2400.00 | 0.0% |
4800.00 | 47 | 0x02F | 4800.00 | 0.0% | 95 | 0x05F | 4800.00 | 0.0% |
9600.00 | 23 | 0x017 | 9600.00 | 0.0% | 47 | 0x02F | 9600.00 | 0.0% |
14.4K | 15 | 0x00F | 14.4K | 0.0% | 31 | 0x01F | 14.4K | 0.0% |
19.2K | 11 | 0x00B | 19.2K | 0.0% | 23 | 0x017 | 19.2K | 0.0% |
28.8K | 7 | 0x007 | 28.8K | 0.0% | 15 | 0x00F | 28.8K | 0.0% |
38.4K | 5 | 0x005 | 38.4K | 0.0% | 11 | 0x00B | 38.4K | 0.0% |
57.6K | 3 | 0x003 | 57.6K | 0.0% | 7 | 0x007 | 57.6K | 0.0% |
76.8K | 2 | 0x002 | 76.8K | 0.0% | 5 | 0x005 | 76.8K | 0.0% |
115.2K | 1 | 0x001 | 115.2K | 0.0% | 3 | 0x003 | 115.2K | 0.0% |
230.4K | 0 | 0x000 | 230.4K | 0.0% | 1 | 0x001 | 230.4K | 0.0% |
250K | 0 | 0x000 | 230.4K | -7.8% | 1 | 0x001 | 230.4K | -7.8% |
0.5M | 0 | 0x000 | 230.4K | -53.9% | 0 | 0x000 | 460.8K | -7.8% |
1M | 0 | 0x000 | 230.4K | -77.0% | 0 | 0x000 | 460.8K | -53.9% |
Max. | 230.4 Kbps | 460.8 Kbps |
fosc = 4.0000 MHz | ||||||||
Bit Rate (bps) | U2Xn = 0 | U2Xn = 1 | ||||||
---|---|---|---|---|---|---|---|---|
UBRR (dec) | UBRR (hex) | Actual Bit Rate | Error | UBRR (dec) | UBRR (hex) | Actual Bit Rate | Error | |
300.00 | 832 | 0x340 | 300.12 | 0.0% | 1666 | 0x682 | 299.94 | -0.0% |
600.00 | 416 | 0x1A0 | 599.52 | -0.1% | 832 | 0x340 | 600.24 | 0.0% |
1200.00 | 207 | 0x0CF | 1201.92 | 0.2% | 416 | 0x1A0 | 1199.04 | -0.1% |
2400.00 | 103 | 0x067 | 2403.85 | 0.2% | 207 | 0x0CF | 2403.85 | 0.2% |
4800.00 | 51 | 0x033 | 4807.69 | 0.2% | 103 | 0x067 | 4807.69 | 0.2% |
9600.00 | 25 | 0x019 | 9615.38 | 0.2% | 51 | 0x033 | 9615.38 | 0.2% |
14.4K | 16 | 0x010 | 14.706K | 2.1% | 34 | 0x022 | 14.286K | -0.8% |
19.2K | 12 | 0x00C | 19.23K | 0.2% | 25 | 0x019 | 19.23K | 0.2% |
28.8K | 8 | 0x008 | 27.778K | -3.5% | 16 | 0x010 | 29.412K | 2.1% |
38.4K | 6 | 0x006 | 35.714K | -7.0% | 12 | 0x00C | 38.462K | 0.2% |
57.6K | 3 | 0x003 | 62.5K | 8.5% | 8 | 0x008 | 55.556K | -3.5% |
76.8K | 2 | 0x002 | 83.333K | 8.5% | 6 | 0x006 | 71.429K | -7.0% |
115.2K | 1 | 0x001 | 125K | 8.5% | 3 | 0x003 | 125K | 8.5% |
230.4K | 0 | 0x000 | 250K | 8.5% | 1 | 0x001 | 250K | 8.5% |
250K | 0 | 0x000 | 250K | 0.0% | 1 | 0x001 | 250K | 0.0% |
0.5M | 0 | 0x000 | 250K | -50.0% | 0 | 0x000 | 0.5M | 0.0% |
1M | 0 | 0x000 | 250K | -75.0% | 0 | 0x000 | 0.5M | -50.0% |
Max. | 250 Kbps | 0.5 Mbps |
fosc = 7.3728 MHz | ||||||||
Bit Rate (bps) | U2Xn = 0 | U2Xn = 1 | ||||||
---|---|---|---|---|---|---|---|---|
UBRR (dec) | UBRR (hex) | Actual Bit Rate | Error | UBRR (dec) | UBRR (hex) | Actual Bit Rate | Error | |
300.00 | 1535 | 0x5FF | 300.00 | 0.0% | 3071 | 0xBFF | 300.00 | 0.0% |
600.00 | 767 | 0x2FF | 600.00 | 0.0% | 1535 | 0x5FF | 600.00 | 0.0% |
1200.00 | 383 | 0x17F | 1200.00 | 0.0% | 767 | 0x2FF | 1200.00 | 0.0% |
2400.00 | 191 | 0x0BF | 2400.00 | 0.0% | 383 | 0x17F | 2400.00 | 0.0% |
4800.00 | 95 | 0x05F | 4800.00 | 0.0% | 191 | 0x0BF | 4800.00 | 0.0% |
9600.00 | 47 | 0x02F | 9600.00 | 0.0% | 95 | 0x05F | 9600.00 | 0.0% |
14.4K | 31 | 0x01F | 14.4K | 0.0% | 63 | 0x03F | 14.4K | 0.0% |
19.2K | 23 | 0x017 | 19.2K | 0.0% | 47 | 0x02F | 19.2K | 0.0% |
28.8K | 15 | 0x00F | 28.8K | 0.0% | 31 | 0x01F | 28.8K | 0.0% |
38.4K | 11 | 0x00B | 38.4K | 0.0% | 23 | 0x017 | 38.4K | 0.0% |
57.6K | 7 | 0x007 | 57.6K | 0.0% | 15 | 0x00F | 57.6K | 0.0% |
76.8K | 5 | 0x005 | 76.8K | 0.0% | 11 | 0x00B | 76.8K | 0.0% |
115.2K | 3 | 0x003 | 115.2K | 0.0% | 7 | 0x007 | 115.2K | 0.0% |
230.4K | 1 | 0x001 | 230.4K | 0.0% | 3 | 0x003 | 230.4K | 0.0% |
250K | 1 | 0x001 | 230.4K | -7.8% | 3 | 0x003 | 230.4K | -7.8% |
0.5M | 0 | 0x000 | 460.8K | -7.8% | 1 | 0x001 | 460.8K | -7.8% |
1M | 0 | 0x000 | 460.8K | -53.9% | 0 | 0x000 | 0.922M | -7.8% |
Max. | 460.8 Kbps | 0.922 Mbps |
fosc = 8.0000 MHz | ||||||||
Bit Rate (bps) | U2Xn = 0 | U2Xn = 1 | ||||||
---|---|---|---|---|---|---|---|---|
UBRR (dec) | UBRR (hex) | Actual Bit Rate | Error | UBRR (dec) | UBRR (hex) | Actual Bit Rate | Error | |
300.00 | 1666 | 0x682 | 299.94 | -0.0% | 3332 | 0xD04 | 300.03 | 0.0% |
600.00 | 832 | 0x340 | 600.24 | 0.0% | 1666 | 0x682 | 599.88 | -0.0% |
1200.00 | 416 | 0x1A0 | 1199.04 | -0.1% | 832 | 0x340 | 1200.48 | 0.0% |
2400.00 | 207 | 0x0CF | 2403.85 | 0.2% | 416 | 0x1A0 | 2398.08 | -0.1% |
4800.00 | 103 | 0x067 | 4807.69 | 0.2% | 207 | 0x0CF | 4807.69 | 0.2% |
9600.00 | 51 | 0x033 | 9615.38 | 0.2% | 103 | 0x067 | 9615.38 | 0.2% |
14.4K | 34 | 0x022 | 14.286K | -0.8% | 68 | 0x044 | 14.493K | 0.6% |
19.2K | 25 | 0x019 | 19.23K | 0.2% | 51 | 0x033 | 19.23K | 0.2% |
28.8K | 16 | 0x010 | 29.412K | 2.1% | 34 | 0x022 | 28.571K | -0.8% |
38.4K | 12 | 0x00C | 38.462K | 0.2% | 25 | 0x019 | 38.462K | 0.2% |
57.6K | 8 | 0x008 | 55.556K | -3.5% | 16 | 0x010 | 58.824K | 2.1% |
76.8K | 6 | 0x006 | 71.429K | -7.0% | 12 | 0x00C | 76.923K | 0.2% |
115.2K | 3 | 0x003 | 125K | 8.5% | 8 | 0x008 | 111.111K | -3.5% |
230.4K | 1 | 0x001 | 250K | 8.5% | 3 | 0x003 | 250K | 8.5% |
250K | 1 | 0x001 | 250K | 0.0% | 3 | 0x003 | 250K | 0.0% |
0.5M | 0 | 0x000 | 0.5M | 0.0% | 1 | 0x001 | 0.5M | 0.0% |
1M | 0 | 0x000 | 0.5M | -50.0% | 0 | 0x000 | 1M | 0.0% |
Max. | 0.5 Mbps | 1 Mbps |
fosc = 11.0592 MHz | ||||||||
Bit Rate (bps) | U2Xn = 0 | U2Xn = 1 | ||||||
---|---|---|---|---|---|---|---|---|
UBRR (dec) | UBRR (hex) | Actual Bit Rate | Error | UBRR (dec) | UBRR (hex) | Actual Bit Rate | Error | |
300.00 | 2303 | 0x8FF | 300.00 | 0.0% | 4607 | 0x11FF | 300.00 | 0.0% |
600.00 | 1151 | 0x47F | 600.00 | 0.0% | 2303 | 0x8FF | 600.00 | 0.0% |
1200.00 | 575 | 0x23F | 1200.00 | 0.0% | 1151 | 0x47F | 1200.00 | 0.0% |
2400.00 | 287 | 0x11F | 2400.00 | 0.0% | 575 | 0x23F | 2400.00 | 0.0% |
4800.00 | 143 | 0x08F | 4800.00 | 0.0% | 287 | 0x11F | 4800.00 | 0.0% |
9600.00 | 71 | 0x047 | 9600.00 | 0.0% | 143 | 0x08F | 9600.00 | 0.0% |
14.4K | 47 | 0x02F | 14.4K | 0.0% | 95 | 0x05F | 14.4K | 0.0% |
19.2K | 35 | 0x023 | 19.2K | 0.0% | 71 | 0x047 | 19.2K | 0.0% |
28.8K | 23 | 0x017 | 28.8K | 0.0% | 47 | 0x02F | 28.8K | 0.0% |
38.4K | 17 | 0x011 | 38.4K | 0.0% | 35 | 0x023 | 38.4K | 0.0% |
57.6K | 11 | 0x00B | 57.6K | 0.0% | 23 | 0x017 | 57.6K | 0.0% |
76.8K | 8 | 0x008 | 76.8K | 0.0% | 17 | 0x011 | 76.8K | 0.0% |
115.2K | 5 | 0x005 | 115.2K | 0.0% | 11 | 0x00B | 115.2K | 0.0% |
230.4K | 2 | 0x002 | 230.4K | 0.0% | 5 | 0x005 | 230.4K | 0.0% |
250K | 2 | 0x002 | 230.4K | -7.8% | 5 | 0x005 | 230.4K | -7.8% |
0.5M | 0 | 0x000 | 0.691M | 38.2% | 2 | 0x002 | 460.8K | -7.8% |
1M | 0 | 0x000 | 0.691M | -30.9% | 0 | 0x000 | 1.382M | 38.2% |
Max. | 0.691 Mbps | 1.382 Mbps |
fosc = 14.7456 MHz | ||||||||
Bit Rate (bps) | U2Xn = 0 | U2Xn = 1 | ||||||
---|---|---|---|---|---|---|---|---|
UBRR (dec) | UBRR (hex) | Actual Bit Rate | Error | UBRR (dec) | UBRR (hex) | Actual Bit Rate | Error | |
300.00 | 3071 | 0xBFF | 300.00 | 0.0% | 6143 | 0x17FF | 300.00 | 0.0% |
600.00 | 1535 | 0x5FF | 600.00 | 0.0% | 3071 | 0xBFF | 600.00 | 0.0% |
1200.00 | 767 | 0x2FF | 1200.00 | 0.0% | 1535 | 0x5FF | 1200.00 | 0.0% |
2400.00 | 383 | 0x17F | 2400.00 | 0.0% | 767 | 0x2FF | 2400.00 | 0.0% |
4800.00 | 191 | 0x0BF | 4800.00 | 0.0% | 383 | 0x17F | 4800.00 | 0.0% |
9600.00 | 95 | 0x05F | 9600.00 | 0.0% | 191 | 0x0BF | 9600.00 | 0.0% |
14.4K | 63 | 0x03F | 14.4K | 0.0% | 127 | 0x07F | 14.4K | 0.0% |
19.2K | 47 | 0x02F | 19.2K | 0.0% | 95 | 0x05F | 19.2K | 0.0% |
28.8K | 31 | 0x01F | 28.8K | 0.0% | 63 | 0x03F | 28.8K | 0.0% |
38.4K | 23 | 0x017 | 38.4K | 0.0% | 47 | 0x02F | 38.4K | 0.0% |
57.6K | 15 | 0x00F | 57.6K | 0.0% | 31 | 0x01F | 57.6K | 0.0% |
76.8K | 11 | 0x00B | 76.8K | 0.0% | 23 | 0x017 | 76.8K | 0.0% |
115.2K | 7 | 0x007 | 115.2K | 0.0% | 15 | 0x00F | 115.2K | 0.0% |
230.4K | 3 | 0x003 | 230.4K | 0.0% | 7 | 0x007 | 230.4K | 0.0% |
250K | 3 | 0x003 | 230.4K | -7.8% | 6 | 0x006 | 263.314K | 5.3% |
0.5M | 1 | 0x001 | 460.8K | -7.8% | 3 | 0x003 | 460.8K | -7.8% |
1M | 0 | 0x000 | 0.922M | -7.8% | 1 | 0x001 | 0.922M | -7.8% |
Max. | 0.922 Mbps | 1.843 Mbps |
fosc = 16.0000 MHz | ||||||||
Bit Rate (bps) | U2Xn = 0 | U2Xn = 1 | ||||||
---|---|---|---|---|---|---|---|---|
UBRR (dec) | UBRR (hex) | Actual Bit Rate | Error | UBRR (dec) | UBRR (hex) | Actual Bit Rate | Error | |
300.00 | 3332 | 0xD04 | 300.03 | 0.0% | 6666 | 0x1A0A | 299.99 | -0.0% |
600.00 | 1666 | 0x682 | 599.88 | -0.0% | 3332 | 0xD04 | 600.06 | 0.0% |
1200.00 | 832 | 0x340 | 1200.48 | 0.0% | 1666 | 0x682 | 1199.76 | -0.0% |
2400.00 | 416 | 0x1A0 | 2398.08 | -0.1% | 832 | 0x340 | 2400.96 | 0.0% |
4800.00 | 207 | 0x0CF | 4807.69 | 0.2% | 416 | 0x1A0 | 4796.16 | -0.1% |
9600.00 | 103 | 0x067 | 9615.38 | 0.2% | 207 | 0x0CF | 9615.38 | 0.2% |
14.4K | 68 | 0x044 | 14.493K | 0.6% | 138 | 0x08A | 14.388K | -0.1% |
19.2K | 51 | 0x033 | 19.23K | 0.2% | 103 | 0x067 | 19.23K | 0.2% |
28.8K | 34 | 0x022 | 28.571K | -0.8% | 68 | 0x044 | 28.986K | 0.6% |
38.4K | 25 | 0x019 | 38.462K | 0.2% | 51 | 0x033 | 38.462K | 0.2% |
57.6K | 16 | 0x010 | 58.824K | 2.1% | 34 | 0x022 | 57.143K | -0.8% |
76.8K | 12 | 0x00C | 76.923K | 0.2% | 25 | 0x019 | 76.923K | 0.2% |
115.2K | 8 | 0x008 | 111.111K | -3.5% | 16 | 0x010 | 117.647K | 2.1% |
230.4K | 3 | 0x003 | 250K | 8.5% | 8 | 0x008 | 222.222K | -3.5% |
250K | 3 | 0x003 | 250K | 0.0% | 7 | 0x007 | 250K | 0.0% |
0.5M | 1 | 0x001 | 0.5M | 0.0% | 3 | 0x003 | 0.5M | 0.0% |
1M | 0 | 0x000 | 1M | 0.0% | 1 | 0x001 | 1M | 0.0% |
Max. | 1 Mbps | 2 Mbps |
fosc = 18.4320 MHz | ||||||||
Bit Rate (bps) | U2Xn = 0 | U2Xn = 1 | ||||||
---|---|---|---|---|---|---|---|---|
UBRR (dec) | UBRR (hex) | Actual Bit Rate | Error | UBRR (dec) | UBRR (hex) | Actual Bit Rate | Error | |
300.00 | 3839 | 0xEFF | 300.00 | 0.0% | 7679 | 0x1DFF | 300.00 | 0.0% |
600.00 | 1919 | 0x77F | 600.00 | 0.0% | 3839 | 0xEFF | 600.00 | 0.0% |
1200.00 | 959 | 0x3BF | 1200.00 | 0.0% | 1919 | 0x77F | 1200.00 | 0.0% |
2400.00 | 479 | 0x1DF | 2400.00 | 0.0% | 959 | 0x3BF | 2400.00 | 0.0% |
4800.00 | 239 | 0x0EF | 4800.00 | 0.0% | 479 | 0x1DF | 4800.00 | 0.0% |
9600.00 | 119 | 0x077 | 9600.00 | 0.0% | 239 | 0x0EF | 9600.00 | 0.0% |
14.4K | 79 | 0x04F | 14.4K | 0.0% | 159 | 0x09F | 14.4K | 0.0% |
19.2K | 59 | 0x03B | 19.2K | 0.0% | 119 | 0x077 | 19.2K | 0.0% |
28.8K | 39 | 0x027 | 28.8K | 0.0% | 79 | 0x04F | 28.8K | 0.0% |
38.4K | 29 | 0x01D | 38.4K | 0.0% | 59 | 0x03B | 38.4K | 0.0% |
57.6K | 19 | 0x013 | 57.6K | 0.0% | 39 | 0x027 | 57.6K | 0.0% |
76.8K | 14 | 0x00E | 76.8K | 0.0% | 29 | 0x01D | 76.8K | 0.0% |
115.2K | 9 | 0x009 | 115.2K | 0.0% | 19 | 0x013 | 115.2K | 0.0% |
230.4K | 4 | 0x004 | 230.4K | 0.0% | 9 | 0x009 | 230.4K | 0.0% |
250K | 4 | 0x004 | 230.4K | -7.8% | 8 | 0x008 | 256K | 2.4% |
0.5M | 1 | 0x001 | 0.576M | 15.2% | 4 | 0x004 | 460.8K | -7.8% |
1M | 0 | 0x000 | 1.152M | 15.2% | 1 | 0x001 | 1.152M | 15.2% |
Max. | 1.152 Mbps | 2.304 Mbps |
fosc = 20.0000 MHz | ||||||||
Bit Rate (bps) | U2Xn = 0 | U2Xn = 1 | ||||||
---|---|---|---|---|---|---|---|---|
UBRR (dec) | UBRR (hex) | Actual Bit Rate | Error | UBRR (dec) | UBRR (hex) | Actual Bit Rate | Error | |
300.00 | 4166 | 0x1046 | 299.98 | -0.0% | 8332 | 0x208C | 300.01 | 0.0% |
600.00 | 2082 | 0x822 | 600.10 | 0.0% | 4166 | 0x1046 | 599.95 | -0.0% |
1200.00 | 1041 | 0x411 | 1199.62 | -0.0% | 2082 | 0x822 | 1200.19 | 0.0% |
2400.00 | 520 | 0x208 | 2399.23 | -0.0% | 1041 | 0x411 | 2399.23 | -0.0% |
4800.00 | 259 | 0x103 | 4807.69 | 0.2% | 520 | 0x208 | 4798.46 | -0.0% |
9600.00 | 129 | 0x081 | 9615.38 | 0.2% | 259 | 0x103 | 9615.38 | 0.2% |
14.4K | 86 | 0x056 | 14.368K | -0.2% | 173 | 0x0AD | 14.368K | -0.2% |
19.2K | 64 | 0x040 | 19.23K | 0.2% | 129 | 0x081 | 19.23K | 0.2% |
28.8K | 42 | 0x02A | 29.070K | 0.9% | 86 | 0x056 | 28.736K | -0.2% |
38.4K | 32 | 0x020 | 37.879K | -1.4% | 64 | 0x040 | 38.462K | 0.2% |
57.6K | 21 | 0x015 | 56.818K | -1.4% | 42 | 0x02A | 58.140K | 0.9% |
76.8K | 15 | 0x00F | 78.125K | 1.7% | 32 | 0x020 | 75.758K | -1.4% |
115.2K | 10 | 0x00A | 113.636K | -1.4% | 21 | 0x015 | 113.636K | -1.4% |
230.4K | 4 | 0x004 | 250K | 8.5% | 10 | 0x00A | 227.273K | -1.4% |
250K | 4 | 0x004 | 250K | 0.0% | 9 | 0x009 | 250K | 0.0% |
0.5M | 2 | 0x002 | 416.667K | -16.7% | 4 | 0x004 | 0.5M | 0.0% |
1M | 0 | 0x000 | 1.25M | 25.0% | 2 | 0x002 | 0.833M | -16.7% |
Max. | 1.25 Mbps | 2.5 Mbps |
Legend: |
---|
UBRR and clock speed are 0.5% or less off |
UBRR and clock speed are within the recommended maximum error rate (1% to 3%) |
UBRR and clock speed is in the lower half, between recommended and absolute max error rates |
UBRR and clock speed is in the upper half, between recommended and absolute max error rates |
UBRR and clock speed are outside of the absolute maximum error rate. (3.23% to 6.67%) |
UBRR out of range, or more than twice the absolute maximum error rate (6.46% to 13.34%) |
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 (%) |
5 | 93.20 | 106.67 | +6.67/-6.8 | ±3.0 |
6 | 94.12 | 105.79 | +5.79/-5.88 | ±2.5 |
7 | 94.81 | 105.11 | +5.11/-5.19 | ±2.0 |
8 | 95.36 | 104.58 | +4.58/-4.54 | ±2.0 |
9 | 95.81 | 104.14 | +4.14/-4.19 | ±1.5 |
10 | 96.17 | 103.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 (%) |
5 | 94.12 | 105.66 | +5.66/-5.88 | ±2.5 |
6 | 94.92 | 104.92 | +4.92/-5.08 | ±2.0 |
7 | 95.52 | 104.35 | +4.35/-4.48 | ±1.5 |
8 | 96.00 | 103.90 | +3.90/-4.00 | ±1.5 |
9 | 96.39 | 103.53 | +3.53/-3.61 | ±1.5 |
10 | 96.70 | 103.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 this page, 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 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 generated as the first table, with your clock speed.