Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

ATMEGA161 Datasheet(PDF) 68 Page - ATMEL Corporation

Part # ATMEGA161
Description  8-bit Microcontroller with 16K Bytes In-System Programmable Flash
PDF  134 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  ATMEL [ATMEL Corporation]
Direct Link  http://www.atmel.com
Logo ATMEL - ATMEL Corporation

ATMEGA161 Datasheet(HTML) 68 Page - ATMEL Corporation

Back Button ATMEGA161 Datasheet HTML 64Page - ATMEL Corporation ATMEGA161 Datasheet HTML 65Page - ATMEL Corporation ATMEGA161 Datasheet HTML 66Page - ATMEL Corporation ATMEGA161 Datasheet HTML 67Page - ATMEL Corporation ATMEGA161 Datasheet HTML 68Page - ATMEL Corporation ATMEGA161 Datasheet HTML 69Page - ATMEL Corporation ATMEGA161 Datasheet HTML 70Page - ATMEL Corporation ATMEGA161 Datasheet HTML 71Page - ATMEL Corporation ATMEGA161 Datasheet HTML 72Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 68 / 134 page
background image
ATmega161(L)
68
UART0 Baud Rate Register Low byte – UBRR0
UART1 Baud Rate Register Low byte – UBRR1
UBRRn stores the 8 least significant bits of the UART baud rate register.
Double Speed Transmission
The ATmega161 provides a separate UART mode that allows the user to double the communication speed. By setting the
U2X bit in UART Control and Status Register UCSRnA, the UART speed will be doubled. The data reception will differ
slightly from normal mode. Since the speed is doubled, the receiver front-end logic samples the signals on RXDn pin at a
frequency 8 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 RXDn 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
The Baud Rate Generator in double UART speed mode
Note that the baud-rate equation is different from the equation at page 66 when the UART speed is doubled:
• BAUD = Baud-rate
• f
CK= Crystal Clock frequency
• UBR = Contents of the UBRRHI and UBRR registers, (0-4095)
• Note that this equation is only valid when the UART transmission speed is doubled.
For standard crystal frequencies, the most commonly used baud rates can be generated by using the UBR settings in
Table 23. UBR values which yield an actual baud rate differing less than 1.5% from the target baud rate, are bold 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 is less than 0.5%.
Bit
7
6
543
210
$09 ($29)
MSB
LSB
UBRR0
Read/Write
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial value
0
0
0
0
0
0
0
0
Bit
7
6
543
210
$00 ($20)
MSB
LSB
UBRR1
Read/Write
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial value
0
0
0
0
0
0
0
0
START BIT
D0
D1
D2
D3
D4
D5
D6
D7
STOP BIT
RXD
RECEIVER
SAMPLING
BAUD
fCK
8(UBR
1
)
+
------------------------------
=



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com