Electronic Components Datasheet Search
  English  ▼

X  

ATMEGA161L Datasheet(PDF) 77 Page - ATMEL Corporation

Part # ATMEGA161L
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

ATMEGA161L Datasheet(HTML) 77 Page - ATMEL Corporation

Back Button ATMEGA161L Datasheet HTML 73Page - ATMEL Corporation ATMEGA161L Datasheet HTML 74Page - ATMEL Corporation ATMEGA161L Datasheet HTML 75Page - ATMEL Corporation ATMEGA161L Datasheet HTML 76Page - ATMEL Corporation ATMEGA161L Datasheet HTML 77Page - ATMEL Corporation ATMEGA161L Datasheet HTML 78Page - ATMEL Corporation ATMEGA161L Datasheet HTML 79Page - ATMEL Corporation ATMEGA161L Datasheet HTML 80Page - ATMEL Corporation ATMEGA161L Datasheet HTML 81Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 77 / 134 page
background image
ATmega161(L)
77
The Port A pins have alternate functions related to the optional external memory interface. Port A can be configured to be
the multiplexed low-order address/data bus during accesses to the external data memory. In this mode, Port A has internal
pull-up resistors.
When Port A is set to the alternate function by the SRE – External SRAM Enable bit in the MCUCR – MCU Control Regis-
ter, the alternate settings override the data direction register.
Port A Data Register – PORTA
Port A Data Direction Register – DDRA
Port A Input Pins Address – PINA
The Port A Input Pins address – PINA – is not a register, and this address enables access to the physical value on each
Port A pin. When reading PORTA the Port A Data Latch is read, and when reading PINA, the logical values present on the
pins are read.
Port A as General Digital I/O
All 8 pins in Port A have equal functionality when used as digital I/O pins.
PAn, General I/O pin: The DDAn bit in the DDRA register selects the direction of this pin, if DDAn is set (one), PAn is con-
figured as an output pin. If DDAn is cleared (zero), PAn is configured as an input pin. If PORTAn is set (one) when the pin
configured as an input pin, the MOS pull-up resistor is activated. To switch the pull-up resistor off, the PORTAn has to be
cleared (zero) or the pin has to be configured as an output pin. The Port A pins are tri-stated when a reset condition
becomes active, even if the clock is not running.
n: 7,6…0, pin number.
Port A Schematics
Note that all port pins are synchronized. The synchronization latch is however, not shown in the figure.
Bit
7
654
321
0
$1B ($3B)
PORTA7
PORTA6
PORTA5
PORTA4
PORTA3
PORTA2
PORTA1
PORTA0
PORTA
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
654
321
0
$1A ($3A)
DDA7
DDA6
DDA5
DDA4
DDA3
DDA2
DDA1
DDA0
DDRA
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
654
321
0
$19 ($39)
PINA7
PINA6
PINA5
PINA4
PINA3
PINA2
PINA1
PINA0
PINA
Read/Write
RR
RRR
RRR
Initial value
Hi-Z
Hi-Z
Hi-Z
Hi-Z
Hi-Z
Hi-Z
Hi-Z
Hi-Z
Table 28. DDAn Effects on Port A Pins
DDAn
PORTAn
I/O
Pull-up
Comment
0
0
Input
No
Tri-state (Hi-Z)
0
1
Input
Yes
PAn will source current if ext. pulled low.
1
0
Output
No
Push-pull Zero Output
1
1
Output
No
Push-pull One Output



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