atmega161-4pi ATMEL Corporation, atmega161-4pi Datasheet - Page 79

no-image

atmega161-4pi

Manufacturer Part Number
atmega161-4pi
Description
8-bit Microcontroller With 16k Bytes Of In-system Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet
The Baud Rate Generator in
Double UART Speed Mode
1228D–AVR–02/07
Note that the baud rate equation is different from the equation on page 76 when the
UART speed is doubled:
For standard crystal frequencies, the most commonly used baud rates can be generated
by using the UBR settings in Table 24. UBR values that yield an actual baud rate differ-
ing less than 1.5% from the target baud rate are boldface in the table. However, since
the number of samples are reduced and the system clock might have some variance
(this applies especially when using resonators), it is recommended that the baud rate
error be less than 0.5%.
BAUD = Baud rate
f
UBR = Contents of the UBRRHI and UBRR Registers (0 - 4095)
Note that this equation is only valid when the UART transmission speed is doubled.
CK
= Crystal Clock frequency
BAUD
=
----------------------------- -
8(UBR
f
CK
+
1 )
ATmega161(L)
79

Related parts for atmega161-4pi