ATTENTION: Due to increased demand and order volume, processing time may take an additional 1-3 business days.
HomeCommunitySubjectATMEGA328P Microcontroller: Pinout, Datasheet and Application

ATMEGA328P Microcontroller: Pinout, Datasheet and Application

MCU, 8BIT, AVR, 20MHZ, DIP-28; Controller Family/Series: AVR MEGA; Core Size: 8bit ATMEGA328P is a high performance, low power controller from Microchip.

4069

Jun 27, 2021

Jacob Clarissa

Arduino Uno to ATMEGA328P

 

MCU, 8BIT, AVR, 20MHZ, DIP-28; Controller Family/Series: AVR MEGA; Core Size: 8bit

ATMEGA328P is a high performance, low power controller from Microchip. This blog mainly introduces its pinout, datasheet, applications and other detailed information of ATMEGA328P.

ATMEGA328P-PN

879In Stock
Min.: 1 Mult.: 1
Quantity Unit Price Ext. Price
1+ $6.82812$6.83
10+ $6.44163$64.42
100+ $6.07701$607.7
500+ $5.73303$2866.52
1000+ $5.40851$5408.51
Unit Price:$6.82812
Subtotal: $6.83
Looking for a better price? Want a lower wholesale price? Please send an RFQ, and we will respond immediately.
Quick Links

ATMEGA328P Description

The ATmega328P is a low power, CMOS 8-bit microcontrollers based on the AVR® enhanced RISC architecture. By executing instructions in a single clock cycle, the devices achieve CPU throughput approaching one million instructions per second (MIPS) per megahertz, allowing the system designer to optimize power consumption versus processing speed.

ATMEGA328P Pinout

ATMEGA328P CAD Model

Symbol

 

Footprint

 

3D Model

ATMEGA328P Features

Specifications

Microchip Technology ATMEGA328P-PN technical specifications, attributes, parameters and parts with similar specifications to Microchip Technology ATMEGA328P-PN.

ATMEGA328P-PN Tech Specifications

Microchip Technology ATMEGA328P-PN technical specifications, attributes, parameters and parts with similar specifications to Microchip Technology ATMEGA328P-PN.

Product Attribute Attribute Value
Factory Lead Time7 Weeks
Contact PlatingTin
MountThrough Hole
Mounting TypeThrough Hole
Package / Case28-DIP (0.300, 7.62mm)
Number of Pins28Pins
Data ConvertersA/D 6x10b
Number of I/Os23I/Os
Watchdog TimersYes
Operating Temperature-40°C~105°C TA
PackagingTube
SeriesAVR® ATmega
Published1997
JESD-609 Codee3
Pbfree Codeyes
Part StatusActive
Moisture Sensitivity Level (MSL)1 (Unlimited)
Number of Terminations28Terminations
Terminal PositionDUAL
Product Attribute Attribute Value
Peak Reflow Temperature (Cel)NOT APPLICABLE
Supply Voltage5V
Terminal Pitch2.54mm
Frequency20MHz
Time@Peak Reflow Temperature-Max (s)NOT APPLICABLE
Base Part NumberATMEGA328P
Qualification StatusNot Qualified
Supply Voltage-Max (Vsup)5.5V
Power Supplies2/5V
Supply Voltage-Min (Vsup)4.5V
Interface2-Wire, I2C, SPI, UART, USART
Memory Size32kB
Oscillator TypeInternal
RAM Size2K x 8
Voltage - Supply (Vcc/Vdd)1.8V~5.5V
uPs/uCs/Peripheral ICs TypeMICROCONTROLLER, RISC
Core ProcessorAVR
PeripheralsBrown-out Detect/Reset, POR, PWM, WDT
Program Memory TypeFLASH
Product Attribute Attribute Value
Core Size8-Bit
Program Memory Size32KB 16K x 16
ConnectivityI2C, SPI, UART/USART
Bit Size8
Has ADCYES
DMA ChannelsNO
Data Bus Width8b
Number of Timers/Counters3Timers/Counters
EEPROM Size1K x 8
Number of ADC Channels8ADC Channels
Number of PWM Channels6PWM Channels
Height4.064mm
Length34.8mm
Width7.493mm
REACH SVHCNo SVHC
RoHS StatusROHS3 Compliant
Lead FreeLead Free
0 Products View Similar

ATMEGA328P Block Diagram

ATMEGA328P Alternatives

ATMEGA8535,ATMEGA16, ATMEGA32, 

Where to Use ATMEGA328P

Although we have many controllers ATMEGA328P is most popular of all because of its features and cost. ARDUINO boards are also developed on this controller because of its features.

  • With program memory of 32 Kbytes ATMEGA328P applications are many.

  • With various POWER SAVING modes it can work on MOBILE EMBEDDED SYSTEMS.

  • With Watchdog timer to reset under error it can be used on systems with minimal human interference.

  • With advanced RISC architecture, the controller executes programs quickly.  

  • Also with in chip temperature sensor the controller can be used at extreme temperatures.

How to Use ATMEGA328P

ATMEGA328P is used similar to any other controller. All there to do is programming.First, we need to program the controller and that is done by writing the appropriate program file in the FLASH memory. After dumping this program code, the controller executes this code and provides appropriate response.

Entire process of using an ATMEGA328 is as followed:

  • List the functions to be executed by controller.

  • Write the functions in programming language in IDE programs.

  • ATMEGA328P programming can also be done in ARDUINO IDE.

  • After writing the program, compile it to eliminate errors.

  • Make the IDE generate HEX file for the written program after compiling.

  • This HEX file contains the machine code which should be written in controller flash memory.

  • Choose the programming device (usually SPI programmer made for AVR controllers) which establishes communication between PC and ATMEGA328P. You can also program ATMEGA328P using ARDUINO UNO board.

  • Run the programmer software and choose the appropriate hex file.

  • Burn the HEX file of written program in ATMEGA328P flash memory using this program.

  • Disconnect the programmer, connect the appropriate peripherals for the controller and get the system started.

ATMEGA328P Applications

  • Used in ARDUINO UNO, ARDUINO NANO and ARDUINO MICRO boards.

  • Industrial control systems.

  • SMPS and Power Regulation systems.

  • Digital data processing.

  • Analog signal measuring and manipulations.

  • Embedded systems like coffee machine, vending machine.

  • Motor control systems.

  • Display units.

  • Peripheral Interface system.

ATMEGA328P Manufacturer

Microchip Technology Inc. is a leading provider of microcontroller and analog semiconductors, providing low-risk product development, lower total system cost and faster time to market for thousands of diverse customer applications worldwide. Headquartered in Chandler, Arizona, Microchip offers outstanding technical support along with dependable delivery and quality.

Datasheet PDF

Download datasheets and manufacturer documentation for Microchip Technology ATMEGA328P-PN.

ATMEGA328P-PN Documents

Download datasheets and manufacturer documentation for ATMEGA328P-PN

Frequently Asked Questions

Where can I find ATMEGA328P pinout details?
For those of you who are using an ATMEGA328P with the Arduino Bootloader code on your own circuit board here is the pinout details which shows the chip pin numbers and the associated Arduino pins.
How do I install an Arduino ATMEGA328P Bootloader?
The bootloader is basically a .hex file that runs when you turn on the board. It is very similar to the BIOS that runs on your PC. It does two things. First, it looks around to see if the computer is trying to program it. If it is, it grabs the program from the computer and uploads it into the ICs memory (in a specific location so as not to overwrite the bootloader).
How do you connect an ATMEGA328P to an Arduino?
This tutorial explains how to migrate from an Arduino board to a standalone microcontroller on a breadboard. It's similar to this tutorial, but uses an Arduino board to program the ATmega on the breadboard.Unless you choose to use the minimal configuration described at the end of this tutorial, you'll need four components (besides the Arduino, ATMEGA328P, and breadboard).
FAQ
Where can I find ATMEGA328P pinout details?
For those of you who are using an ATMEGA328P with the Arduino Bootloader code on your own circuit board here is the pinout details which shows the chip pin numbers and the associated Arduino pins.
How do I install an Arduino ATMEGA328P Bootloader?
The bootloader is basically a .hex file that runs when you turn on the board. It is very similar to the BIOS that runs on your PC. It does two things. First, it looks around to see if the computer is trying to program it. If it is, it grabs the program from the computer and uploads it into the ICs memory (in a specific location so as not to overwrite the bootloader).
How do you connect an ATMEGA328P to an Arduino?
This tutorial explains how to migrate from an Arduino board to a standalone microcontroller on a breadboard. It's similar to this tutorial, but uses an Arduino board to program the ATmega on the breadboard.Unless you choose to use the minimal configuration described at the end of this tutorial, you'll need four components (besides the Arduino, ATMEGA328P, and breadboard).

TAGS

Share