Datasheet
– PCINT20: Pin Change Interrupt source 20. The PD4 pin can serve as an external interrupt
source.
• INT1/OC2B/PCINT19 – Port D, Bit 3
– INT1: External Interrupt source 1. The PD3 pin can serve as an external interrupt source.
– OC2B: Output Compare Match output: The PD3 pin can serve as an external output for the
Timer/Counter2 Compare Match B. The PD3 pin has to be configured as an output (DDD3 set
(one)) to serve this function. The OC2B pin is also the output pin for the PWM mode timer
function.
– PCINT19: Pin Change Interrupt source 19. The PD3 pin can serve as an external interrupt
source.
• INT0/OC3B/PCINT18 – Port D, Bit 2
– INT0: External Interrupt source 0. The PD2 pin can serve as an external interrupt source.
– OC3B: Output Compare Match output: The PD2 pin can serve as an external output for the
Timer/Counter3 Compare Match B. The PD2 pin has to be configured as an output (DDD2 set
(one)) to serve this function. The OC3B pin is also the output pin for the PWM mode timer
function.
– OC4B: Output Compare Match output: The PD2 pin can serve as an external output for the
Timer/Counter4 Compare Match B. The PD2 pin has to be configured as an output (DDD2 set
(one)) to serve this function. The OC4B pin is also the output pin for the PWM mode timer
function.
– PCINT18: Pin Change Interrupt source 18. The PD2 pin can serve as an external interrupt
source.
• TXD0/PCINT17 – Port D, Bit 1
– TXD0: Transmit Data (Data output pin for the USART0). When the USART0 Transmitter is
enabled, this pin is configured as an output regardless of the value of DDD1.
– OC4A: Output Compare Match output: The PD1 pin can serve as an external output for the
Timer/Counter4 Compare Match A. The PD1 pin has to be configured as an output (DDD1 set
(one)) to serve this function. The OC4A pin is also the output pin for the PWM mode timer
function.
– PCINT17: Pin Change Interrupt source 17. The PD1 pin can serve as an external interrupt
source.
• RXD0/OC3A/PCINT16 – Port D, Bit 0
– RXD0: Receive Data (Data input pin for the USART0). When the USART0 Receiver is
enabled this pin is configured as an input regardless of the value of DDD0. When the
USART0 forces this pin to be an input, the pull-up can still be controlled by the PORTD0 bit.
– PCINT16: Pin Change Interrupt source 16. The PD0 pin can serve as an external interrupt
source.
– OC3A: Output Compare Match output: The PD0 pin can serve as an external output for the
Timer/Counter3 Compare Match A. The PD0 pin has to be configured as an output (DDD0 set
(one)) to serve this function. The OC3A pin is also the output pin for the PWM mode timer
function.
The tables below relate the alternate functions of Port D to the overriding signals shown in Figure 17-5.
ATmega328PB
I/O-Ports
© 2018 Microchip Technology Inc.
Datasheet Complete
DS40001906C-page 115