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

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 as General Digital I/O
Alternate Functions of PORTD • OC2 – PORTD, Bit 7
1142E–AVR–02/03
PDn, General I/O pin: The DDDn bit in the DDRD Register selects the direction of this
pin. If DDDn is set (one), PDn is configured as an output pin. If DDDn is cleared (zero),
PDn is configured as an input pin. If PDn is set (one) when configured as an input pin
the MOS pull up resistor is activated. To switch the pull up resistor off the PDn has to be
cleared (zero), the pin has to be configured as an output pin, or the PUD bit has to be
set. The Port D pins are tri-stated when a reset condition becomes active, even if the
clock is not running.
Table 50. DDDn Bits on Port D Pins
Note:
OC2, Timer/Counter2 Output Compare Match output: The PD7 pin can serve as an
external output for the Timer/Counter2 Output Compare. The pin has to be configured
as an output (DDD7 set (one)) to serve this function. See the Timer description on how
to enable this function. The OC2 pin is also the output pin for the PWM mode timer
function.
• ICP – PORTD, Bit 6
IC P – Inp u t C ap tu re Pin : Th e PD 6 pin ca n a ct a s an In p ut Ca p tu re p in fo r
Timer/Counter1. The pin has to be configured as an input (DDD6 cleared(zero)) to serve
this function. See the timer description on how to enable this function.
• OC1A – PORTD, Bit 5
OC1A, Output Compare Match A output: The PD5 pin can serve as an external output
for the Timer/Counter1 Output Compare A. The pin has to be configured as an output
(DDD5 set (one)) to serve this function. See the timer description on how to enable this
function. The OC1A pin is also the output pin for the PWM mode timer function.
• OC1B – PORTD, Bit 4
OC1B, Output Compare Match B output: The PD4 pin can serve as an external output
for the Timer/Counter1 Output Compare B. The pin has to be configured as an output
(DDD4 set (one)) to serve this function. See the timer description on how to enable this
function. The OC1B pin is also the output pin for the PWM mode timer function.
• INT1 – PORTD, Bit 3
INT1, External Interrupt Source 1: The PD3 pin can serve as an External Interrupt
Source to the MCU. See the interrupt description for further details, and how to enable
the source.
DDDn
0
0
0
1
1
1. n: 7,6…0, pin number.
PORTDn
0
1
1
0
1
PUD
1
0
x
x
x
Output
Output
Input
Input
Input
I/O
(1)
Pull Up
Yes
No
No
No
No
Comment
Tri-state (Hi-Z)
Tri-state (Hi-Z)
PDn will source current if ext. pulled low.
Push-pull Zero Output
Push-pull One Output
ATmega163(L)
129

Related parts for ATMEGA163