MCU packages
ATmega328P · TQFP-32 pinout
TQFP-32 · bare MCU · up to 20 MHz
Open in the interactive atlas →See the pin map, choose functions and save a wiring plan.Türkçe
Bare ATmega328P package, not Arduino headers or Arduino sketch pin numbers. The 23 GPIO-capable pins include PC6 subject to the reset fuse and PB6/PB7 subject to clock configuration. ADC6/ADC7 exist only on 32-pin packages and are analog-only. QFN center GND pads are outside the perimeter count. Select supply and clock speed for the datasheet's speed grade.
At a glance
- Platform / manufacturer
- Microchip AVR
- Type
- MCU packages
- MCU
- ATmega328P
- Package / connector
- TQFP-32
- Physical contacts
- 32
- GPIO
- 23
- I/O voltage
- 1.8–5.5 V (speed dependent)
- Interfaces (pin count)
- I²C (2) · SPI (4) · UART (3) · ADC (8) · PWM (6) · ANALOG (2) · CLOCK (3) · GPIO (1) · IRQ (23) · TIMER (3)
- First production / release date
- Unverified for this exact model/revision [a]
- MCU / processor core
- 8-bit AVR [a]
- Clock speed / maximum
- 20 MHz [a]
- Internal RAM / system RAM
- 2 KB SRAM [a]
- Program Flash / storage
- 32 KB Flash [a]
- EEPROM / persistent data
- 1 KB EEPROM [a]
- Power and logic level
- Connect VCC, AVCC and every GND pin; oscillator/fuse and RESET conditions are independent of Arduino boards. [a]
- Pin sources checked
- 2026-11-05
- Technical details reviewed
- 2026-11-14
All pins (32)
| Physical | Pin name | Type | Functions | Notes and warnings | Source |
|---|---|---|---|---|---|
| 01 | PD3 | General-purpose I/O | INT1PCINT19OC2B | — | [1] [2] |
| 02 | PD4 | General-purpose I/O | PCINT20T0XCK0 | — | [1] [2] |
| 03 | GND | Ground | — | — | [1] [2] |
| 04 | VCC | Power | — | — | [1] [2] |
| 05 | GND | Ground | — | — | [1] [2] |
| 06 | VCC | Power | — | — | [1] [2] |
| 07 | PB6 | General-purpose I/O | PCINT6XTAL1TOSC1 | Shared with clock/oscillator functions. GPIO use depends on clock fuses and asynchronous-timer configuration; do not use an active oscillator signal as GPIO. | [1] [2] [3] |
| 08 | PB7 | General-purpose I/O | PCINT7XTAL2TOSC2 | Shared with clock/oscillator functions. GPIO use depends on clock fuses and asynchronous-timer configuration; do not use an active oscillator signal as GPIO. | [1] [2] [3] |
| 09 | PD5 | General-purpose I/O | PCINT21OC0BT1 | — | [1] [2] |
| 10 | PD6 | General-purpose I/O | PCINT22AIN0OC0A | — | [1] [2] |
| 11 | PD7 | General-purpose I/O | PCINT23AIN1 | — | [1] [2] |
| 12 | PB0 | General-purpose I/O | PCINT0CLKOICP1 | — | [1] [2] |
| 13 | PB1 | General-purpose I/O | PCINT1OC1A | — | [1] [2] |
| 14 | PB2 | General-purpose I/O | PCINT2OC1BSS0 | — | [1] [2] |
| 15 | PB3 | General-purpose I/O | PCINT3OC2AMOSI0 | — | [1] [2] |
| 16 | PB4 | General-purpose I/O | PCINT4MISO0 | — | [1] [2] |
| 17 | PB5 | General-purpose I/O | PCINT5SCK0 | — | [1] [2] |
| 18 | AVCC | Power | — | — | [1] [2] |
| 19 | ADC6 | Analog | ADC6 | Analog ADC input only; no digital GPIO, pull-up or PWM function. | [1] [2] |
| 20 | AREF | System | — | ADC reference connection, not a supply output. Coordinate external-reference wiring with the internal-reference selection. | [1] [2] |
| 21 | GND | Ground | — | — | [1] [2] |
| 22 | ADC7 | Analog | ADC7 | Analog ADC input only; no digital GPIO, pull-up or PWM function. | [1] [2] |
| 23 | PC0 | General-purpose I/O | PCINT8ADC0 | — | [1] [2] |
| 24 | PC1 | General-purpose I/O | PCINT9ADC1 | — | [1] [2] |
| 25 | PC2 | General-purpose I/O | PCINT10ADC2 | — | [1] [2] |
| 26 | PC3 | General-purpose I/O | PCINT11ADC3 | — | [1] [2] |
| 27 | PC4 | General-purpose I/O | PCINT12ADC4SDA0 | — | [1] [2] |
| 28 | PC5 | General-purpose I/O | PCINT13ADC5SCL0 | — | [1] [2] |
| 29 | PC6 | General-purpose I/O | PCINT14GPIO RSTDISBL programmed | PC6 is the reset/debugWire signal. GPIO use requires programming RSTDISBL and affects normal ISP/reset access; a suitable recovery programmer may be required. | [1] [2] [4] |
| 30 | PD0 | General-purpose I/O | PCINT16RXD0 | — | [1] [5] |
| 31 | PD1 | General-purpose I/O | PCINT17TXD0 | — | [1] [5] |
| 32 | PD2 | General-purpose I/O | INT0PCINT18 | — | [1] [5] |
General usage notes
Bare-MCU port bit. Configure I/O mode, peripheral and any required fuses; check voltage, current and clock limits in the MCU datasheet.
Model-specific features and connection notes
- 20 MHz requires 4.5–5.5 V; use the datasheet speed grade at lower voltages. [a]
Sources
Pin and warning references
- Atmel ATmega328/P complete datasheet (Arduino mirror) · PDF p. 16§5 · package pin diagram · top view; package-specific numbering and exposed-pad qualification
- Atmel ATmega328/P complete datasheet (Arduino mirror) · PDF p. 19§6 · Table 6-1 · PORT Function Multiplexing; PDIP PC0 typo resolved using Figure 5-1
- Atmel ATmega328/P complete datasheet (Arduino mirror) · PDF p. 17§5.2.3 continued on page 18 · PB6/PB7 clock selection and asynchronous Timer2
- Atmel ATmega328/P complete datasheet (Arduino mirror) · PDF p. 18§5.2.5 · PC6/RESET · RSTDISBL fuse condition and reset behavior
- Atmel ATmega328/P complete datasheet (Arduino mirror) · PDF p. 20§6 · Table 6-1 · PORT Function Multiplexing; PDIP PC0 typo resolved using Figure 5-1
Technical sources (1)
- Atmel ATmega328/P complete datasheet (Arduino mirror)Microchip / Atmel · Locked pin-source document; see sources/manifest.json for revision and SHA-256
Locked source documents
- Atmel ATmega328/P complete datasheet (Arduino mirror)Microchip / Atmel · Atmel-42735B · November 2016