1 alternate functions of port b – Rainbow Electronics ATtiny10 User Manual
Page 48

48
8127B–AVR–08/09
ATtiny4/5/9/10
10.3.1
Alternate Functions of Port B
The Port B pins with alternate function are shown in
• 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.
Table 10-3.
Port B Pins Alternate Functions
Port Pin
Alternate Function
PB0
ADC0:
ADC Input Channel 0
AIN0:
Analog Comparator, Positive Input
OC0A:
Timer/Counter0 Compare Match A Output
PCINT0: Pin Change Interrupt 0, Source 0
TPIDATA:Serial Programming Data
PB1
ADC1:
ADC Input Channel 1
AIN1:
Analog Comparator, Negative Input
CLKI:
External Clock
ICP0:
Timer/Counter0 Input Capture Input
OC0B:
Timer/Counter0 Compare Match B Output
PCINT1:Pin Change Interrupt 0, Source 1
TPICLK: Serial Programming Clock
PB2
ADC2:
ADC Input Channel 2
CLKO:
System Clock Output
INT0:
External Interrupt 0 Source
PCINT2: Pin Change Interrupt 0, Source 2
T0:
Timer/Counter0 Clock Source
PB3
ADC3:
ADC Input Channel 3
PCINT3: Pin Change Interrupt 0, Source 3
RESET: Reset Pin