Datasheet
74
ATmega16U4/32U4 [DATASHEET]
Atmel-7766J-USB-ATmega16U4/32U4-Datasheet_04/2016
10.3.1 Alternate Functions of Port B
The Port B pins with alternate functions are shown below.
The alternate pin configuration is as follows:
• OC0A/OC1C/PCINT7/RTS, Bit 7
OC0A, Output Compare Match A output: The PB7 pin can serve as an external output for the Timer/Counter0
Output Compare. The pin has to be configured as an output (DDB7 set “one”) to serve this function. The OC0A
pin is also the output pin for the PWM mode timer function.
OC1C, Output Compare Match C output: The PB7 pin can serve as an external output for the Timer/Counter1
Output Compare C. The pin has to be configured as an output (DDB7 set “one”) to serve this function. The
OC1C pin is also the output pin for the PWM mode timer function.
PCINT7, Pin Change Interrupt source 7: The PB7 pin can serve as an external interrupt source.
RTS
: RTS flow control signal used by enhanced UART.
• OC1B/PCINT6/OC.4B/ADC12, Bit 6
OC1B, Output Compare Match B output: The PB6 pin can serve as an external output for the Timer/Counter1
Output Compare B. The pin has to be configured as an output (DDB6 set “one”) to serve this function. The
OC1B pin is also the output pin for the PWM mode timer function.
PCINT6, Pin Change Interrupt source 6: The PB7 pin can serve as an external interrupt source.
OC.4B: Timer 4 Output Compare B. 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 (DDB6 set “one”) to serve this function.
ADC13: Analog to Digital Converter, channel 13.
Table 10-3. Port B Pins Alternate Functions
Port Pin Alternate Functions
PB7
OC0A/OC1C/PCINT7/RTS (Output Compare and PWM Output A for Timer/Counter0,
Output Compare and PWM Output C for Timer/Counter1 or Pin Change Interrupt 7 or UART
flow control RTS
signal)
PB6
OC1B/PCINT6/OC.4B/ADC13 (Output Compare and PWM Output B for Timer/Counter1 or
Pin Change Interrupt 6 or Timer 4 Output Compare B / PWM output or Analog to Digital
Converter channel 13)
PB5
OC1A/PCINT5/OC.4B/ADC12 (Output Compare and PWM Output A for Timer/Counter1 or
Pin Change Interrupt 5 or Timer 4 Complementary Output Compare B / PWM output or
Analog to Digital Converter channel 12)
PB4 PCINT4/ADC11 (Pin Change Interrupt 4 or Analog to Digital Converter channel 11)
PB3
PDO/MISO/PCINT3 (Programming Data Output or SPI Bus Master Input/Slave Output or
Pin Change Interrupt 3)
PB2
PDI/MOSI/PCINT2 (Programming Data Input or SPI Bus Master Output/Slave Input or Pin
Change Interrupt 2)
PB1 SCK/PCINT1 (SPI Bus Serial Clock or Pin Change Interrupt 1)
PB0 SS/PCINT0 (SPI Slave Select input or Pin Change Interrupt 0)