Datasheet

77
7766E–AVR–04/10
ATmega16U4/ATmega32U4
10.3.4 Alternate Functions of Port D
The Port D pins with alternate functions are shown in Table 10-8.
The alternate pin configuration is as follows:
T0/OC.4D/ADC10 – Port D, Bit 7
T0, Timer/Counter0 counter source.
OC.4D: Timer 4 Output Compare D. 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 (DDD7 set “one”) to serve this
function.
ADC10: Analog to Digital Converter, Channel 10.
T1/OC.4D
/ADC9 – Port D, Bit 6
T1, Timer/Counter1 counter source.
OC.4D
: Timer 4 Output Compare D. This pin can be used to generate a high-speed PWM signal
from Timer 4 module, complementary to OC.4D (PD7) signal. The pin has to be configured as
an output (DDD6 set “one”) to serve this function.
ADC9: Analog to Digital Converter, Channel 9
.
XCK1/CTS – Port D, Bit 5
XCK1, USART1 External clock. The Data Direction Register (DDD5) controls whether the clock
is output (DDD5 set) or input (DDD5 cleared). The XCK1 pin is active only when the USART1
operates in Synchronous mode.
CTS
: Clear-To-Send flow control signal used by enhanced UART module.
ICP1/ADC8 – Port D, Bit 4
ICP1 – Input Capture Pin 1: The PD4 pin can act as an input capture pin for Timer/Counter1.
ADC8: Analog to Digital Converter, Channel 8
.
Table 10-8. Port D Pins Alternate Functions
Port Pin Alternate Function
PD7
T0/OC.4D/ADC10 (Timer/Counter0 Clock Input or Timer 4 Output Compare D /
PWM output or Analog to Digital Converter channel 10)
PD6
T1/OC.4D
/ADC9 (Timer/Counter1 Clock Input or Timer 4 Output
Complementary Compare D / PWM output or Analog to Digital Converter
channel 9)
PD5
XCK1/CTS
(USART1 External Clock Input/Output or UART flow control CTS
signal)
PD4
ICP1/ADC8 (Timer/Counter1 Input Capture Trigger or Analog to Digital
Converter channel 8)
PD3 INT3/TXD1 (External Interrupt3 Input or USART1 Transmit Pin)
PD2 INT2
/RXD1 (External Interrupt2 Input or USART1 Receive Pin)
PD1 INT1
/SDA (External Interrupt1 Input or TWI Serial DAta)
PD0
INT0
/SCL/OC0B (External Interrupt0 Input or TWI Serial CLock or Output
Compare for Timer/Counter0)