ATMEGA163 ATMEL [ATMEL Corporation], ATMEGA163 Datasheet - Page 78
ATMEGA163
Manufacturer Part Number
ATMEGA163
Description
8-bit Microcontroller with 16K Bytes In-System Programmable Flash
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
1.ATMEGA163.pdf
(187 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
ATMEGA163-8AC
Manufacturer:
ATMEL
Quantity:
1 600
Part Number:
ATMEGA163-8AI
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Company:
Part Number:
ATMEGA163L-4AI
Manufacturer:
ATMEL
Quantity:
984
- Current page: 78 of 187
- Download datasheet (3Mb)
UART Baud Rate Registers –
UBRR and UBRRHI
Double Speed
Transmission
The Baud Rate Generator in
Double UART Speed Mode
78
ATmega163(L)
This is a 12-bit register which contains the UART Baud Rate according to the equation
on the previous page. The UBRRHI contains the four most significant bits, and the
UBRR contains the eight least significant bits of the UART Baud Rate.
The ATmega163 provides a separate UART mode which allows the user to double the
communication speed. By setting the U2X bit in the UART Control and Status Register
UCSRA, the UART speed will be doubled. Note, however, that the receiver will in this
case only use half the number of samples (only 8 instead of 16) for data sampling and
clock recovery, and therefore requires more accurate baud rate setting and system
clock.
The data reception will differ slightly from Normal mode. Since the speed is doubled, the
Receiver front-end logic samples the signals on RXD pin at a frequency eight times the
baud rate. While the line is idle, one single sample of logical zero will be interpreted as
the falling edge of a start bit, and the start bit detection sequence is initiated. Let sample
1 denote the first zero-sample. Following the 1 to 0-transition, the Receiver samples the
RXD pin at samples 4, 5, and 6. If two or more of these three samples are found to be
logical ones, the start bit is rejected as a noise spike and the receiver starts looking for
the next 1 to 0-transition.
If however, a valid start bit is detected, sampling of the data bits following the start bit is
performed. These bits are also sampled at samples 4, 5, and 6. The logical value found
in at least two of the three samples is taken as the bit value. All bits are shifted into the
Transmitter Shift Register as they are sampled. Sampling of an incoming character is
shown in Figure 48.
Figure 48. Sampling Received Data When the Transmission Speed is Doubled
RECEIVER
SAMPLING
Note that the baud-rate equation is different from the equation on page 78 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 28. UBR values which yield an actual baud rate dif-
fering less than 1.5% from the target baud rate, are bold in the table. However, since the
Bit
$20 ($40)
$09 ($29)
Read/Write
Initial Value
RXD
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
START BIT
MSB
R/W
15
R
–
7
0
0
D0
R/W
14
R
–
6
0
0
D1
R/W
13
–
5
R
0
0
BAUD
D2
R/W
12
R
=
–
4
0
0
----------------------------- -
8(UBR
D3
f
MSB
R/W
R/W
CK
11
3
0
0
+
D4
1
R/W
R/W
10
2
0
0
D5
R/W
R/W
9
1
0
0
D6
LSB
LSB
R/W
R/W
8
0
0
0
1142E–AVR–02/03
D7
UBRRHI
UBRR
STOP BIT
Related parts for ATMEGA163
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Atmel CryptoMemory
Manufacturer:
ATMEL [ATMEL Corporation]
Datasheet:
Part Number:
Description:
Atmel CryptoMemory
Manufacturer:
ATMEL [ATMEL Corporation]
Datasheet:
Part Number:
Description:
Atmel CryptoMemory, 16Kbit
Manufacturer:
ATMEL [ATMEL Corporation]
Datasheet:
Part Number:
Description:
8-bit Atmel Microcontrollers
Manufacturer:
ATMEL [ATMEL Corporation]
Datasheet:
Part Number:
Description:
8-bit Atmel Microcontroller with 64K/128K/256K Bytes In-System Programmable Flash
Manufacturer:
ATMEL [ATMEL Corporation]
Datasheet:
Part Number:
Description:
8-bit Atmel Microcontroller with 16/32/64/128K Bytes In-System Programmable Flash
Manufacturer:
ATMEL [ATMEL Corporation]
Datasheet:
Part Number:
Description:
8-bit Atmel Microcontroller with 16/32/64K Bytes In-System Programmable Programmable
Manufacturer:
ATMEL [ATMEL Corporation]
Datasheet:
Part Number:
Description:
INTERVAL AND WIPE/WASH WIPER CONTROL IC WITH DELAY
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
Low-Voltage Voice-Switched IC for Hands-Free Operation
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
MONOLITHIC INTEGRATED FEATUREPHONE CIRCUIT
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
AM-FM Receiver IC U4255BM-M
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
Monolithic Integrated Feature Phone Circuit
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
Multistandard Video-IF and Quasi Parallel Sound Processing
Manufacturer:
ATMEL Corporation
Datasheet: