Datasheet
81
7728G–AVR–06/10
ATtiny87/ATtiny167
9.3.4 Alternate Functions of Port B
The Port B pins with alternate functions are shown in Table 9-6.
The alternate pin configuration is as follows:
• PCINT15/ADC10/OC1BX/RESET
/dW – Port B, Bit 7
PCINT15: Pin Change Interrupt, source 15.
ADC10: Analog to Digital Converter, channel 10.
OC1BX: Output Compare and PWM Output B-X for Timer/Counter1. The PB7 pin has to be
configured as an output (DDB7 set (one)) to serve this function. The OC1BX pin is
also the output pin for the PWM mode timer function (c.f. OC1BX bit of TCCR1D regis-
ter).
Table 9-6. Port B Pins Alternate Functions
Port Pin Alternate Functions
PB7
PCINT15 (Pin Change Interrupt 15)
ADC10 (ADC Input Channel 10)
OC1BX (Output Compare and PWM Output B-X for Timer/Counter1)
RESET
(Reset input pin)
dW (debugWIRE I/O)
PB6
PCINT14 (Pin Change Interrupt 14)
ADC9 (ADC Input Channel 9)
OC1AX (Output Compare and PWM Output A-X for Timer/Counter1)
INT0 (External Interrupt0 Input)
PB5
PCINT13 (Pin Change Interrupt 13)
ADC8 (ADC Input Channel 8)
OC1BW (Output Compare and PWM Output B-W for Timer/Counter1)
XTAL2 (Chip clock Oscillator pin 2)
CLKO (System clock output)
PB4
PCINT12 (Pin Change Interrupt 12)
OC1AW (Output Compare and PWM Output A-W for Timer/Counter1)
XTAL1 (Chip clock Oscillator pin 1)
CLKI (External clock input)
PB3
PCINT11 (Pin Change Interrupt 11)
OC1BV (Output Compare and PWM Output B-V for Timer/Counter1)
PB2
PCINT10 (Pin Change Interrupt 10)
OC1AV (Output Compare and PWM Output A-V for Timer/Counter1)
USCK (Three-wire Mode USI Default
Clock Input)
SCL (Two-wire Mode USI Default
Clock Input)
PB1
PCINT9 (Pin Change Interrupt 9)
OC1BU (Output Compare and PWM Output B-U for Timer/Counter1)
DO (Three-wire Mode USI Default
Data Output)
PB0
PCINT8 (Pin Change Interrupt 8)
OC1AU (Output Compare and PWM Output A-U for Timer/Counter1)
DI (Three-wire Mode USI Default Data Input)
SDA (Two-wire Mode USI Default
Data Input / Output)