88
8272E–AVR–04/2013
ATmega164A/PA/324A/PA/644A/PA/1284/P
14.3.4
Alternate Functions of Port D
The Port D pins with alternate functions are shown in
Table 14-12.
The alternate pin configuration is as follows:
OC2A/PCINT31 – Port D, Bit 7
OC2A, Output Compare Match A output: The PD7 pin can serve as an external output for the
Timer/Counter2 Output Compare A. The pin has to be configured as an output (DDD7 set (one))
to serve this function. The OC2A pin is also the output pin for the PWM mode timer function.
PCINT31, Pin Change Interrupt Source 31:The PD7 pin can serve as an external interrupt
source.
ICP1/OC2B/PCINT30 – Port D, Bit 6
ICP1, Input Capture Pin 1: The PD6 pin can act as an input capture pin for Timer/Counter1.
OC2B, Output Compare Match B output: The PD6 pin can serve as an external output for the
Timer/Counter2 Output Compare B. The pin has to be configured as an output (DDD6 set (one))
to serve this function. The OC2B pin is also the output pin for the PWM mode timer function.
PCINT30, Pin Change Interrupt Source 30: The PD6 pin can serve as an external interrupt
source.
Table 14-12. Port D pins alternate functions.
Port pin
Alternate function
PD7
OC2A (Timer/Counter2 Output Compare Match A Output)
PCINT31 (Pin Change Interrupt 31)
PD6
ICP1 (Timer/Counter1 Input Capture Trigger)
OC2B (Timer/Counter2 Output Compare Match B Output)
PCINT30 (Pin Change Interrupt 30)
PD5
OC1A (Timer/Counter1 Output Compare Match A Output)
PCINT29 (Pin Change Interrupt 29)
PD4
OC1B (Timer/Counter1 Output Compare Match B Output)
XCK1 (USART1 External Clock Input/Output)
PCINT28 (Pin Change Interrupt 28)
PD3
INT1 (External Interrupt1 Input)
TXD1 (USART1 Transmit Pin)
PCINT27 (Pin Change Interrupt 27)
PD2
INT0 (External Interrupt0 Input)
RXD1 (USART1 Receive Pin)
PCINT26 (Pin Change Interrupt 26)
PD1
TXD0 (USART0 Transmit Pin)
PCINT25 (Pin Change Interrupt 25)
PD0
RXD0 (USART0 Receive Pin)
PCINT24 (Pin Change Interrupt 24)
T3 (Timer/Counter 3 External Counter Input)