Electronic Components Datasheet Search
  English  ▼

X  

ATMEGA161-4AI Datasheet(PDF) 64 Page - ATMEL Corporation

Part # ATMEGA161-4AI
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-4AI Datasheet(HTML) 64 Page - ATMEL Corporation

Back Button ATMEGA161-4AI Datasheet HTML 60Page - ATMEL Corporation ATMEGA161-4AI Datasheet HTML 61Page - ATMEL Corporation ATMEGA161-4AI Datasheet HTML 62Page - ATMEL Corporation ATMEGA161-4AI Datasheet HTML 63Page - ATMEL Corporation ATMEGA161-4AI Datasheet HTML 64Page - ATMEL Corporation ATMEGA161-4AI Datasheet HTML 65Page - ATMEL Corporation ATMEGA161-4AI Datasheet HTML 66Page - ATMEL Corporation ATMEGA161-4AI Datasheet HTML 67Page - ATMEL Corporation ATMEGA161-4AI Datasheet HTML 68Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 64 / 134 page
background image
ATmega161(L)
64
4.
For each received data byte, the receiving MCU will set the receive complete flag (RXCn in UCSRnA. In 8-bit mode,
the receiving MCU will also generate a framing error (FEn in UCSRnA set), since the stop bit is zero. The other
slave MCUs, which still have the MPCMn bit set, will ignore the data byte. In this case, the UDRn register and the
RXCn, FEn, or flags will not be affected.
5.
After the last byte has been transferred, the process repeats from step 2.
UART Control
UART0 I/O Data Register – UDR0
UART1 I/O Data Register – UDR1
The UDRn register is actually two physically separate registers sharing the same I/O address. When writing to the register,
the UART Transmit Data register is written. When reading from UDRn, the UART Receive Data register is read.
UART0 Control and Status Registers – UCSR0A
UART1 Control and Status Registers – UCSR1A
• Bit 7 - RXC0/RXC1: UART Receive Complete
This bit is set (one) when a received character is transferred from the Receiver Shift register to UDRn. The bit is set regard-
less of any detected framing errors. When the RXCIEn bit in UCSRnB is set, the UART Receive Complete interrupt will be
executed when RXCn is set(one). RXCn is cleared by reading UDRn. When interrupt-driven data reception is used, the
UART Receive Complete Interrupt routine must read UDRn in order to clear RXCn, otherwise a new interrupt will occur
once the interrupt routine terminates.
• Bit 6 - TXC0/TXC1: UART Transmit Complete
This bit is set (one) when the entire character (including the stop bit) in the Transmit Shift register has been shifted out and
no new data has been written to UDRn. This flag is especially useful in half-duplex communications interfaces, where a
transmitting application must enter receive mode and free the communications bus immediately after completing the
transmission.
When the TXCIEn bit in UCSRnB is set, setting of TXCn causes the UART Transmit Complete interrupt to be executed.
TXCn is cleared by hardware when executing the corresponding interrupt handling vector. Alternatively, the TXCn bit is
cleared (zero) by writing a logical one to the bit.
Bit
7
6
543
210
$0C ($2C)
MSB
LSB
UDR0
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
$03 ($23)
MSB
LSB
UDR1
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
$0B ($2B)
RXC0
TXC0
UDRE0
FE0
OR0
-
U2X0
MPCM0
UCSR0A
Read/Write
R
R/W
R
R
R
R
R/W
R/W
Initial value
0
0
1
0
0
0
0
0
Bit
7
6
543
210
$02 ($22)
RXC1
TXC1
UDRE1
FE1
OR1
-
U2X1
MPCM1
UCSR1A
Read/Write
R
R/W
R
R
R
R
R/W
R/W
Initial value
0
0
1
0
0
0
0
0



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