MCU packages

ATmega328P · QFN/MLF-32 pinout

QFN/MLF-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
QFN/MLF-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)

ATmega328P · QFN/MLF-32: every pin in physical order with its type, functions and warnings
PhysicalPin nameTypeFunctionsNotes and warningsSource
01PD3General-purpose I/OINT1PCINT19OC2B—[1] [2]
02PD4General-purpose I/OPCINT20T0XCK0—[1] [2]
03GNDGround——[1] [2]
04VCCPower——[1] [2]
05GNDGround——[1] [2]
06VCCPower——[1] [2]
07PB6General-purpose I/OPCINT6XTAL1TOSC1

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]
08PB7General-purpose I/OPCINT7XTAL2TOSC2

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]
09PD5General-purpose I/OPCINT21OC0BT1—[1] [2]
10PD6General-purpose I/OPCINT22AIN0OC0A—[1] [2]
11PD7General-purpose I/OPCINT23AIN1—[1] [2]
12PB0General-purpose I/OPCINT0CLKOICP1—[1] [2]
13PB1General-purpose I/OPCINT1OC1A—[1] [2]
14PB2General-purpose I/OPCINT2OC1BSS0—[1] [2]
15PB3General-purpose I/OPCINT3OC2AMOSI0—[1] [2]
16PB4General-purpose I/OPCINT4MISO0—[1] [2]
17PB5General-purpose I/OPCINT5SCK0—[1] [2]
18AVCCPower——[1] [2]
19ADC6AnalogADC6

Analog ADC input only; no digital GPIO, pull-up or PWM function.

[1] [2]
20AREFSystem—

ADC reference connection, not a supply output. Coordinate external-reference wiring with the internal-reference selection.

[1] [2]
21GNDGround——[1] [2]
22ADC7AnalogADC7

Analog ADC input only; no digital GPIO, pull-up or PWM function.

[1] [2]
23PC0General-purpose I/OPCINT8ADC0—[1] [2]
24PC1General-purpose I/OPCINT9ADC1—[1] [2]
25PC2General-purpose I/OPCINT10ADC2—[1] [2]
26PC3General-purpose I/OPCINT11ADC3—[1] [2]
27PC4General-purpose I/OPCINT12ADC4SDA0—[1] [2]
28PC5General-purpose I/OPCINT13ADC5SCL0—[1] [2]
29PC6General-purpose I/OPCINT14GPIO 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]
30PD0General-purpose I/OPCINT16RXD0—[1] [5]
31PD1General-purpose I/OPCINT17TXD0—[1] [5]
32PD2General-purpose I/OINT0PCINT18—[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

Sources

Pin and warning references

  1. Atmel ATmega328/P complete datasheet (Arduino mirror) · PDF p. 17§5 · package pin diagram · top view; package-specific numbering and exposed-pad qualification
  2. 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
  3. Atmel ATmega328/P complete datasheet (Arduino mirror) · PDF p. 17§5.2.3 continued on page 18 · PB6/PB7 clock selection and asynchronous Timer2
  4. Atmel ATmega328/P complete datasheet (Arduino mirror) · PDF p. 18§5.2.5 · PC6/RESET · RSTDISBL fuse condition and reset behavior
  5. 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)

  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

Pin reference · Datasheet