Datasheet
55
ATtiny2313/V
2543H–AVR–02/05
Alternate Functions of Port D The Port D pins with alternate functions are shown in Table 28.
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).
• T0 – Port D, Bit 4
T0: Timer/Counter0 External Counter Clock input is enabled by setting (one) the bits
CS02 and CS01 in the Timer/Counter0 Control Register (TCCR0).
• INT1 – Port D, Bit 3
INT0: External Interrupt Source 0. The PD3 pin can serve as an external interrupt
source to the MCU.
• INT0/XCK/CKOUT – Port D, Bit 2
INT1: External Interrupt Source 1. The PD2 pin can serve as en external interrupt
source to the MCU.
XCK: USART Transfer Clock used only by Synchronous Transfer mode.
CKOUT: System Clock Output
•TXD – Port D, Bit 1
TXD: UART Data Transmitter.
• RXD – Port D, Bit 0
RXD: UART Data Receiver.
Table 28. 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