Compatible with Arduino

ATMEGA328 Dip-28

$3.50

Shipping calculated at checkout.

Quantity

ATmega328P-PU 8-Bit AVR Microcontroller – 32KB Flash, 20MHz, 28-Pin DIP

The ATmega328P-PU is a high-performance, low-power 8-bit AVR RISC microcontroller widely used in embedded electronics, robotics, automation, educational projects, and custom microcontroller circuits.

Best known as the microcontroller used in classic Arduino Uno and Arduino Nano designs, the ATmega328P combines 32KB Flash program memory, 2KB SRAM, 1KB EEPROM, up to 20MHz operation, 23 programmable I/O lines, ADC, PWM, UART, SPI, and I2C-compatible communication in a convenient through-hole 28-pin DIP package.

The DIP format makes it particularly suitable for breadboards, IC sockets, educational laboratories, prototyping, and custom PCB designs.

Technical Specifications

  • Manufacturer: Microchip / Atmel
  • Part Number: ATmega328P-PU
  • Architecture: 8-Bit AVR RISC
  • Package: 28-Pin SPDIP / DIP
  • Mounting Type: Through-Hole
  • Maximum Clock Frequency: 20MHz
  • Program Flash Memory: 32KB
  • SRAM: 2KB
  • EEPROM: 1KB
  • Programmable I/O Lines: 23
  • ADC: 10-Bit
  • ADC Channels in DIP Package: 6
  • PWM Channels: 6
  • Timer/Counters: 2 × 8-Bit + 1 × 16-Bit
  • USART: Yes
  • SPI: Yes
  • 2-Wire / I2C-Compatible Interface: Yes
  • Analog Comparator: Yes
  • Watchdog Timer: Yes
  • Operating Voltage: 1.8–5.5V
  • Maximum Speed at 1.8–5.5V: 4MHz
  • Maximum Speed at 2.7–5.5V: 10MHz
  • Maximum Speed at 4.5–5.5V: 20MHz
  • Industrial Temperature Range for ATmega328P-PU: -40°C to +85°C
  • Flash Endurance: 10,000 Write/Erase Cycles
  • EEPROM Endurance: 100,000 Write/Erase Cycles

8-Bit AVR RISC Architecture

The ATmega328P uses Microchip's AVR RISC architecture, with most instructions executing in a single clock cycle.

At suitable clock frequencies, the architecture can deliver performance approaching 1 MIPS per MHz, making the device well suited to real-time embedded-control applications.

32KB Flash, 2KB SRAM & 1KB EEPROM

The microcontroller integrates three main memory types:

32KB Flash – Stores the program/firmware.

2KB SRAM – Used for variables and temporary data while the program is running.

1KB EEPROM – Non-volatile storage for settings, calibration values, counters, configuration data, and other information that should remain stored after power is removed.

Digital & Analog I/O

The ATmega328P provides up to 23 programmable I/O lines.

In the 28-pin DIP package, the microcontroller includes 6 channels of 10-bit analog-to-digital conversion, allowing analog sensors and voltage signals to be measured directly.

It also provides 6 PWM channels for applications such as LED brightness control, motor-speed control, servo-related signal generation, and other pulse-width-modulation applications.

Communication Interfaces

The ATmega328P integrates several commonly used communication interfaces:

USART – Serial Communication

Useful for communication with computers, Bluetooth modules, GPS receivers, serial displays, and other microcontrollers.

SPI – Serial Peripheral Interface

Suitable for displays, ADC/DAC devices, memory, sensors, SD cards, and other high-speed peripherals.

2-Wire Interface – I2C Compatible

Allows communication with sensors, displays, RTC modules, EEPROMs, GPIO expanders, and many other I2C-compatible devices.

Timers & PWM

The ATmega328P includes:

2 × 8-Bit Timer/Counters

1 × 16-Bit Timer/Counter

These hardware timers can be used for timing, event counting, PWM generation, frequency measurement, interrupts, and other real-time control functions.

Standalone Arduino-Compatible Projects

The ATmega328P is commonly used to create standalone Arduino-compatible circuits without requiring a complete Arduino development board.

A typical standalone circuit may require:

ATmega328P Microcontroller

Suitable Power Supply

Decoupling Capacitors

Reset Circuit

Clock Source, if an external clock is required

Programming Interface or Bootloader

If the IC is supplied without an Arduino bootloader, it must first be programmed using an ISP programmer or another suitable programming method before it can be used in the same way as a bootloader-equipped Arduino Uno.

Operating Voltage & Clock Speed

The ATmega328P operates over a wide 1.8–5.5V supply range, but the maximum permitted clock frequency depends on the operating voltage.

Typical maximum operating points are:

1.8V → Up to 4MHz

2.7V → Up to 10MHz

4.5–5.5V → Up to 20MHz

Therefore, the commonly used 16MHz Arduino configuration normally operates from a suitable voltage such as 5V.

Low-Power Operation

The ATmega328P provides several software-selectable power-saving modes, making it suitable for battery-operated and low-power embedded systems.

Available modes include Idle, ADC Noise Reduction, Power-Save, Power-Down, Standby, and Extended Standby.

Applications

Ideal for Arduino-compatible projects, robotics, embedded systems, automation, sensor interfaces, motor controllers, IoT nodes, educational electronics, custom PCB development, breadboard prototyping, data logging, control systems, smart devices, DIY electronics, and microcontroller programming laboratories.

Important Note

The ATmega328 and ATmega328P are closely related but are not exactly the same device. Check the marking printed on the IC before listing it specifically as an ATmega328P.

The 28-pin DIP version provides 6 ADC channels, while some surface-mount ATmega328P packages provide 8 ADC channels.

Also, a bare ATmega328P IC does not necessarily include the Arduino Uno bootloader. Unless your stock is specifically pre-programmed with an Arduino bootloader, it should be sold as a standard microcontroller rather than advertised as a pre-programmed Arduino replacement.

Package Includes

1 × ATmega328P-PU 8-Bit AVR Microcontroller – 28-Pin DIP