2 alternate functions of port b, Attiny43u – Rainbow Electronics ATtiny43U User Manual

Page 74

Advertising
background image

74

8048B–AVR–03/09

ATtiny43U

11.3.2

Alternate Functions of Port B

The Port B pins with alternate function are shown in

Table 11-8 on page 74

.

• Port B, Bit 0 – T0/PCINT8

T0: Timer/Counter0 Counter Source.

PCINT8: Pin Change Interrupt source 8. The PB0 pin can serve as an external interrupt source
for pin change interrupt 1.

• Port B, Bit 1 – OC0A/PCINT9

OC0A: Output Compare Match output: The PB1 pin can serve as an external output for the
Timer/Counter0 Compare Match A. The PB1 pin has to be configured as an output (DDB1 set
(one)) to serve this function. The OC0A pin is also the output pin for the PWM mode timer
function.

PCINT9: Pin Change Interrupt source 9. The PB1 pin can serve as an external interrupt source
for pin change interrupt 1.

• Port B, Bit 2 – OC0B/PCINT10

OC0B: Output Compare Match output: The PB2 pin can serve as an external output for the
Timer/Counter0 Compare Match A. The PB2 pin has to be configured as an output (DDB2 set
(one)) to serve this function. The OC0B pin is also the output pin for the PWM mode timer
function.

Table 11-8.

Port B Pins Alternate Functions

Port Pin

Alternate Function

PB0

T0:

Timer/Counter0 Counter Source.

PCINT8: Pin change interrupt 1 source 8.

PB1

OC0A:

Timer/Counter0 Compare Match A output.

PCINT9: Pin change interrupt 1 source 9.

PB2

OC0B:

Timer/Counter0 Compare Match B output.

PCINT10:Pin change interrupt 1 source 10.

PB3

T1:

Timer/Counter1 Counter Source.

CLKO:

System Clock Output.

PCINT11:Pin change interrupt 1 source 11.

PB4

OC1A:

Timer/Counter1 Compare Match A output.

DI:

USI Data Input three wire mode.

SDA:

USI Data Input two wire mode.

PCINT12:Pin change interrupt 1 source 12.

PB5

OC1B:

Timer/Counter1 Compare Match B output.

DO:

USI Data Output three wire mode.

PCINT13:Pin change interrupt 1 source 13.

PB6

USCK:

USI Clock three wire mode.

SCL:

USI Clock two wire mode.

PCINT14:Pin change interrupt 1 source 14.

PB7

INT0:

External Interrupt 0 input.

PCINT15:Pin change interrupt 1 source 15.

Advertising