MCU packages
ATmega328P · QFN/MLF-28 pinout
QFN/MLF-28 · 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-28
- Physical contacts
- 28
- GPIO
- 23
- I/O voltage
- 1.8–5.5 V (speed dependent)
- Interfaces (pin count)
- I²C (2) · SPI (4) · UART (3) · ADC (6) · 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 (28)
| 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 | VCC | Power | — | — | [1] [2] |
| 04 | GND | Ground | — | — | [1] [2] |
| 05 | 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] |
| 06 | 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] |
| 07 | PD5 | General-purpose I/O | PCINT21OC0BT1 | — | [1] [2] |
| 08 | PD6 | General-purpose I/O | PCINT22AIN0OC0A | — | [1] [2] |
| 09 | PD7 | General-purpose I/O | PCINT23AIN1 | — | [1] [2] |
| 10 | PB0 | General-purpose I/O | PCINT0CLKOICP1 | — | [1] [2] |
| 11 | PB1 | General-purpose I/O | PCINT1OC1A | — | [1] [2] |
| 12 | PB2 | General-purpose I/O | PCINT2OC1BSS0 | — | [1] [2] |
| 13 | PB3 | General-purpose I/O | PCINT3OC2AMOSI0 | — | [1] [2] |
| 14 | PB4 | General-purpose I/O | PCINT4MISO0 | — | [1] [2] |
| 15 | PB5 | General-purpose I/O | PCINT5SCK0 | — | [1] [2] |
| 16 | AVCC | Power | — | — | [1] [2] |
| 17 | AREF | System | — | ADC reference connection, not a supply output. Coordinate external-reference wiring with the internal-reference selection. | [1] [2] |
| 18 | GND | Ground | — | — | [1] [2] |
| 19 | PC0 | General-purpose I/O | PCINT8ADC0 | — | [1] [2] |
| 20 | PC1 | General-purpose I/O | PCINT9ADC1 | — | [1] [2] |
| 21 | PC2 | General-purpose I/O | PCINT10ADC2 | — | [1] [2] |
| 22 | PC3 | General-purpose I/O | PCINT11ADC3 | — | [1] [2] |
| 23 | PC4 | General-purpose I/O | PCINT12ADC4SDA0 | — | [1] [2] |
| 24 | PC5 | General-purpose I/O | PCINT13ADC5SCL0 | — | [1] [2] |
| 25 | 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] |
| 26 | PD0 | General-purpose I/O | PCINT16RXD0 | — | [1] [5] |
| 27 | PD1 | General-purpose I/O | PCINT17TXD0 | — | [1] [5] |
| 28 | 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. 15§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