
75
8008H–AVR–04/11
ATtiny48/88
10.3.4
Alternate Functions of Port D
The Port D pins with alternate functions are shown in
Table 10-11.
The alternate pin configuration is as follows:
AIN1/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.
AIN0/PCINT22 – Port D, Bit 6
AIN0: Analog Comparator 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.
PCINT22: Pin Change Interrupt source 22. The PD6 pin can serve as an external interrupt
source.
T1/PCINT21 – Port D, Bit 5
T1: Timer/Counter1 counter source.
PCINT21: Pin Change Interrupt source 21. The PD5 pin can serve as an external interrupt
source.
T0/PCINT20 – Port D, Bit 4
T0: Timer/Counter0 counter source.
PCINT20: Pin Change Interrupt source 20. The PD4 pin can serve as an external interrupt
source.
Table 10-11. 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)
PCINT22 (Pin Change Interrupt 22)
PD5
T1 (Timer/Counter 1 External Counter Input)
PCINT21 (Pin Change Interrupt 21)
PD4
T0 (Timer/Counter 0 External Counter Input)
PCINT20 (Pin Change Interrupt 20)
PD3
INT1 (External Interrupt 1 Input)
PCINT19 (Pin Change Interrupt 19)
PD2
INT0 (External Interrupt 0 Input)
PCINT18 (Pin Change Interrupt 18)
PD1
PCINT17 (Pin Change Interrupt 17)
PD0
PCINT16 (Pin Change Interrupt 16)