A000047 Arduino, A000047 Datasheet - Page 227

MCU, MPU & DSP Development Tools Mega2560

A000047

Manufacturer Part Number
A000047
Description
MCU, MPU & DSP Development Tools Mega2560
Manufacturer
Arduino
Series
-r
Type
MCUr
Datasheets

Specifications of A000047

Processor To Be Evaluated
ATmega2560
Interface Type
USB, I2C, SPI
Dimensions
4 in x 2.1 in
Operating Supply Voltage
5 V
Contents
Board
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
ATmega2560
21.9.5
21.10 Examples of Baud Rate Setting
Table 21-9.
2549M–AVR–09/10
14.4 K
19.2 K
28.8 K
38.4 K
Baud
(bps)
Rate
2400
4800
9600
UBRRnL and UBRRnH – USART Baud Rate Registers
UBRR
25
12
6
3
2
1
1
Examples of UBRRn Settings for Commonly Used Oscillator Frequencies
U2Xn = 0
f
-18.6%
osc
-7.0%
Error
0.2%
0.2%
8.5%
8.5%
8.5%
= 1.0000 MHz
• Bit 15:12 – Reserved Bits
These bits are reserved for future use. For compatibility with future devices, these bit must be
written to zero when UBRRH is written.
• 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 eight 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
on page
get 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
lowing equation:
Bit
Read/Write
Initial Value
UBRR
51
25
12
8
6
3
2
U2Xn = 1
231. UBRR values which yield an actual baud rate differing less than 0.5% from the tar-
-3.5%
-7.0%
Error
0.2%
0.2%
0.2%
8.5%
8.5%
R/W
15
R
7
0
0
UBRR
47
23
11
7
5
3
2
R/W
U2Xn = 0
14
R
6
0
0
Error[%]
f
osc
ATmega640/1280/1281/2560/2561
Error
0.0%
0.0%
0.0%
0.0%
0.0%
0.0%
0.0%
R/W
13
=
= 1.8432 MHz
R
5
0
0
BaudRate
------------------------------------------------------- - 1
UBRR
95
47
23
15
11
BaudRate
R/W
7
5
12
R
4
0
0
U2Xn = 1
220). The error values are calculated using the fol-
UBRR[7:0]
Closest Match
Error
0.0%
0.0%
0.0%
0.0%
0.0%
0.0%
0.0%
R/W
R/W
11
3
0
0
UBRR
R/W
R/W
51
25
12
10
2
0
0
8
6
3
2
UBRR[11:8]
100%
U2Xn = 0
f
Table 21-9
osc
-3.5%
-7.0%
Error
0.2%
0.2%
0.2%
8.5%
8.5%
R/W
R/W
9
1
0
0
= 2.0000 MHz
UBRR
R/W
R/W
103
8
0
0
0
51
25
16
12
to
8
6
U2Xn = 1
Table 21-12
UBRRHn
UBRRLn
-3.5%
-7.0%
Error
0.2%
0.2%
0.2%
2.1%
0.2%
227

Related parts for A000047