Alternate functions of port d, Attiny2313 – Rainbow Electronics ATtiny2313 User Manual

Page 57

Advertising
background image

57

ATtiny2313

2543A–AVR–08/03

Alternate Functions of Port D

The Port D pins with alternate functions are shown in Table 29.

The alternate pin configuration is as follows:

• ICP – Port D, Bit 6

ICP: Timer/Counter1 Input Capture Pin. The PD6 pin can act as an Input Capture pin for
Timer/Counter1

• OC1B/T1 – Port D, Bit 5

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

T1: Timer/Counter1 External Counter Clock input is enabled by setting (one) the bits
CS02 and CS01 in the Timer/Counter1 Control Register (TCCR1).

Table 28. Overriding Signals for Alternate Functions in PB3..PB0

Signal
Name

PB3/OC1A/
PCINT3

PB2/OC0A/
PCINT2

PB1/AIN1/
PCINT1

PB0/AIN0/
PCINT0

PUOE

0

0

0

0

PUOV

0

0

0

0

DDOE

0

0

0

0

DDOV

0

0

0

0

PVOE

OC1A_PVOE

OC0A_PVOE

0

0

PVOV

OC1A_PVOV

OC0A_PVOV

0

0

PTOE

0

0

0

0

DIEOE

(PCINT3 • PCIE)

(PCINT2 • PCIE)

(PCINT1 • PCIE)

(PCINT0 • PCIE)

DIEOV

1

1

1

1

DI

PCINT7 INPUT

PCINT6 INPUT

PCINT5 INPUT

PCINT4 INPUT

AIO

AIN1

AIN0

Table 29. Port D Pins Alternate Functions

Port Pin

Alternate Function

PD6

ICP

PD5

OC0B/T1

PD4

T0

PD3

INT1

PD2

INT0/XCK/CKOUT

PD1

TXD

PD0

RXD

Advertising