ATMEGA163 ATMEL [ATMEL Corporation], ATMEGA163 Datasheet - Page 128

no-image

ATMEGA163

Manufacturer Part Number
ATMEGA163
Description
8-bit Microcontroller with 16K Bytes In-System Programmable Flash
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATMEGA163-8AC
Manufacturer:
ATMEL
Quantity:
1 600
Part Number:
ATMEGA163-8AI
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATMEGA163L-4AI
Manufacturer:
ATMEL
Quantity:
984
Port D
The Port D Data Register –
PORTD
The Port D Data Direction
Register – DDRD
The Port D Input Pins Address
– PIND
128
ATmega163(L)
Port D is an 8 bit bi-directional I/O port with internal pull-up resistors.
Three I/O memory address locations are allocated for Port D, one each for the Data
Register – PORTD, $12($32), Data Direction Register – DDRD, $11($31) and the Port D
Input Pins – PIND, $10($30). The Port D Input Pins address is read only, while the Data
Register and the Data Direction Register are read/write.
The Port D output buffers can sink 20 mA. As inputs, Port D pins that are externally
pulled low will source current if the pull-up resistors are activated. Some Port D pins
have alternate functions as shown in Table 49.
Table 49. Port D Pins Alternate Functions
The Port D Input Pins Address – PIND – is not a register, and this address enables
access to the physical value on each Port D pin. When reading PORTD, the PORTD
Data Latch is read, and when reading PIND, the logical values present on the pins are
read.
Bit
$12 ($32)
Read/Write
Initial Value
Bit
$11 ($31)
Read/Write
Initial Value
Bit
$10 ($30)
Read/Write
Initial Value
Port Pin
PD0
PD1
PD2
PD3
PD4
PD5
PD6
PD7
PORTD7
PIND7
DDD7
R/W
R/W
N/A
R
7
0
7
0
7
Alternate Function
RXD (UART Input Pin)
TXD (UART Output Pin)
INT0 (External Interrupt 0 Input)
INT1 (External Interrupt 1 Input)
OC1B (Timer/Counter1 Output CompareB Match Output)
OC1A (Timer/Counter1 Output CompareA Match Output)
ICP (Timer/Counter1 Input Capture Pin)
OC2 (Timer/Counter2 Output Compare Match Output)
PORTD6
PIND6
DDD6
R/W
R/W
N/A
6
0
6
0
6
R
PORTD5
PIND5
DDD5
R/W
R/W
N/A
R
5
0
5
0
5
PORTD4
PIND4
DDD4
R/W
R/W
N/A
R
4
0
4
0
4
PORTD3
PIND3
DDD3
R/W
R/W
N/A
R
3
0
3
0
3
PORTD2
PIND2
DDD2
R/W
R/W
N/A
2
0
2
0
2
R
PORTD1
PIND1
DDD1
R/W
R/W
N/A
R
1
0
1
0
1
PORTD0
PIND0
DDD0
R/W
R/W
N/A
R
1142E–AVR–02/03
0
0
0
0
0
PORTD
DDRD
PIND

Related parts for ATMEGA163