English
Language : 

ATTINY10_14 Datasheet, PDF (48/170 Pages) ATMEL Corporation – Atmel 8-bit AVR Microcontroller
10.3.1 Alternate Functions of Port B
The Port B pins with alternate function are shown in Table 10-3 on page 48.
Table 10-3. Port B Pins Alternate Functions
Port Pin
Alternate Function
ADC0: ADC Input Channel 0
AIN0: Analog Comparator, Positive Input
PB0
OC0A: Timer/Counter0 Compare Match A Output
PCINT0: Pin Change Interrupt 0, Source 0
TPIDATA:Serial Programming Data
ADC1: ADC Input Channel 1
AIN1: Analog Comparator, Negative Input
CLKI: External Clock
PB1
ICP0: Timer/Counter0 Input Capture Input
OC0B: Timer/Counter0 Compare Match B Output
PCINT1:Pin Change Interrupt 0, Source 1
TPICLK: Serial Programming Clock
ADC2: ADC Input Channel 2
CLKO: System Clock Output
PB2
INT0: External Interrupt 0 Source
PCINT2: Pin Change Interrupt 0, Source 2
T0: Timer/Counter0 Clock Source
ADC3: ADC Input Channel 3
PB3
PCINT3: Pin Change Interrupt 0, Source 3
RESET: Reset Pin
• Port B, Bit 0 – ADC0/AIN0/OC0A/PCINT0/TPIDATA
• ADC0: Analog to Digital Converter, Channel 0 (ATtiny5/10, only)
• 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.
• OC0A, Output Compare Match output: The PB0 pin can serve as an external output for the Timer/Counter0
Compare Match A. The pin has to be configured as an output (DDB0 set (one)) to serve this function. This is
also the output pin for the PWM mode timer function.
• PCINT0: Pin Change Interrupt source 0. The PB0 pin can serve as an external interrupt source for pin change
interrupt 0.
• TPIDATA: Serial Programming Data.
• Port B, Bit 1 – ADC1/AIN1/CLKI/ICP0/OC0B/PCINT1/TPICLK
• ADC1: Analog to Digital Converter, Channel 1 (ATtiny5/10, only)
• 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.
• CLKI: External Clock.
• ICP0: Input Capture Pin. The PB1 pin can act as an Input Capture pin for Timer/Counter0.
• OC0B: Output Compare Match output: The PB1 pin can serve as an external output for the Timer/Counter0
Compare Match B. The PB1 pin has to be configured as an output (DDB1 set (one)) to serve this function. The
OC0B pin is also the output pin for the PWM mode timer function.
ATtiny4/5/9/10 [DATASHEET] 48
8127F–AVR–02/2013