ATMEGA16-16AU SL602 Atmel, ATMEGA16-16AU SL602 Datasheet - Page 168

no-image

ATMEGA16-16AU SL602

Manufacturer Part Number
ATMEGA16-16AU SL602
Description
Manufacturer
Atmel
Datasheet
Examples of Baud
Rate Setting
Table 68. Examples of UBRR Settings for Commonly Used Oscillator Frequencies
1.
2466T–AVR–07/10
Baud
Rate
(bps)
2400
4800
9600
14.4k
19.2k
28.8k
38.4k
57.6k
76.8k
115.2k
230.4k
250k
Max
(1)
UBRR = 0, Error = 0.0%
UBRR
25
12
6
3
2
1
1
0
62.5 Kbps
U2X = 0
f
-18.6%
osc
-7.0%
Error
0.2%
0.2%
8.5%
8.5%
8.5%
8.5%
= 1.0000 MHz
• Bit 11:0 – UBRR11:0: USART Baud Rate Register
This is a 12-bit register which contains the USART baud rate. The UBRRH contains the four
most significant bits, and the UBRRL contains the 8 least significant bits of the USART baud
rate. Ongoing transmissions by the transmitter and receiver will be corrupted if the baud rate is
changed. Writing UBRRL will trigger an immediate update of the baud rate prescaler.
For standard crystal and resonator frequencies, the most commonly used baud rates for asyn-
chronous operation can be generated by using the UBRR settings in
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
Range” on page
UBRR
51
25
12
8
6
3
2
1
1
0
125 Kbps
U2X = 1
-18.6%
-3.5%
-7.0%
Error
0.2%
0.2%
0.2%
8.5%
8.5%
8.5%
8.5%
159). The error values are calculated using the following equation:
UBRR
47
23
11
7
5
3
2
1
0
1
115.2 Kbps
U2X = 0
Error[%]
f
-25.0%
osc
Error
0.0%
0.0%
0.0%
0.0%
0.0%
0.0%
0.0%
0.0%
0.0%
= 1.8432 MHz
=
BaudRate
------------------------------------------------------- - 1
UBRR
95
47
23
15
11
BaudRate
7
5
3
2
1
0
230.4 Kbps
U2X = 1
Closest Match
Error
0.0%
0.0%
0.0%
0.0%
0.0%
0.0%
0.0%
0.0%
0.0%
0.0%
0.0%
UBRR
51
25
12
8
6
3
2
1
1
0
125 Kbps
100%
U2X = 0
“Asynchronous Operational
f
-18.6%
osc
-3.5%
-7.0%
Error
0.2%
0.2%
0.2%
8.5%
8.5%
8.5%
8.5%
ATmega16(L)
Table
= 2.0000 MHz
68. UBRR values
UBRR
103
51
25
16
12
8
6
3
2
1
0
250 Kbps
U2X = 1
-3.5%
-7.0%
Error
0.2%
0.2%
0.2%
2.1%
0.2%
8.5%
8.5%
8.5%
0.0%
168

Related parts for ATMEGA16-16AU SL602