ATmega328P
Microchip ATmega328P 8-bit AVR MCU, 32 KB flash, 1 KB EEPROM, 2 KB SRAM, 20 MHz, with USART, SPI and I2C, in a 28-pin DIP package.
The ATmega328P is a Microchip 8-bit AVR RISC-based microcontroller in a 28-pin package, and it is one of the most widely used 8-bit parts in the world. It offers 32 KB of in-system self-programmable flash, 1 KB of EEPROM and 2 KB of SRAM, with 23 general-purpose I/O lines and 32 general-purpose working registers, and the AVR core executes most instructions in a single clock cycle for a throughput approaching one MIPS per MHz, which reaches about 20 MIPS at 20 MHz. The peripheral set includes three flexible timer/counters with compare modes, PWM, a serial programmable USART, a byte-oriented two-wire serial interface for I2C, an SPI port, a six-channel 10-bit analog-to-digital converter and an analog comparator, and the in-system programming and the boot section make the firmware update easy. The device operates over a broad 1.8 V to 5.5 V range, and the combination of the efficient core, the rich peripheral set and the large community of code and examples makes it a strong choice for a general embedded application, from a sensor node to a motor control. Typical applications include consumer products, sensor nodes, motor control, industrial control and education and prototyping. Every device BeiLuo ships is factory-traceable and includes an import declaration, a certificate of origin and a RoHS compliance file. Our FAE team helps you choose the memory and the package and plan the software and the peripherals.
FAE Professional Review
The ATmega328P is the general-purpose AVR workhorse, a 28-pin part with 32 KB of flash, a 10-bit ADC, USART, SPI and I2C, and an efficient single-cycle core. It covers a very wide range of embedded tasks and has a large library of code and examples, which shortens the development. Confirm the supply and the clock for the design.
| Parameter | Value |
|---|---|
| Flash | 32 KB |
| EEPROM | 1 KB |
| SRAM | 2 KB |
| Speed | 20 MHz |
| Package | 28-pin DIP |
Application Circuits
Consumer and hobby products
Reference circuits and application schematics for Consumer and hobby products are available from our FAE team.
Sensor nodes
Reference circuits and application schematics for Sensor nodes are available from our FAE team.
Motor control
Reference circuits and application schematics for Motor control are available from our FAE team.
Need a reference schematic or design review? Our FAE engineers can share verified circuits and layout guidance for this part.
Related Documents
Alternative Part Numbers
Complementary Part Numbers
Recommended Complementary Products
Frequently Asked Questions
What projects suit the ATmega328P?
It suits a broad range of embedded tasks that need a 28-pin 8-bit part with 32 KB of flash, a 10-bit ADC and USART, SPI and I2C, such as a sensor node, a motor control or a consumer product. The large code library shortens the development.
Confirm the supply and the clock for your design.
Which AVR part should I choose?
Choose the ATtiny85 for a small, low-cost task in an 8-pin package, this ATmega328P for a general application with a good balance of memory and I/O, and the ATmega2560 for a large design that needs 256 KB of flash and many I/O lines.
Our FAE team can help match the part.
Is the MCU genuine and documented?
BeiLuo supplies factory-traceable ATmega328P MCUs with an import declaration, certificate of origin and RoHS file on every order. Stock is normally available and the datasheet downloads from this page.
Order a sample to validate the MCU before volume production.