9.3.4 Alternate Functions of Port D
The Port D pins with alternate functions are shown in Table 9-9.
Table 9-9. Port D Pins Alternate Functions
Port Pin
Alternate Function
ACMP0 (Analog Comparator 0 Positive Input)
PCINT23 (Pin Change Interrupt 23)
ADC3 (Analog Input Channel 3)
PD7
ACMPN2 (Analog Comparator 2 Negative Input)
INT0 (External Interrupt 0)
PD6
PD5
PCINT22 (Pin Change Interrupt 22)
ADC2 (Analog Input Channel 2)
ACMP2 (Analog Comparator 2 Positive Input)
PCINT21 (Pin Change Interrupt 21)
ADC1 (Analog Input Channel 1)
RXD/RXLIN (LIN/UART Rx Data)
ICP1A (Timer 1 Input Capture)
PD4
SCK_A (Programming and Alternate SPI Clock)
PCINT20 (Pin Change Interrupt 20)
TXD/TXLIN (LIN/UART Tx Data)
OC0A (Timer 0 Output Compare A)
SS (SPI Slave Select)
PD3
PD2
MOSI_A (Programming and Alternate SPI Master Out Slave In)
PCINT19 (Pin Change Interrupt 19)
PSCIN2 (PSC Digital Input 2)
OC1A (Timer 1 Output Compare A)
MISO_A (Programming and Alternate Master In SPI Slave Out)
PCINT18 (Pin Change Interrupt 18)
PSCIN0 (PSC Digital Input 0)
PD1
PD0
CLKO (System Clock Output)
PCINT17 (Pin Change Interrupt 17)
PSCOUT0A (PSC Output 0A)
PCINT16 (Pin Change Interrupt 16)
The alternate pin configuration is as follows:
• ACMP0/PCINT23 – Bit 7
ACMP0, analog comparator 0 positive input. Configure the port pin as input with the internal pull-up switched off to avoid the
digital port function from interfering with the function of the analog comparator.
PCINT23, pin change interrupt 23.
• ADC3/ACMPN2/INT0/PCINT22 – Bit 6
ADC3, analog to digital converter, input channel 3.
ACMPN2, analog comparator 2 negative input. Configure the port pin as input with the internal pull-up switched off to avoid
the digital port function from interfering with the function of the analog comparator.
INT0, external interrupt source 0. This pin can serve as an external interrupt source to the MCU.
PCINT22, pin change interrupt 23.
64
ATmega16/32/64/M1/C1 [DATASHEET]
7647O–AVR–01/15