ATmega48/88/168
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 in Table 81.
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 “Asynchronous Operational Range” on page 177). The error values are cal-
culated using the following equation:
BaudRateClosest Match
⎛
⎞
Error[%] = -------------------------------------------------- – 1 • 100%
⎝
⎠
BaudRate
Table 81. Examples of UBRRn Settings for Commonly Used Oscillator Frequencies
fosc = 1.0000 MHz fosc = 1.8432 MHz
U2Xn = 0 U2Xn = 1 U2Xn = 0 U2Xn = 1
fosc = 2.0000 MHz
U2Xn = 0 U2Xn = 1
Baud
Rate
(bps)
Error
0.2ꢀ
0.2ꢀ
-7.0ꢀ
8.5ꢀ
8.5ꢀ
8.5ꢀ
-18.6ꢀ
8.5ꢀ
–
Error
0.2ꢀ
0.2ꢀ
0.2ꢀ
-3.5ꢀ
-7.0ꢀ
8.5ꢀ
8.5ꢀ
8.5ꢀ
-18.6ꢀ
8.5ꢀ
–
Error
0.0ꢀ
0.0ꢀ
0.0ꢀ
0.0ꢀ
0.0ꢀ
0.0ꢀ
0.0ꢀ
0.0ꢀ
-25.0ꢀ
0.0ꢀ
–
Error
0.0ꢀ
0.0ꢀ
0.0ꢀ
0.0ꢀ
0.0ꢀ
0.0ꢀ
0.0ꢀ
0.0ꢀ
0.0ꢀ
0.0ꢀ
0.0ꢀ
–
Error
Error
UBRRn
UBRRn
UBRRn
UBRRn
UBRRn
UBRRn
2400
25
12
6
51
25
12
8
47
23
11
7
95
47
23
15
11
7
51
25
12
8
0.2ꢀ
0.2ꢀ
0.2ꢀ
-3.5ꢀ
-7.0ꢀ
8.5ꢀ
8.5ꢀ
8.5ꢀ
-18.6ꢀ
8.5ꢀ
–
103
51
25
16
12
8
0.2ꢀ
0.2ꢀ
0.2ꢀ
2.1ꢀ
0.2ꢀ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