atmega32u4-16mu ATMEL Corporation, atmega32u4-16mu Datasheet - Page 228

no-image

atmega32u4-16mu

Manufacturer Part Number
atmega32u4-16mu
Description
Atmega32u4 8-bit Avr Microcontroller With 32k Bytes Of Isp Flash And Usb Controller
Manufacturer
ATMEL Corporation
Datasheet
19.10.5
19.10.6
19.11 Examples of Baud Rate Setting
228
ATmega32U4
USART Control and Status Register n D– UCSRnD
USART Baud Rate Registers – UBRRLn and UBRRHn
• Bits 7:2 – Reserved bits
These bits are reserved and will be read as ‘0’. Do not set these bits.
• Bits 1 – CTSEN: UART CTS Signal Enable
Set this bit by firmware to enable the transmission flow control signal (CTS). Transmission will
be enabled only if CTS input = 0. Clear this bit to disable the transmission flow control signal.
Transmission will occur without hardware condition. Data Direction Register bit must be correctly
clear to enable the pin as an input.
• Bits 0 – RTSEN: UART RTS Signal Enable
Set this bit by firmware to enable the reception flow control signal (RTS). In this case the RTS
line will automatically rise when the FIFO is full. Clear this bit to disable the reception flow control
signal. Data Direction Register bit must be correctly set to enable the pin as an output.
• 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
UBRR 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
Bit
Read/Write
Initial Value
Bit
Read/Write
Initial Value
7
R/W
0
15
UBRR[7:0]
7
R
R/W
0
0
6
R/W
0
14
6
R
R/W
0
0
13
5
R
R/W
0
0
5
R/W
0
12
4
R
R/W
0
0
4
R/W
0
11
UBRR[11:8]
3
R/W
R/W
0
0
3
R/W
0
10
2
R/W
R/W
0
0
2
R/W
0
R/W
R/W
9
1
0
0
1
CTSEN
R/W
0
Table 19-9
8
0
R/W
R/W
0
0
0
RTSEN
R/W
0
UBRRHn
UBRRLn
to
UCSRnD
7766A–AVR–03/08
Table
19-12.

Related parts for atmega32u4-16mu