3 alternate functions of port d – Rainbow Electronics ATmega64M1 User Manual
Page 79
79
8209A–AVR–08/09
ATmega16M1/32M1/64M1
14.3.3
Alternate Functions of Port D
The Port D pins with alternate functions are shown in
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 Ana-
log Comparator.
PCINT23, Pin Change Interrupt 23.
• ADC3/ACMPN2/INT0/PCINT22 – Bit 6
ADC3, Analog to Digital Converter, input channel 3.
Table 14-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)