Datasheet
75
7766F–AVR–11/10
ATmega16/32U4
10.3.3 Alternate Functions of Port C
The Port C alternate function is as follows:
• ICP3/CLKO/OC.4A – Port C, Bit 7
ICP3: If Timer 3 is correctly configured, this pin can serve as Input Capture feature.
CLKO: When the corresponding fuse is enabled, this pin outputs the internal microcontroller
working frequency. If the clock prescaler is used, this will affect this output frequency.
OC.4A: Timer 4 Output Compare A. This pin can be used to generate a high-speed PWM signal
from Timer 4 module. The pin has to be configured as an output (DDC7 set “one”) to serve this
function.
Table 10-5. Overriding Signals for Alternate Functions in PB3.PB0
Signal
Name
PB3/PD0/PCINT3/
MISO
PB2/PDI/PCINT2/
MOSI
PB1/PCINT1/
SCK
PB0/PCINT0/
SS
PUOE SPE • MSTR SPE • MSTR
SPE • MSTR SPE • MSTR
PUOV PORTB3 • PUD PORTB2 • PUD PORTB1 • PUD PORTB0 • PUD
DDOE SPE • MSTR SPE • MSTR SPE • MSTR SPE • MSTR
DDOV 0 0 0 0
PVOE SPE • MSTR
SPE • MSTR SPE • MSTR 0
PVOV SPI SLAVE OUTPUT SPI MSTR OUTPUT SCK OUTPUT 0
DIEOE PCINT3 • PCIE0 PCINT2 • PCIE0
PCINT1 •
PCIE0
PCINT0 •
PCIE0
DIEOV 1 1 1 1
DI
SPI MSTR INPUT
PCINT3 INPUT
SPI SLAVE INPUT
PCINT2 INPUT
SCK INPUT
PCINT1 INPUT
SPI SS
PCINT0 INPUT
AIO – – – –
Table 10-6. Port C Pins Alternate Functions
Port Pin Alternate Function
PC7
ICP3/CLKO/OC4A(Input Capture Timer 3 or CLK0 (Divided
System Clock) or Output Compare and direct PWM output A
for Timer 4)
PC6
OC.3A/OC4A
(Output Compare and PWM output A for
Timer/Counter3 or Output Compare and complementary
PWM output A for Timer 4)
PC5
Not present on pin-out.
PC4
PC3
PC2
PC1
PC0