ATmega640/1280/1281/2560/2561
Table 13-23. Port H Pins Alternate Functions
Port Pin
PH4
Alternate Function
OC4B(Output Compare and PWM Output B for Timer/Counter4)
OC4A(Output Compare and PWM Output A for Timer/Counter4)
XCK2 (USART2 External Clock)
PH3
PH2
PH1
TXD2 (USART2 Transmit Pin)
PH0
RXD2 (USART2 Receive Pin)
• T4 – Port H, Bit 7
T4, Timer/Counter4 counter source.
• OC2B – Port H, Bit 6
OC2B, Output Compare Match B output: The PH6 pin can serve as an external output for the
Timer/Counter2 Output Compare B. The pin has to be configured as an output (DDH6 set) to
serve this function. The OC2B pin is also the output pin for the PWM mode timer function.
• OC4C – Port H, Bit 5
OC4C, Output Compare Match C output: The PH5 pin can serve as an external output for the
Timer/Counter4 Output Compare C. The pin has to be configured as an output (DDH5 set) to
serve this function. The OC4C pin is also the output pin for the PWM mode timer function.
• OC4B – Port H, Bit 4
OC4B, Output Compare Match B output: The PH4 pin can serve as an external output for the
Timer/Counter2 Output Compare B. The pin has to be configured as an output (DDH4 set) to
serve this function. The OC4B pin is also the output pin for the PWM mode timer function.
• OC4A – Port H, Bit 3
OC4C, Output Compare Match A output: The PH3 pin can serve as an external output for the
Timer/Counter4 Output Compare A. The pin has to be configured as an output (DDH3 set) to
serve this function. The OC4A pin is also the output pin for the PWM mode timer function.
• XCK2 – Port H, Bit 2
XCK2, USART2 External Clock: The Data Direction Register (DDH2) controls whether the clock
is output (DDH2 set) or input (DDH2 cleared). The XC2K pin is active only when the USART2
operates in synchronous mode.
• TXD2 – Port H, Bit 1
TXD2, USART2 Transmit Pin.
• RXD2 – Port H, Bit 0
RXD2, USART2 Receive pin: Receive Data (Data input pin for the USART2). When the
USART2 Receiver is enabled, this pin is configured as an input regardless of the value of DDH0.
93
2549L–AVR–08/07