11
23
PD1
#INT1/SDA
PD1 – general purpose digital I/O
Alternative functions:
INT1 – External Interrupt source 1. The PD1 pin can serve as an
external interrupt source to the MCU.
SDA – Two-wire Serial Interface Data: When the TWEN bit in
TWCR is set (one) to enable the Two-wire Serial Interface, pin
PD1 is disconnected from the port and becomes the Serial Data
I/O pin for the Two-wire Serial Interface. In this mode, there is
a spike filter on the pin to suppress spikes shorter than 50 ns on
the input signal, and the pin is driven by an open drain driver with
slew-rate limitation.
24
PD0
#INT0/SCL
PD0 – general purpose digital I/O
Alternative functions:
INT0 – External Interrupt source 0. The PD0 pin can serve as an
external interrupt source to the MCU.
SCL – Two-wire Serial Interface Clock: When the TWEN bit in
TWCR is set (one) to enable the Two-wire Serial Interface, pin
PD0 is disconnected from the port and becomes the Serial Clock
I/O pin for the Two-wire Serial Interface. In this mode, there is
a spike filter on the pin to suppress spikes shorter than 50 ns on
the input signal, and the pin is driven by an open drain driver with
slew-rate limitation.
25
PB7
OC2/PWM2
PB7 – general purpose digital I/O
Alternative functions:
OC2 – Output Compare Match output: The PB7 pin can serve as
an external output for the Timer/Counter2 Output Compare. The
pin has to be configured as an output (DDB7 set “one”) to serve
this function. The OC2 pin is also the output pin for the PWM
mode timer function.
OC1C – Output Compare Match C output: The PB7 pin can serve
as an external output for the Timer/Counter1 Output Compare C.
The pin has to be configured as an output (DDB7 set (one)) to
serve this function. The OC1C pin is also the output pin for the
PWM mode timer function.
26
PB6
OC1B/PWM1B
PB6 – general purpose digital I/O
Alternative functions:
OC1B – Output Compare Match B output: The PB6 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.
27
PB5
OC1A/PWM1A
PB5 – general purpose digital I/O
Alternative functions:
OC1A – Output Compare Match A output: The PB5 pin can serve
as an external output for the Timer/Counter1 Output Compare A.
The pin has to be configured as an output (DDB5 set (one)) to
serve this function. The OC1A pin is also the output pin for the
PWM mode timer function.
28
PB4
OC0/PWM0
PB4 – general purpose digital I/O
Alternative functions:
OC0 – Output Compare Match output: The PB4 pin can serve as
an eternal output for the Timer/Counter0 Output Compare. The
pin has to be configured as an output (DDB4 set (one)) to serve
this function. The OC0 pin is also the output pin for the PWM
mode timer function.
29
PB3
MISO
PB3 – general purpose digital I/O
Alternative functions:
MISO – Master Data input, Slave Data output pin for SPI channel.
When the SPI is enabled as a master, this pin is configured as an
input regardless of the setting of DDB3. When the SPI is enabled
as a slave, the data direction of this pin is controlled by
DDB3. When the pin is forced to be an input, the pull-up can still
be controlled by the PORTB3 bit.