Datasheet

98
2549O–AVR–05/12
ATmega640/1280/1281/2560/2561
13.3.11 Alternate Functions of Port L
The Port L alternate pin configuration is as follows:
OC5C – Port L, Bit 5
OC5C, Output Compare Match C output: The PL5 pin can serve as an external output for the
Timer/Counter5 Output Compare C. The pin has to be configured as an output (DDL5 set) to
serve this function. The OC5C pin is also the output pin for the PWM mode timer function.
OC5B – Port L, Bit 4
OC5B, Output Compare Match B output: The PL4 pin can serve as an external output for the
Timer/Counter 5 Output Compare B. The pin has to be configured as an output (DDL4 set) to
serve this function. The OC5B pin is also the output pin for the PWM mode timer function.
OC5A – Port L, Bit 3
OC5A, Output Compare Match A output: The PL3 pin can serve as an external output for the
Timer/Counter 5 Output Compare A. The pin has to be configured as an output (DDL3 set) to
serve this function. The OC5A pin is also the output pin for the PWM mode timer function.
Table 13-32. Overriding Signals for Alternate Functions in PK3:PK0
Signal Name
PK3/ADC11/
PCINT19
PK2/ADC10/
PCINT18
PK1/ADC9/
PCINT17
PK0/ADC8/
PCINT16
PUOE0000
PUOV0000
DDOE0000
DDOV 0 0 0 0
PVOE0000
PVOV0000
PTOE––––
DIEOE PCINT19 • PCIE2 PCINT18 • PCIE2 PCINT17 • PCIE2 PCINT16 • PCIE2
DIEOV 1 1 1 1
DI PCINT19 INPUT PCINT18 INPUT PCINT17 INPUT PCINT16 INPUT
AIO ADC11 INPUT ADC10INPUT ADC9 INPUT ADC8 INPUT
Table 13-33. Port L Pins Alternate Functions
Port Pin Alternate Function
PL7
PL6
PL5 OC5C (Output Compare and PWM Output C for Timer/Counter5)
PL4 OC5B (Output Compare and PWM Output B for Timer/Counter5)
PL3 OC5A (Output Compare and PWM Output A for Timer/Counter5)
PL2 T5 (Timer/Counter5 Clock Input)
PL1 ICP5 (Timer/Counter5 Input Capture Trigger)
PL0 ICP4 (Timer/Counter4 Input Capture Trigger)