Datasheet
ATmega48PA/88PA/168PA [DATASHEET]
9223F–AVR–04/14
76
14.3.3 Alternate Functions of Port D
The port D pins with alternate functions are shown in Table 14-9.
The alternate pin configuration is as follows:
• AIN1/OC2B/PCINT23 – Port D, Bit 7
AIN1, analog comparator 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.
PCINT23: Pin change interrupt source 23. The PD7 pin can serve as an external interrupt source.
Table 14-8. Overriding Signals for Alternate Functions in PC3...PC0
Signal
Name
PC3/ADC3/
PCINT11
PC2/ADC2/
PCINT10
PC1/ADC1/
PCINT9
PC0/ADC0/
PCINT8
PUOE 0 0 0 0
PUOV 0 0 0 0
DDOE 0 0 0 0
DDOV 0 0 0 0
PVOE 0 0 0 0
PVOV 0 0 0 0
DIEOE
PCINT11 PCIE1 +
ADC3D
PCINT10 PCIE1 +
ADC2D
PCINT9 PCIE1 +
ADC1D
PCINT8 PCIE1 +
ADC0D
DIEOV PCINT11 PCIE1 PCINT10 PCIE1 PCINT9 PCIE1 PCINT8 PCIE1
DI PCINT11 INPUT PCINT10 INPUT PCINT9 INPUT PCINT8 INPUT
AIO ADC3 INPUT ADC2 INPUT ADC1 INPUT ADC0 INPUT
Table 14-9. Port D Pins Alternate Functions
Port Pin Alternate Function
PD7
AIN1 (analog comparator negative input)
PCINT23 (pin change interrupt 23)
PD6
AIN0 (analog comparator positive input)
OC0A (Timer/Counter0 output compare match A output)
PCINT22 (pin change interrupt 22)
PD5
T1 (Timer/Counter 1 external counter input)
OC0B (Timer/Counter0 output compare match B output)
PCINT21 (pin change interrupt 21)
PD4
XCK (USART external clock input/output)
T0 (Timer/Counter 0 external counter input)
PCINT20 (pin change interrupt 20)
PD3
INT1 (external interrupt 1 input)
OC2B (Timer/Counter2 output compare match B output)
PCINT19 (pin change interrupt 19)
PD2
INT0 (external interrupt 0 input)
PCINT18 (pin change interrupt 18)
PD1
TXD (USART output pin)
PCINT17 (pin change interrupt 17)
PD0
RXD (USART input pin)
PCINT16 (pin change interrupt 16)