Datasheet

53
ATtiny2313/V
2543H–AVR–02/05
DI: Three-wire mode Universal Serial Interface Data input. Three-wire mode does not
override normal port functions, so pin must be configured as an input. SDA: Two-wire
mode Serial Interface Data.
PCINT5: Pin Change Interrupt Source 5. The PB5 pin can serve as an external interrupt
source.
OC1B/PCINT4 – Port B, Bit 4
OC1B: Output Compare Match B output: The PB4 pin can serve as an external output
for the Timer/Counter1 Output Compare B. The pin has to be configured as an output
(DDB6 set (one)) to serve this function. The OC1B pin is also the output pin for the PWM
mode timer function.
PCINT4: Pin Change Interrupt Source 4. The PB4 pin can serve as an external interrupt
source.
OC1A/PCINT3 – Port B, Bit 3
OC1A: Output Compare Match A output: The PB3 pin can serve as an external output
for the Timer/Counter1 Output Compare A. The pin has to be configured as an output
(DDB3 set (one)) to serve this function. The OC1A pin is also the output pin for the PWM
mode timer function.
PCINT3: Pin Change Interrupt Source 3: The PB3 pin can serve as an external interrupt
source.
OC0A/PCINT2 – Port B, Bit 2
OC0A: Output Compare Match A output. The PB2 pin can serve as an external output
for the Timer/Counter0 Output Compare A. The pin has to be configured as an output
(DDB2 set (one)) to serve this function. The OC0A pin is also the output pin for the PWM
mode timer function.
PCINT2: Pin Change Interrupt Source 2. The PB2 pin can serve as an external interrupt
source.
AIN1/PCINT1 – Port B, Bit 1
AIN1: Analog Comparator Negative input
. Configure the port pin as input with the inter-
nal pull-up switched off to avoid the digital port function from interfering with the function
of the analog comparator.
PCINT1: Pin Change Interrupt Source 1. The PB1 pin can serve as an external interrupt
source.
AIN0/PCINT0 – Port B, Bit 0
AIN0: Analog Comparator Positive input. Configure the port pin as input with the internal
pull-up switched off to avoid the digital port function from interfering with the function of
the Analog Comparator.
PCINT0: Pin Change Interrupt Source 0. The PB0 pin can serve as an external interrupt
source.
Table 26 and Table 27 relate the alternate functions of Port B to the overriding signals
shown in Figure 25 on page 50. SPI MSTR INPUT and SPI SLAVE OUTPUT constitute
the MISO signal, while MOSI is divided into SPI MSTR OUTPUT and SPI SLAVE
INPUT.