73
ATmega16M1/32M1/64M1 [DATASHEET]
8209E–AVR–11/2012
13.3.3
Alternate functions of Port D
The Port D pins with alternate functions are shown in
Table 13-9.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.
Table 13-9.
Port D pins alternate functions.
Port pin
Alternate function
PD7
ACMP0 (Analog Comparator 0 Positive Input)
PCINT23 (Pin Change Interrupt 23)
PD6
ADC3 (Analog Input Channel 3)
ACMPN2 (Analog Comparator 2 Negative Input)
INT0 (External Interrupt 0)
PCINT22 (Pin Change Interrupt 22)
PD5
ADC2 (Analog Input Channel 2)
ACMP2 (Analog Comparator 2 Positive Input)
PCINT21 (Pin Change Interrupt 21)
PD4
ADC1 (Analog Input Channel 1)
RXD/RXLIN (LIN/UART Rx data)
ICP1A (Timer 1 input capture)
SCK_A (Programming & alternate SPI Clock)
PCINT20 (Pin Change Interrupt 20)
PD3
TXD/TXLIN (LIN/UART Tx data)
OC0A (Timer 0 Output Compare A)
SS (SPI Slave Select)
MOSI_A (Programming & alternate SPI Master Out Slave In)
PCINT19 (Pin Change Interrupt 19)
PD2
PSCIN2 (PSC Digital Input 2)
OC1A (Timer 1 Output Compare A)
MISO_A (Programming & alternate Master In SPI Slave Out)
PCINT18 (Pin Change Interrupt 18)
PD1
PSCIN0 (PSC Digital Input 0)
CLKO (System Clock Output)
PCINT17 (Pin Change Interrupt 17)
PD0
PSCOUT0A (PSC output 0A)
PCINT16 (Pin Change Interrupt 16)