Skip to Content
Circuitera

ATmega328P microcontroller

Compare the bare ATmega328P with an Arduino Uno, identify its flash and SRAM, and consult the correct package pinout before breadboarding.

ATmega328P microcontroller photograph
ATMEGA328P-PU.jpg by oomlout · CC BY-SA 2.0. Resized and encoded as WebP without cropping.

Overview

The ATmega328P is an AVR microcontroller sold in several packages. A bare PDIP part has no USB interface or onboard programmer. A development board adds those conveniences and defines the Arduino pin numbers.

Source: Microchip

Peripherals and pin mapping

GPIO pins are grouped into AVR ports and often multiplexed with timer, serial or analog functions. The ADC, SPI, USART and two-wire interface share physical pins. Read the drawing for the package in hand rather than numbering pins from an Arduino diagram.

Source: Microchip

Programming and supply

Use an appropriate ISP programmer or a bootloader and serial hardware where installed. Connect both power rails shown on the datasheet, including AVCC, and decouple close to the chip. Allowable clock speed depends on supply voltage; a 16 MHz board recipe is not universal.

Source: Microchip

Specifications

ParameterValue or conditionSource
Program flash32 KBMicrochip
SRAM and EEPROM2 KB SRAM and 1 KB EEPROMMicrochip
ADC10-bit; six channels in the PDIP variantMicrochip

Compatibility and practice

A bare chip needs deliberate clock, power, reset and programming connections.

Sources and datasheets