Alternate Functions of Port B

The Port B pins with alternate functions are shown in the table below:

Table 1. Port B Pins Alternate Functions
Port Pin Alternate Functions
PB[0]

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

PB[1]

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

PB[2]

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

PB[3]

ADC3: ADC Input Channel 3

PCINT3: Pin Change Interrupt 0, Source 3

RESET: Reset Pin

The alternate pin configuration is as follows:

The following tables relate the alternate functions of Port B to the overriding signals shown in the figure of Alternate Port Functions.

Table 2. Overriding Signals for Alternate Functions in PB[3:2]
Signal 
Name PB3/ADC3/RESET/PCINT3 PB2/ADC2/INT0/T0/CLKO/PCINT2
PUOE RSTDISBL(1) CKOUT(2)
PUOV 1 0
DDOE RSTDISBL(1) CKOUT(2)
DDOV 0 1
PVOE 0 CKOUT(2)
PVOV 0 (system clock)
PTOE 0 0
DIEOE RSTDISBL(1) + (PCINT3 • PCIE0) + ADC3D (PCINT2 • PCIE0) + ADC2D + INT0
DIEOV RSTDISBL • PCINT3 • PCIE0 (PCINT2 • PCIE0) + INT0
DI PCINT3 Input INT0/T0/PCINT2 Input
AIO ADC3 Input ADC2 Input
Note:
  1. RSTDISBL is 1 when the configuration bit is “0” (Programmed).
  2. CKOUT is 1 when the configuration bit is “0” (Programmed).
Table 3. Overriding Signals for Alternate Functions in PB[1:0]
Signal 
Name PB1/ADC1/AIN1/OC0B/CLKI/ICP0/PCINT1 PB0/ADC0/AIN0/OC0A/PCINT0
PUOE EXT_CLOCK(1) 0
PUOV 0 0
DDOE EXT_CLOCK(1) 0
DDOV 0 0
PVOE EXT_CLOCK(1)+ OC0B Enable OC0A Enable
PVOV EXT_CLOCK(1)• OC0B OC0A
PTOE 0 0
DIEOE EXT_CLOCK(1)+ (PCINT1 • PCIE0) + ADC1D (PCINT0 • PCIE0) + ADC0D
DIEOV EXT_CLOCK(1)PWR_DOWN) + (EXT_CLOCK(1) • PCINT1 • PCIE0) PCINT0 • PCIE0
DI CLOCK/ICP0/PCINT1 Input PCINT0 Input
AIO ADC1/Analog Comparator Negative Input ADC0/Analog Comparator Positive Input
Note:
  1. EXT_CLOCK is 1 when external clock is selected as main clock.