8-bit AVR Microcontrollers
ATmega324PA
DATASHEET SUMMARY
Introduction
The Atmel picoPower ATmega324PA 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 ATmega324PA
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-42715C-ATmega324PA_Datasheet_Summary-10/2016
•
•
JTAG (IEEE std. 1149.1 Compliant) Interface
–
Boundary-scan Capabilities According to the JTAG Standard
–
Extensive On-chip Debug Support
–
Programming of Flash, EEPROM, Fuses, and Lock Bits through the JTAG Interface
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
• Differential Mode with Selectable Gain at 1×, 10× or 200×
One Byte-oriented 2-wire Serial Interface (Philips I
2
C compatible)
Two Programmable Serial USART
One Master/Slave SPI Serial Interface
Programmable Watchdog Timer with Separate On-chip Oscillator
•
–
On-chip Analog Comparator
–
Interrupt and Wake-up on Pin Change
Special Microcontroller Features
–
Power-on Reset and Programmable Brown-out Detection
–
Internal Calibrated RC 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
–
32 Programmable I/O Lines
–
40-pin PDIP
–
44-lead TQFP
–
44-pad VQFN/QFN
–
44-pad DRQFN
–
49-ball VFBGA
Operating Voltage:
–
1.8 - 5.5V
Speed Grades
–
0 - 4MHz @ 1.8V - 5.5V
–
0 - 10MHz @ 2.7V - 5.5V
–
0 - 20MHz @ 4.5 - 5.5V
Power Consumption at 1MHz, 1.8V, 25°C
–
Active Mode: 0.4mA
–
Power-down Mode: 0.1μA
–
Power-save Mode: 0.6μA (Including 32kHz RTC)
–
–
•
•
•
•
Note:
1. Refer to
Data Retention
Related Links
Atmel ATmega324PA [DATASHEET]
Atmel-42715C-ATmega324PA_Datasheet_Summary-10/2016
2
Data Retention
on page 16
Atmel ATmega324PA [DATASHEET]
Atmel-42715C-ATmega324PA_Datasheet_Summary-10/2016
3
Table of Contents
Introduction......................................................................................................................1
Feature............................................................................................................................ 1
1. Description.................................................................................................................5
2. Configuration Summary............................................................................................. 6
3. Ordering Information .................................................................................................7
4. Block Diagram........................................................................................................... 8
5. Pin Configurations..................................................................................................... 9
5.1.
5.2.
Pinout........................................................................................................................................... 9
Pin Descriptions..........................................................................................................................12
6. I/O Multiplexing........................................................................................................ 14
7. General Information................................................................................................. 16
7.1.
7.2.
7.3.
7.4.
Resources.................................................................................................................................. 16
Data Retention............................................................................................................................16
About Code Examples................................................................................................................16
Capacitive Touch Sensing.......................................................................................................... 16
8. Packaging Information............................................................................................. 17
8.1.
8.2.
8.3.
8.4.
8.5.
40-pin PDIP................................................................................................................................ 17
44-pin TQFP...............................................................................................................................18
44-pin VQFN...............................................................................................................................19
44-pin QFN.................................................................................................................................20
49-pin VFBGA............................................................................................................................ 21
Atmel ATmega324PA [DATASHEET]
Atmel-42715C-ATmega324PA_Datasheet_Summary-10/2016
4
1.
Description
The Atmel
®
ATmega324PA 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 ATmega324PA achieves
throughputs close to 1MIPS per MHz. This empowers system designer to optimize the device for power
consumption versus processing speed.
The Atmel AVR
®
core combines a rich instruction set with 32 general purpose working registers. All the
32 registers are directly connected to the Arithmetic Logic Unit (ALU), allowing two independent registers
to be accessed in a single instruction executed in one clock cycle. The resulting architecture is more code
efficient while achieving throughputs up to ten times faster than conventional CISC microcontrollers.
The ATmega324PA provides the following features: 32Kbytes of In-System Programmable Flash with
Read-While-Write capabilities, 1Kbytes EEPROM, 2Kbytes SRAM, 32 general purpose I/O lines, 32
general purpose working registers, Real Time Counter (RTC), three flexible Timer/Counters with compare
modes and PWM, two serial programmable USARTs , one byte-oriented 2-wire Serial Interface (I2C), a 8-
channel 10-bit ADC with optional differential input stage with programmable gain, a programmable
Watchdog Timer with internal Oscillator, an SPI serial port, IEEE std. 1149.1 compliant JTAG test
interface, also used for accessing the On-chip Debug system and programming and six software
selectable power saving modes. The Idle mode stops the CPU while allowing the SRAM, Timer/Counters,
SPI port, and interrupt system to continue functioning. The Power-down mode saves the register contents
but freezes the Oscillator, disabling all other chip functions until the next interrupt or hardware reset. In
Power-save mode, the asynchronous timer continues to run, allowing the user to maintain a timer base
while the rest of the device is sleeping. The ADC Noise Reduction mode stops the CPU and all I/O
modules except asynchronous timer and ADC to minimize switching noise during ADC conversions. In
Standby mode, the crystal/resonator oscillator is running while the rest of the device is sleeping. This
allows very fast start-up combined with low power consumption. In Extended Standby mode, both the
main oscillator and the asynchronous timer continue to run.
Atmel offers the QTouch
®
library for embedding capacitive touch buttons, sliders and wheels functionality
into AVR microcontrollers. The patented charge-transfer signal acquisition offers robust sensing and
includes fully debounced reporting of touch keys and includes Adjacent Key Suppression
®
(AKS
™
)
technology for unambiguous detection of key events. The easy-to-use QTouch Suite toolchain allows you
to explore, develop and debug your own touch applications.
The device is manufactured using Atmel’s high density non-volatile memory technology. The On-chip ISP
Flash allows the program memory to be reprogrammed In-System through an SPI serial interface, by a
conventional nonvolatile memory programmer, or by an On-chip Boot program running on the AVR core.
The Boot program can use any interface to download the application program in the Application Flash
memory. Software in the Boot Flash section will continue to run while the Application Flash section is
updated, providing true Read-While-Write operation. By combining an 8-bit RISC CPU with In-System
Self-Programmable Flash on a monolithic chip, the Atmel ATmega324PA is a powerful microcontroller
that provides a highly flexible and cost effective solution to many embedded control applications.
The ATmega324PA is supported with a full suite of program and system development tools including: C
Compilers, Macro Assemblers, Program Debugger/Simulators, In-Circuit Emulators, and Evaluation kits.
Atmel ATmega324PA [DATASHEET]
Atmel-42715C-ATmega324PA_Datasheet_Summary-10/2016
5