← All parts

ATmega328P MCU

ATmega328P

Microchipmicrocontroller

The ATmega328P is an 8-bit AVR microcontroller featuring a RISC architecture for high performance and low power consumption. It offers ample memory, various peripherals like timers, ADC, and serial interfaces, making it suitable for embedded control applications.

In stock

Specifications

12
Operating Voltage
1.8 - 5.5
Temperature Range
-40 - 85 °C
Flash Memory
32 KBytes
Eeprom Memory
1 KBytes
Sram Memory
2 KBytes
Max Throughput
20 MIPS
Adc Resolution
10 bit
Pwm Channels
6
Interface
I2C, SPI, UART
Package Options
SPDIP, TQFP, VQFN
Active Current
0.2 mA (at 1MHz, 1.8V, 25°C)
Power Down Current
0.1 µA (at 1MHz, 1.8V, 25°C)

Pinout

28
PinNameFunctionsNotes
1PC6
GPIO
RESET / PCINT14 (I/O only if RSTDISBL fuse set)
2PD0
GPIOUART
RXD / PCINT16
3PD1
GPIOUART
TXD / PCINT17
4PD2
GPIO
INT0 / PCINT18
5PD3
GPIOPWM
INT1 / OC2B / PCINT19
6PD4
GPIO
XCK / T0 / PCINT20
7VCC
POWER
Digital supply voltage
8GND
GND
Ground
9PB6
GPIO
XTAL1 / TOSC1 / PCINT6 (crystal oscillator)
10PB7
GPIO
XTAL2 / TOSC2 / PCINT7 (crystal oscillator)
11PD5
GPIOPWM
T1 / OC0B / PCINT21
12PD6
GPIOPWM
AIN0 / OC0A / PCINT22
13PD7
GPIO
AIN1 / PCINT23
14PB0
GPIO
ICP1 / CLKO / PCINT0
15PB1
GPIOPWM
OC1A / PCINT1
16PB2
GPIOSPIPWM
SS / OC1B / PCINT2
17PB3
GPIOSPIPWM
MOSI / OC2A / PCINT3
18PB4
GPIOSPI
MISO / PCINT4
19PB5
GPIOSPI
SCK / PCINT5
20AVCC
POWER
Analog supply voltage for ADC
21AREF
POWER
Analog reference for ADC
22GND
GND
Ground
23PC0
GPIOADC
ADC0 / PCINT8
24PC1
GPIOADC
ADC1 / PCINT9
25PC2
GPIOADC
ADC2 / PCINT10
26PC3
GPIOADC
ADC3 / PCINT11
27PC4
GPIOADCI2C
ADC4 / SDA / PCINT12
28PC5
GPIOADCI2C
ADC5 / SCL / PCINT13

Interactive pinout

Highlight:
ATmega328P

Click a pin to copy its name · tap a tag above to spotlight a bus.

Logic level & voltage

Operates from 1.8-5.5 V (per the datasheet specs) with I2C, SPI and UART. At 5 V it reaches its full 20 MHz; lower voltages cap the safe clock.

Typical uses

  • The MCU behind the Arduino Uno/Nano — general embedded control
  • Standalone 8-bit projects on a breadboard
  • Low-power sensor controllers

Wiring notes & gotchas

  • Decouple each VCC/AVCC pin with 100 nF; add a 10 µF bulk cap.
  • External crystal needs the right load caps (typ. 22 pF); or use the internal 8 MHz RC.
  • Drive the RESET line high (pull-up) for normal run; it's active-low.

Commonly used with

5

Related parts

12