
50
ATtiny40 [DATASHEET]
8263B–AVR–01/2013
10.3.1
Alternate Functions of Port A
The Port A pins with alternate function are shown in
Table 10-3.
Port A, Bit 0 – ADC0/PCINT0
ADC0: Analog to Digital Converter, Channel 0.
PCINT0: Pin Change Interrupt source 0. The PA0 pin can serve as an external interrupt source for pin change
interrupt 0.
Port A, Bit 1 – ADC1/AIN0/PCINT1
ADC1: Analog to Digital Converter, Channel 1.
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.
PCINT1: Pin Change Interrupt source 1. The PA1 pin can serve as an external interrupt source for pin change
interrupt 0.
Port A, Bit 2 – ADC2/AIN1/PCINT2
ADC2: Analog to Digital Converter, Channel 2.
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.
PCINT2: Pin Change Interrupt source 2. The PA2 pin can serve as an external interrupt source for pin change
interrupt 0.
Table 10-3.
Port A Pins Alternate Functions
Port Pin
Alternate Function
PA0
ADC0:
ADC Input Channel 0
PCINT0: Pin Change Interrupt 0, Source 0
PA1
ADC1:
ADC Input Channel 1
AIN0:
Analog Comparator, Positive Input
PCINT1:Pin Change Interrupt 0, Source 1
PA2
ADC2:
ADC Input Channel 2
AIN1:
Analog Comparator, Negative Input
PCINT2: Pin Change Interrupt 0, Source 2
PA3
ADC3:
ADC Input Channel 3
PCINT3: Pin Change Interrupt 0, Source 3
PA4
ADC4:
ADC Input Channel 4
T0:
Timer/Counter0 Clock Source
PCINT4: Pin Change Interrupt 0, Source 4
PA5
ADC5:
ADC Input Channel 5
OC0B:
Timer/Counter0 Compare Match B Output
PCINT5: Pin Change Interrupt 0, Source 5
PA6
ADC6:
ADC Input Channel 6
PCINT6: Pin Change Interrupt 0, Source 6
PA7
ADC7:
ADC Input Channel 7
PCINT7: Pin Change Interrupt 0, Source 7