Datasheet

Table Of Contents
88
ATmega640/V-1280/V-1281/V-2560/V-2561/V [DATASHEET]
2549Q–AVR–02/2014
13.3.8 Alternate Functions of Port H
The Port H alternate pin configuration is as follows:
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 Out-
put 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 Out-
put 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.
Table 13-23. Overriding Signals for Alternate Functions in PG3:PG0
Signal Name PG3/TOSC2 PG2/ALE/A7 PG1/RD PG0/WR
PUOE AS2 • EXCLK
SRE SRE SRE
PUOV 0000
DDOE AS2 • EXCLK SRE SRE SRE
DDOV 0111
PVOE 0 SRE SRE SRE
PVOV 0ALERDWR
PTOE––––
DIEOE AS2 • EXCLK
000
DIEOV 0000
DI––––
AIO T/C2 OSC OUTPUT
Table 13-24. Port H Pins Alternate Functions
Port Pin Alternate Function
PH7 T4 (Timer/Counter4 Clock Input)
PH6 OC2B (Output Compare and PWM Output B for Timer/Counter2)
PH5 OC4C (Output Compare and PWM Output C for Timer/Counter4)
PH4 OC4B (Output Compare and PWM Output B for Timer/Counter4)
PH3 OC4A (Output Compare and PWM Output A for Timer/Counter4)
PH2 XCK2 (USART2 External Clock)
PH1 TXD2 (USART2 Transmit Pin)
PH0 RXD2 (USART2 Receive Pin)