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