atmega32u4-16mu ATMEL Corporation, atmega32u4-16mu Datasheet - Page 70

no-image

atmega32u4-16mu

Manufacturer Part Number
atmega32u4-16mu
Description
Atmega32u4 8-bit Avr Microcontroller With 32k Bytes Of Isp Flash And Usb Controller
Manufacturer
ATMEL Corporation
Datasheet
10.3.1
10.3.2
70
ATmega32U4
MCU Control Register – MCUCR
Alternate Functions of Port B
• Bit 4 – PUD: Pull-up Disable
When this bit is written to one, the pull-ups in the I/O ports are disabled even if the DDxn and
PORTxn Registers are configured to enable the pull-ups ({DDxn, PORTxn} = 0b01). See
figuring the Pin” on page 64
The Port B pins with alternate functions are shown in
Table 10-3.
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
Bit
Read/Write
Initial Value
Port Pin
PB7
PB6
PB5
PB4
PB3
PB2
PB1
PB0
7
JTD
R/W
0
Alternate Functions
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)
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)
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)
OC2A/PCINT4/ADC11 (Output Compare and PWM Output A for Timer/Counter2 or
Pin Change Interrupt 4 or Analog to Digital Converter channel 11)
PDO/MISO/PCINT3 (Programming Data Output or SPI Bus Master Input/Slave
Output or Pin Change Interrupt 3)
PDI/MOSI/PCINT2 (Programming Data Input or SPI Bus Master Output/Slave
Input or Pin Change Interrupt 2)
SCK/PCINT1 (SPI Bus Serial Clock or Pin Change Interrupt 1)
SS/PCINT0 (SPI Slave Select input or Pin Change Interrupt 0)
Port B Pins Alternate Functions
6
R
0
for more details about this feature.
5
R
0
4
PUD
R/W
0
3
R
0
Table
2
R
0
10-3.
1
IVSEL
R/W
0
0
IVCE
R/W
0
MCUCR
7766A–AVR–03/08
“Con-

Related parts for atmega32u4-16mu