8-bit AVR Microcontrollers
ATmega328/P
DATASHEET SUMMARY
Introduction
The Atmel
®
picoPower
®
ATmega328/P is a low-power CMOS 8-bit
microcontroller based on the AVR
®
enhanced RISC architecture. By
executing powerful instructions in a single clock cycle, the ATmega328/P
achieves throughputs close to 1MIPS per MHz. This empowers system
designer to optimize the device for power consumption versus processing
speed.
Feature
High Performance, Low Power Atmel
®
AVR
®
8-Bit Microcontroller Family
Advanced RISC Architecture
131 Powerful Instructions
Most Single Clock Cycle Execution
32 x 8 General Purpose Working Registers
Fully Static Operation
Up to 20 MIPS Throughput at 20MHz
On-chip 2-cycle Multiplier
High Endurance Non-volatile Memory Segments
32KBytes of In-System Self-Programmable Flash program
Memory
1KBytes EEPROM
2KBytes Internal SRAM
Write/Erase Cycles: 10,000 Flash/100,000 EEPROM
Data Retention: 20 years at 85°C/100 years at 25°C
(1)
Optional Boot Code Section with Independent Lock Bits
In-System Programming by On-chip Boot Program
True Read-While-Write Operation
Programming Lock for Software Security
Atmel
®
QTouch
®
Library Support
Capacitive Touch Buttons, Sliders and Wheels
QTouch and QMatrix
®
Acquisition
Up to 64 sense channels
Atmel-42735B-328/P_Datasheet_Summary-11/2016
Peripheral Features
Two 8-bit Timer/Counters with Separate Prescaler and Compare Mode
One 16-bit Timer/Counter with Separate Prescaler, Compare Mode, and Capture Mode
Real Time Counter with Separate Oscillator
Six PWM Channels
8-channel 10-bit ADC in TQFP and QFN/MLF package
Temperature Measurement
6-channel 10-bit ADC in PDIP Package
Temperature Measurement
Two Master/Slave SPI Serial Interface
One Programmable Serial USART
One Byte-oriented 2-wire Serial Interface (Philips I
2
C compatible)
Programmable Watchdog Timer with Separate On-chip Oscillator
One On-chip Analog Comparator
Interrupt and Wake-up on Pin Change
Special Microcontroller Features
Power-on Reset and Programmable Brown-out Detection
Internal Calibrated Oscillator
External and Internal Interrupt Sources
Six Sleep Modes: Idle, ADC Noise Reduction, Power-save, Power-down, Standby, and
Extended Standby
I/O and Packages
23 Programmable I/O Lines
28-pin PDIP, 32-lead TQFP, 28-pad QFN/MLF and 32-pad QFN/MLF
Operating Voltage:
1.8 - 5.5V
Temperature Range:
-40°C to 105°C
Speed Grade:
0 - 4MHz @ 1.8 - 5.5V
0 - 10MHz @ 2.7 - 5.5V
0 - 20MHz @ 4.5 - 5.5V
Power Consumption at 1MHz, 1.8V, 25°C
Active Mode: 0.2mA
Power-down Mode: 0.1μA
Power-save Mode: 0.75μA (Including 32kHz RTC)
Atmel ATmega328/P [DATASHEET]
Atmel-42735B-328/P_Datasheet_Summary-11/2016
2
Table of Contents
Introduction......................................................................................................................1
Feature............................................................................................................................ 1
1. Description.................................................................................................................4
2. Configuration Summary............................................................................................. 5
3. Ordering Information .................................................................................................6
3.1. ATmega328 ................................................................................................................................. 6
3.2. ATmega328P ...............................................................................................................................7
4. Block Diagram........................................................................................................... 8
5. Pin Configurations..................................................................................................... 9
5.1. Pin-out.......................................................................................................................................... 9
5.2. Pin Descriptions..........................................................................................................................12
6. I/O Multiplexing........................................................................................................14
7. Resources................................................................................................................16
8. Data Retention.........................................................................................................17
9. About Code Examples.............................................................................................18
10. Capacitive Touch Sensing....................................................................................... 19
10.1. QTouch Library........................................................................................................................... 19
11. Packaging Information.............................................................................................20
11.1. 32-pin 32A.................................................................................................................................. 20
11.2. 32-pin 32M1-A............................................................................................................................21
11.3. 28-pin 28M1................................................................................................................................22
11.4. 28-pin 28P3................................................................................................................................ 23

ATMEGA328P-AU

Mfr. #:
Manufacturer:
Microchip Technology / Atmel
Description:
8-bit Microcontrollers - MCU 32KB In-system Flash 20MHz 1.8V-5.5V
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union