Datasheet

67
8246A–AVR–11/09
ATtiny2313A/4313
Port D, Bit 4 – T0/PCINT15
T0: Timer/Counter0 External Counter Clock input is enabled by setting (one) the bits CS02
and CS01 in the Timer/Counter0 Control Register (TCCR0).
PCINT15: Pin Change Interrupt Source 15. The PD4 pin can serve as an external interrupt
source for pin change interrupt 2.
Port D, Bit 5 – OC0B/T1/PCINT16
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 (DDD5 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).
PCINT16: Pin Change Interrupt Source 16. The PD5 pin can serve as an external interrupt
source for pin change interrupt 2.
Port D, Bit 6 – ICPI/PCINT17
ICPI: Timer/Counter1 Input Capture Pin. The PD6 pin can act as an Input Capture pin for
Timer/Counter1.
PCINT17: Pin Change Interrupt Source 17. The PD6 pin can serve as an external interrupt
source for pin change interrupt 2.
Table 10-9 and Table 10-10 relates the alternate functions of Port D to the overriding signals
shown in Figure 10-5 on page 59.
Table 10-9. Overriding Signals for Alternate Functions PD6..PD4
Signal
Name PD6/ICPI/PCINT17 PD5/OC1B/T1/PCINT16 PD4/T0/PCINT15
PUOE 0 0 0
PUOV 0 0 0
DDOE 0 0 0
DDOV 0 0 0
PVOE 0 OC1B_PVOE 0
PVOV 0 OC1B_PVOV 0
PTOE 0 0 0
DIEOE ICPI Enable + PCINT17 T1 Enable + PCINT16 T0 Enable + PCINT15
DIEOV PCINT17 PCINT16 PCINT15
DI ICPI Input/PCINT17 T1 Input/PCINT16 T0 Input/PCINT15
AIO AIN1