soldr.ai

Docs  /  Boards

ATmega328P-PU chip: specs and pinout

8-bit AVR microcontroller in a 28-pin PDIP package: 32 KB flash, 2 KB SRAM, 1 KB EEPROM, 23 I/O lines. Sold as a bare chip, not a board.

Every value cites its sourceOfficial pinout

Buy on Compoden

Specs

SpecValueSource
Operating voltage1.8 V to 5.5 Vsource
Features, Operating Voltage
Speed grade0-4 MHz at 1.8-5.5 V; 0-10 MHz at 2.7-5.5 V; 0-20 MHz at 4.5-5.5 Vsource
Features, Speed Grade; Section 29.3 Figure 29-1
Operating temperature-40 C to 85 Csource
Features, Temperature Range
Flash / SRAM / EEPROM32 KB / 2 KB / 1 KBsource
Section 2 Overview, memory table (ATmega328P row); Features
Programmable I/O lines23source
Features, I/O and Packages
ADC6-channel 10-bit in PDIP packagesource
Features, Peripheral Features
Serial interfacesUSART, SPI, 2-wire serial interface (I2C compatible)source
Features, Peripheral Features
Active current0.2 mA at 1 MHz, 1.8 V, 25 Csource
Features, Power Consumption
Power-down current0.1 uA at 1.8 V, 25 Csource
Features, Power Consumption
Factory-calibrated internal oscillator8.0 MHz, +/-1% at 3 V, -40 C to 85 Csource
Section 29.4.1 Table 29-9

Power

ValueSource
Supply1.8 V to 5.5 Vsource
Features, Operating Voltage and Power Consumption
Current0.2 mA active at 1 MHz, 1.8 V, 25 C; 0.1 uA power-downsource
Features, Operating Voltage and Power Consumption

Pinout

Bare chip, no module board. The pin table is the 28-pin PDIP figure from the chip data sheet (pin names written as in the sheet). The Arduino bootloader on this chip is not described in any maker document. The sheet covers the ATmega48A/PA/88A/PA/168A/PA/328/P family; the ATmega328P rows are used.

PinFunctionVoltageNotesSource
1PC6 (PCINT14/RESET)source
Section 1 Figure 1-1, 28 PDIP; Section 1.1 Pin Descriptions
2PD0 (PCINT16/RXD)source
Section 1 Figure 1-1, 28 PDIP; Section 1.1 Pin Descriptions
3PD1 (PCINT17/TXD)source
Section 1 Figure 1-1, 28 PDIP; Section 1.1 Pin Descriptions
4PD2 (PCINT18/INT0)source
Section 1 Figure 1-1, 28 PDIP; Section 1.1 Pin Descriptions
5PD3 (PCINT19/OC2B/INT1)source
Section 1 Figure 1-1, 28 PDIP; Section 1.1 Pin Descriptions
6PD4 (PCINT20/XCK/T0)source
Section 1 Figure 1-1, 28 PDIP; Section 1.1 Pin Descriptions
7VCCDigital supply voltage (Section 1.1.1)source
Section 1 Figure 1-1, 28 PDIP; Section 1.1 Pin Descriptions
8GNDsource
Section 1 Figure 1-1, 28 PDIP; Section 1.1 Pin Descriptions
9PB6 (PCINT6/XTAL1/TOSC1)Clock input depending on fuse settings (Section 1.1.3)source
Section 1 Figure 1-1, 28 PDIP; Section 1.1 Pin Descriptions
10PB7 (PCINT7/XTAL2/TOSC2)Oscillator output depending on fuse settings (Section 1.1.3)source
Section 1 Figure 1-1, 28 PDIP; Section 1.1 Pin Descriptions
11PD5 (PCINT21/OC0B/T1)source
Section 1 Figure 1-1, 28 PDIP; Section 1.1 Pin Descriptions
12PD6 (PCINT22/OC0A/AIN0)source
Section 1 Figure 1-1, 28 PDIP; Section 1.1 Pin Descriptions
13PD7 (PCINT23/AIN1)source
Section 1 Figure 1-1, 28 PDIP; Section 1.1 Pin Descriptions
14PB0 (PCINT0/CLKO/ICP1)source
Section 1 Figure 1-1, 28 PDIP; Section 1.1 Pin Descriptions
15PB1 (OC1A/PCINT1)source
Section 1 Figure 1-1, 28 PDIP; Section 1.1 Pin Descriptions
16PB2 (SS/OC1B/PCINT2)source
Section 1 Figure 1-1, 28 PDIP; Section 1.1 Pin Descriptions
17PB3 (MOSI/OC2A/PCINT3)source
Section 1 Figure 1-1, 28 PDIP; Section 1.1 Pin Descriptions
18PB4 (MISO/PCINT4)source
Section 1 Figure 1-1, 28 PDIP; Section 1.1 Pin Descriptions
19PB5 (SCK/PCINT5)source
Section 1 Figure 1-1, 28 PDIP; Section 1.1 Pin Descriptions
20AVCCMust not differ more than 0.3 V from VCC (ADC chapter)source
Section 1 Figure 1-1, 28 PDIP; Section 1.1 Pin Descriptions
21AREFsource
Section 1 Figure 1-1, 28 PDIP; Section 1.1 Pin Descriptions
22GNDsource
Section 1 Figure 1-1, 28 PDIP; Section 1.1 Pin Descriptions
23PC0 (ADC0/PCINT8)source
Section 1 Figure 1-1, 28 PDIP; Section 1.1 Pin Descriptions
24PC1 (ADC1/PCINT9)source
Section 1 Figure 1-1, 28 PDIP; Section 1.1 Pin Descriptions
25PC2 (ADC2/PCINT10)source
Section 1 Figure 1-1, 28 PDIP; Section 1.1 Pin Descriptions
26PC3 (ADC3/PCINT11)source
Section 1 Figure 1-1, 28 PDIP; Section 1.1 Pin Descriptions
27PC4 (ADC4/SDA/PCINT12)source
Section 1 Figure 1-1, 28 PDIP; Section 1.1 Pin Descriptions
28PC5 (ADC5/SCL/PCINT13)source
Section 1 Figure 1-1, 28 PDIP; Section 1.1 Pin Descriptions

Build with it

Project ideas for the ATmega328P-PU chip. Each link opens Soldr with the prompt filled in; Soldr assigns the pins, checks power and shows how to wire every part.

Common mistakes

Not covered by the official source

Sources