Spark Logic

ATmega32U4 pinout

Package pin assignments for ATmega32U4, with peripheral signals, clock grades and a serial programming guide.

TQFP-44

44 contacts Current package
QFN-44 45 contacts

Microchip Technology · 44 numbered contacts. See the individual package drawings for footprint dimensions.

32 KiB flash · 2.5 KiB SRAM · 1 KiB EEPROM · 2.7–5.5 V · 16 MHz maximum · -40 to +85 °C

TQFP-44 pinout

TQFP-44
Top view · Pin 1 at the upper left · Schematic outline Scroll the map to reach all contacts.
Selected pin details

36 · PF7

Bidirectional · GPIO

General-purpose digital I/O. Alternate assignments: TDI (JTAG), ADC7 (ADC).

After reset · GPIO driver is high impedance during reset. Clock, debug, and alternate-function use depend on fuse and peripheral configuration.

7766J · Pinout and peripheral signal descriptions

Electrical limits · Link to this pin

All 44 pins

PinSignalDirectionFunction
1PE6 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: INT6 (EXINT), AIN0 (AC).
2UVCC SupplySupply USB pad regulator supply. Follow the power scheme for the intended USB mode.
3DM BidirectionalBidirectional Negative USB data line. Route as part of the USB differential pair.
4DP BidirectionalBidirectional Positive USB data line. Route as part of the USB differential pair.
5UGND ReturnReturn USB transceiver ground. Connect to the board ground return.
6UCAP Regulator outputRegulator output USB regulator capacitor terminal. Use a 1 µF capacitor to USB ground in the internal regulator configuration.
7VBUS InputInput USB bus voltage monitor. Use the data sheet’s USB connection for bus or self-powered operation.
8PB0 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: SS (SPI), PCINT0 (EXINT).
9PB1 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: SCK (SPI), PCINT1 (EXINT).
10PB2 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: MOSI (SPI), PDI (SPI), PCINT2 (EXINT).
11PB3 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: MISO (SPI), PDO (SPI), PCINT3 (EXINT).
12PB7 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: RTS (USART1), OCA (TC0), OCC (TC1), PCINT7 (EXINT).
13RESET InputInput Active-low reset input. The in-system programmer uses this pin to enter serial programming mode.
14VCC SupplySupply Digital supply. Connect every VCC pin and place a local 100 nF ceramic bypass close to each VCC-to-ground pair.
15GND ReturnReturn Supply return. Connect every ground pin.
16XTAL2 OutputOutput Oscillator amplifier output. Follow the selected clock mode before attaching a circuit.
17XTAL1 InputInput Oscillator amplifier input or external clock input, depending on clock fuses.
18PD0 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: OCB (TC0), INT0 (EXINT), SCL (TWI).
19PD1 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: INT1 (EXINT), SDA (TWI).
20PD2 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: RXD (USART1), INT2 (EXINT).
21PD3 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: TXD (USART1), INT3 (EXINT).
22PD5 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: XCK (USART1), CTS (USART1).
23GND ReturnReturn Supply return. Connect every ground pin.
24AVCC SupplySupply Analog supply. Connect it to the supply even if analog conversion is unused. Follow the data sheet’s filtering guidance for precision conversion.
25PD4 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: ICP (TC1), ADC8 (ADC).
26PD6 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: T (TC1), _OCD (TC4), ADC9 (ADC).
27PD7 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: T (TC0), OCD (TC4), ADC10 (ADC).
28PB4 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: PCINT4 (EXINT), ADC11 (ADC).
29PB5 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: OCA (TC1), _OCB (TC4), PCINT5 (EXINT), ADC12 (ADC).
30PB6 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: OCB (TC1), OCB (TC4), PCINT6 (EXINT), ADC13 (ADC).
31PC6 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: OCA (TC3), _OCA (TC4).
32PC7 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: ICP (TC3), OCA (TC4), CLK0 (CPU).
33PE2 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: HWB (BOOT_LOAD).
34VCC SupplySupply Digital supply. Connect every VCC pin and place a local 100 nF ceramic bypass close to each VCC-to-ground pair.
35GND ReturnReturn Supply return. Connect every ground pin.
36PF7 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: TDI (JTAG), ADC7 (ADC).
37PF6 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: TDO (JTAG), ADC6 (ADC).
38PF5 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: TMS (JTAG), ADC5 (ADC).
39PF4 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: TCK (JTAG), ADC4 (ADC).
40PF1 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: ADC1 (ADC).
41PF0 BidirectionalBidirectional General-purpose digital I/O. Alternate assignments: ADC0 (ADC).
42AREF Analog referenceAnalog reference ADC voltage reference terminal. Check the reference selection before driving this pin from an external voltage.
43GND ReturnReturn Supply return. Connect every ground pin.
44AVCC SupplySupply Analog supply. Connect it to the supply even if analog conversion is unused. Follow the data sheet’s filtering guidance for precision conversion.

Signal assignments

SPI peripheral

Use SCK, MOSI, MISO and a chip-select line. Firmware selects direction and clock phase. Check the separate ISP mapping when programming. SS → PB0 · SCK → PB1 · MOSI → PB2 · PDI → PB2 · MISO → PB3 · PDO → PB3

USART1 · Serial

Use TXD and RXD for asynchronous serial. XCK is for synchronous mode. The signal levels follow the microcontroller supply domain. TXD → PD3 · RXD → PD2 · XCK → PD5 · RTS → PB7 · CTS → PD5

Boot selection

Review each signal assignment and the peripheral enable conditions in the data sheet. HWB → PE2

Timer/Counter 0

Review each signal assignment and the peripheral enable conditions in the data sheet. T → PD7 · OCB → PD0 · OCA → PB7

Timer/Counter 1

Review each signal assignment and the peripheral enable conditions in the data sheet. T → PD6 · ICP → PD4 · OCA → PB5 · OCB → PB6 · OCC → PB7

Timer/Counter 3

Review each signal assignment and the peripheral enable conditions in the data sheet. ICP → PC7 · OCA → PC6

Timer/Counter 4

Review each signal assignment and the peripheral enable conditions in the data sheet. _OCA → PC6 · OCA → PC7 · _OCB → PB5 · OCB → PB6 · _OCD → PD6 · OCD → PD7

JTAG

Check the JTAG fuse and enable state before using the pins for GPIO. JTAG uses TCK, TMS, TDI and TDO. TCK → PF4 · TMS → PF5 · TDO → PF6 · TDI → PF7

TWI / I²C

Connect SDA and SCL to the bus with pull-ups to a voltage supported by all devices. Verify the pull-up value for the bus capacitance and rate. SDA → PD1 · SCL → PD0

Analog comparator

Review each signal assignment and the peripheral enable conditions in the data sheet. AIN0 → PE6

System clock

Review each signal assignment and the peripheral enable conditions in the data sheet. CLK0 → PC7

Electrical limits

ParameterLimitConditions and source
Supply and clock grade2.7–5.5 V · 16 MHz maximum2.7–5.5 V · 16 MHz maximum Up to 8 MHz at 2.7 V and 16 MHz at 4.5 V. USB clock and voltage requirements depend on the selected operating mode. 7766J · Speed grades and ordering information
Ambient temperature grade-40 to +85 °C-40 to +85 °C For this order code. Verify silicon revision and errata in the current manufacturer documentation. 7766J · Ordering information
Program flash32 KiB32 KiB Nonvolatile program memory. 7766J · Memory
SRAM2.5 KiB2.5 KiB Volatile data and stack storage. 7766J · Memory
EEPROM1 KiB1 KiB Nonvolatile data storage. 7766J · Memory
Clock and supplyOrder-code dependentOrder-code dependent Use the grade table and the device’s speed-versus-voltage curve. 7766J · Electrical Characteristics

Models and documents

Each package lists the documented order codes and variants covered by this map. Select the marked model to see its peripheral assignments and memory. Check the exact order code and datasheet revision before laying out a PCB.

ATmega32U4
32 KiB flash · 2.5 KiB SRAM · 1 KiB EEPROM. Choose the marked order code for voltage, clock, and temperature.
ATmega32U4-AU
32 KiB flash · 2.5 KiB SRAM · 1 KiB EEPROM · 2.7–5.5 V · 16 MHz maximum · -40 to +85 °C
ATmega32U4RC-AU
32 KiB flash · 2.5 KiB SRAM · 1 KiB EEPROM · 2.7–5.5 V · 16 MHz maximum · -40 to +85 °C