ATMEGA164P-20MCUR

ATMEGA164P-20MCUR Datasheet


32 Programmable I/O Lines 40-pin PDIP, 44-lead TQFP, 44-pad VQFN/QFN/MLF ATmega164P/324P/644P 44-pad DRQFN ATmega164P

Part Datasheet
ATMEGA164P-20MCUR ATMEGA164P-20MCUR ATMEGA164P-20MCUR (pdf)
Related Parts Information
ATMEGA164P-20MCU ATMEGA164P-20MCU ATMEGA164P-20MCU
PDF Datasheet Preview
• High-performance, Low-power 8-bit Microcontroller
• 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 20 MHz On-chip 2-cycle Multiplier
• High Endurance Non-volatile Memory segments
16/32/64K Bytes of In-System Self-programmable Flash program memory 512B/1K/2K Bytes EEPROM
1/2/4K Bytes Internal SRAM

Write/Erase Cycles 10,000 Flash/ 100,000 EEPROM

Data retention 20 years at 85°C/100 years at 25°C

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
• JTAG IEEE std. 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 Prescalers and Compare Modes 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 1x, 10x or 200x Byte-oriented Two-wire Serial Interface Two Programmable Serial USART 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/MLF ATmega164P/324P/644P 44-pad DRQFN ATmega164P
• Operating Voltages
- 5.5V for ATmega164P/324P/644PV - 5.5V for ATmega164P/324P/644P
• Speed Grades

ATmega164P/324P/644PV 0 - 4MHz - 5.5V, 0 - 10MHz - 5.5V ATmega164P/324P/644P 0 - 10MHz - 5.5V, 0 - 20MHz - 5.5V
• Power Consumption at 1 MHz, 1.8V, 25°C for ATmega164P/324P/644P

Active mA Power-down Mode 0.1µA Power-save Mode 0.6µA Including 32 kHz RTC
8-bit Microcontroller with 16/32/64K Bytes In-System Programmable Flash

ATmega164P/V ATmega324P/V ATmega644P/V

Pin Configurations

Pinout - PDIP/TQFP/VQFN/QFN/MLF

Figure Pinout ATmega164P/324P/644P

PDIP

PCINT8/XCK0/T0 PB0 PCINT9/CLKO/T1 PB1 PCINT10/INT2/AIN0 PB2 PCINT11/OC0A/AIN1 PB3 PCINT12/OC0B/SS PB4

PCINT13/MOSI PB5 PCINT14/MISO PB6

PCINT15/SCK PB7 RESET VCC GND XTAL2 XTAL1

PCINT24/RXD0 PD0 PCINT25/TXD0 PD1 PCINT26/RXD1/INT0 PD2 PCINT27/TXD1/INT1 PD3 PCINT28/XCK1/OC1B PD4 PCINT29/OC1A PD5 PCINT30/OC2B/ICP PD6

PA0 ADC0/PCINT0 PA1 ADC1/PCINT1 PA2 ADC2/PCINT2 PA3 ADC3/PCINT3 PA4 ADC4/PCINT4 PA5 ADC5/PCINT5 PA6 ADC6/PCINT6 PA7 ADC7/PCINT7 AREF GND AVCC PC7 TOSC2/PCINT23 PC6 TOSC1/PCINT22 PC5 TDI/PCINT21 PC4 TDO/PCINT20 PC3 TMS/PCINT19 PC2 TCK/PCINT18 PC1 SDA/PCINT17 PC0 SCL/PCINT16 PD7 OC2A/PCINT31

TQFP/VQFN/QFN/MLF

PB4 SS/OC0B/PCINT12 PB3 AIN1/OC0A/PCINT11 PB2 AIN0/INT2/PCINT10 PB1 T1/CLKO/PCINT9 PB0 XCK0/T0/PCINT8 GND VCC PA0 ADC0/PCINT0 PA1 ADC1/PCINT1 PA2 ADC2/PCINT2 PA3 ADC3/PCINT3

PCINT13/MOSI PB5 PCINT14/MISO PB6

PCINT15/SCK PB7 RESET VCC GND XTAL2 XTAL1

PCINT24/RXD0 PD0 PCINT25/TXD0 PD1 PCINT26/RXD1/INT0 PD2
Ordering Information

ATmega164P

Speed MHz 3 10

Power Supply - 5.5V
- 5.5V
Ordering Code

ATmega164PV-10AU 2 ATmega164PV-10PU 2 ATmega164PV-10MU 2 ATmega164PV-10MCU 2

ATmega164P-20AU 2 ATmega164P-20PU 2 ATmega164P-20MU 2 ATmega164P-20MCU 2

Package 1
44A 40P6 44M1 44MC
44A 40P6 44M1 44MC

Operational Range

Industrial -40oC to 85oC
This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information and minimum quantities.

Pb-free packaging, complies to the European Directive for Restriction of Hazardous Substances RoHS directive . Also Halide free and fully Green.

For Speed vs. VCC see ”Speed Grades” on page
44A 40P6 44M1 44MC

Package Type 44-lead, Thin mm Plastic Gull Wing Quad Flat Package TQFP 40-pin, Wide, Plastic Dual Inline Package PDIP 44-pad, 7 x 7 x mm body, lead pitch mm, Thermally Enhanced Plastic Very Thin Quad Flat No-Lead VQFN 44-lead 2-row Staggered , 5 x 5 x mm body, x mm Exposed Pad, Quad Flat No-Lead Package QFN

ATmega324P

Speed MHz 3 10 20

Power Supply - 5.5V - 5.5V
Ordering Code

ATmega324PV-10AU 2 ATmega324PV-10PU 2 ATmega324PV-10MU 2

ATmega324P-20AU 2 ATmega324P-20PU 2 ATmega324P-20MU 2

Package 1 44A 40P6 44M1
44A 40P6 44M1

Operational Range

Industrial -40oC to 85oC
This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information and minimum quantities.

Pb-free packaging, complies to the European Directive for Restriction of Hazardous Substances RoHS directive . Also Halide free and fully Green.

For Speed vs. VCC see ”Speed Grades” on page
44A 40P6 44M1

Package Type 44-lead, Thin mm Plastic Gull Wing Quad Flat Package TQFP 40-pin, Wide, Plastic Dual Inline Package PDIP 44-pad, 7 x 7 x mm body, lead pitch mm, Thermally Enhanced Plastic Very Thin Quad Flat No-Lead VQFN
16 ATmega164P/324P/644P

ATmega164P/324P/644P

ATmega644P

Speed MHz 3 10 20

Power Supply - 5.5V - 5.5V
Ordering Code

ATmega644PV-10AU 2 ATmega644PV-10PU 2 ATmega644PV-10MU 2

ATmega644P-20AU 2 ATmega644P-20PU 2 ATmega644P-20MU 2

Package 1 44A 40P6 44M1
44A 40P6 44M1

Operational Range

Industrial -40oC to 85oC

Industrial -40oC to 85oC
This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information and minimum quantities.

Pb-free packaging, complies to the European Directive for Restriction of Hazardous Substances RoHS directive . Also Halide free and fully Green.

For Speed vs. VCC see ”Speed Grades” on page
44A 40P6 44M1

Package Type 44-lead, Thin mm Plastic Gull Wing Quad Flat Package TQFP 40-pin, Wide, Plastic Dual Inline Package PDIP 44-pad, 7 x 7 x mm body, lead pitch mm, Thermally Enhanced Plastic Very Thin Quad Flat No-Lead VQFN

Packaging Information

PIN 1 e

PIN 1 IDENTIFIER

B E1 E

A1 A2 L

This package conforms to JEDEC reference MS-026, Variation ACB. Dimensions D1 and E1 do not include mold protrusion. Allowable
protrusion is mm per side. Dimensions D1 and E1 are maximum plastic body size dimensions including mold mismatch. Lead coplanarity is mm maximum.

COMMON DIMENSIONS Unit of Measure = mm

SYMBOL MIN

NOM MAX

NOTE

Note 2 Note 2
2325 Orchard Parkway R San Jose, CA 95131
44A, 44-lead, 10 x 10 mm Body Size, mm Body Thickness, mm Lead Pitch, Thin Profile Plastic Quad Flat Package TQFP
18 ATmega164P/324P/644P
40P6

ATmega164P/324P/644P

D PIN 1

SEATING PLANE
0º ~ 15º REF

This package conforms to JEDEC reference MS-011, Variation AC. Dimensions D and E1 do not include mold Flash or Protrusion.

Mold Flash or Protrusion shall not exceed mm

COMMON DIMENSIONS Unit of Measure = mm

SYMBOL MIN NOM MAX NOTE

Note 2

Note 2

TITLE 2325 Orchard Parkway 40P6, 40-lead mm Wide Plastic Dual R San Jose, CA 95131 Inline Package PDIP
09/28/01
40P6
44M1

Marked Pin# 1 ID

TOP VIEW

Pin #1 Corner

SEATING PLANE

A1 A3 A

SIDE VIEW
Updated ”Features” on page 1, ”Pin Configurations” on page 2 and ”Ordering Information” on page 15 according to the updated 44M1 package drawing.

Updated VOL in the table of ”DC Characteristics” on page Updated tRST and tBOD unites in the table of ”System and Reset Characteristics” on
page Updated typical values for ATmega324P and ATmega644P in the tables of ”DC Char-

Updated ATmega644P ”Errata” on page

Updated description in ”AVCC” on page Updated ”Stack Pointer” on page Updated Data Memory Map addresses, Figure 7-2 on page Updated description of use of external capacitors in ”Low Frequency Crystal Oscillator”
on page Updated typo in”Alternate Functions of Port C” on page Updated bit description in ”TWSR TWI Status Register” on page Updated typo in ”Programming via the JTAG Interface” on page Updated conditions for VOL in the table of ”DC Characteristics” on page Updated ”External Clock Drive” on page Updated conditions for VINT2 in Table 27-11 Single Ended channels in ”ADC Charac-
teristics” on page Updated Minimum Reference Voltage in Table 27-12 Differential channels in ”ADC

Characteristics” on page Updated bit field typos in ”Register Summary” on page
Added 44-pad DRQFN pinout for ATmega164P in ”Pinout - DRQFN” on page Added note to ”Address Match Unit” on page Updated ATmega164P ”Ordering Information” on page Added 44-lead QFN 44MC to ”Packaging Information” on page

Updated ”Features” on page 1 Added ”Data Retention” on page Updated ”SPH and SPL Stack Pointer High and Stack pointer Low” on page LCD reference removed from table note in ”Sleep Modes” on page Updated code example in ”Bit 0 IVCE Interrupt Vector Change Enable” on page Removed reference to External Memory Interface in ”Alternate Functions of Port A” on
page Updated ”Data Reception The USART Receiver” on page Updated ”ADCSRB ADC Control and Status Register B” on page Updated overview in ”ADC - Analog-to-digital Converter” on page Added ”ATmega644P Typical Characteristic” on page Updated Figure 28-31 on page 355, Figure 28-32 on page 356,Figure 28-33 on page
356 Updated notes in Table 8-3 on page 33.Table 8-8 on page 36, Table 8-9 on page 37,
and Table 8-11 on page Updated Table 13-7 on page 85, Table 13-8 on page 85, Table 13-10 on page 87,

Table 13-11 on page 88, Table 13-14 on page 91, Table 27-1 on page 328,Table 27-2 on page 328,Table 27-5 on page 331, Table 27-9 on page 333, and Table 27-12 on page 337 Updated ”ATmega324P DC Characteristics” on page 328 and ”ATmega644P DC Characteristics” on page Updated Table 27-7 on page 332 and Table 8-13 on page

Updated ”Watchdog Timer Configuration” on page

Updated ”GTCCR General Timer/Counter Control Register” on page Updated ”EECR The EEPROM Control Register” on page
24 ATmega164P/324P/644P

ATmega164P/324P/644P

Updated ”Pinout ATmega164P/324P/644P” on page Updated ”Power-down Mode” on page Updated note in Table 12-1 on page Updated Table 24-1 on page Updated ”Boot Size Configuration 1 ” on page Updated VOL limits in ”DC Characteristics” on page Updated note 3 and 4 in ”DC Characteristics” on page Added note to ”ATmega164P DC Characteristics” on page Added note to ”ATmega324P DC Characteristics” on page Updated Figure 28-13 on page 346 and Figure 28-60 on page

Updated ”DC Characteristics” on page

Updated ”DC Characteristics” on page

Headquarters

Atmel Corporation 2325 Orchard Parkway San Jose, CA 95131 USA Tel 1 408 441-0311 Fax 1 408 487-2600

International

Atmel Asia Room 1219 Chinachem Golden Plaza 77 Mody Road Tsimshatsui East Kowloon Hong Kong Tel 852 2721-9778 Fax 852 2722-1369

Atmel Europe Le Krebs 8, Rue Jean-Pierre Timbaud BP 309 78054 Saint-Quentin-enYvelines Cedex France Tel 33 1-30-60-70-00 Fax 33 1-30-60-71-11

Atmel Japan 9F, Tonetsu Shinkawa Bldg. 1-24-8 Shinkawa Chuo-ku, Tokyo 104-0033 Japan Tel 81 3-3523-3551 Fax 81 3-3523-7581

Product Contact

Web Site

Literature Requests

Technical Support

Sales Contact

Disclaimer The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN ATMEL’S TERMS AND CONDITIONS OF SALE LOCATED ON ATMEL’S WEB SITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes no representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and product descriptions at any time without notice. Atmel does not make any commitment to update the information contained herein. Unless specifically provided otherwise, Atmel products are not suitable for, and shall not be used in, automotive applications. Atmel’s products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life.
2008 Atmel Corporation. All rights reserved. logo and combinations thereof, and others are registered trademarks or trademarks of Atmel Corporation or its subsidiaries. Other terms and product names may be trademarks of others.
More datasheets: CLM1T-RKW-CTAUACC3 | CY7C185-25VC | CY7C185-20PC | CY7C185-25PC | CY7C185-35PC | CT-1100 | PI5C16212AE | PI5C16212VE | PI5C16212A | PI5C16212V


Notice: we do not provide any warranties that information, datasheets, application notes, circuit diagrams, or software stored on this website are up-to-date or error free. The archived ATMEGA164P-20MCUR Datasheet file may be downloaded here without warranties.

Datasheet ID: ATMEGA164P-20MCUR 519260