Datasheet
Table 15-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)
The alternate pin configuration is as follows:
• OC2A/PCINT31 – Port D, Bit 7
– OC2A: Output Compare Match output. The PD7 pin can serve as an external output for the
Timer/Counter2 Compare Match A. The PD7 pin has to be configured as an output (DDD7 set
'1') 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 '1')
to serve this function. The OC2B pin is also the output pin for the PWM mode timer function.
Atmel ATmega644A [DATASHEET]
Atmel-42716C-ATmega644A_Datasheet_Complete-10/2016
109