ATMEGA164 ATMEL [ATMEL Corporation], ATMEGA164 Datasheet

no-image

ATMEGA164

Manufacturer Part Number
ATMEGA164
Description
8-bit Microcontroller with 16/32/64K Bytes In-System Programmable Flash
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATMEGA164A-AU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATMEGA164A-AUR
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATMEGA164A-CU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATMEGA164A-CUR
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATMEGA164P-15AT
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATMEGA164P-20AQ
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATMEGA164P-20AU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATMEGA164P-20MU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATMEGA164P-A15AZ
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Features
High-performance, Low-power AVR
Advanced RISC Architecture
Nonvolatile Program and Data Memories
JTAG (IEEE std. 1149.1 Compliant) Interface
Peripheral Features
Special Microcontroller Features
I/O and Packages
Operating Voltages
Speed Grades
Power Consumption at 1 MHz, 3V, 25°C for ATmega644
– 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
– 16/32/64K Bytes of In-System Self-Programmable Flash
– Optional Boot Code Section with Independent Lock Bits
– 512B/1K/2K Bytes EEPROM
– 1/2/4K Bytes Internal SRAM
– Programming Lock for Software Security
– 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
– Two 8-bit Timer/Counters with Separate Prescalers and Compare Modes
– One 16-bit Timer/Counter with Separate Prescaler, Compare Mode, and Capture
– Real Time Counter with Separate Oscillator
– Six PWM Channels
– 8-channel, 10-bit ADC
– Byte-oriented Two-wire Serial Interface
– One/Two Programmable Serial USART (ATmega644, ATmega164/324)
– Master/Slave SPI Serial Interface
– Programmable Watchdog Timer with Separate On-chip Oscillator
– On-chip Analog Comparator
– Interrupt and Wake-up on Pin Change
– 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
– 32 Programmable I/O Lines
– 40-pin PDIP, 44-lead TQFP, and 44-pad QFN/MLF
– 1.8 - 5.5V for ATmega164/324/644V
– 2.7 - 5.5V for ATmega164/324/644
– ATmega164/324/644V: 0 - 4MHz @ 1.8 - 5.5V, 0 - 10MHz @ 2.7 - 5.5V
– ATmega164/324/644: 0 - 10MHz @ 2.7 - 5.5V, 0 - 20MHz @ 4.5 - 5.5V
– Active: 240 µA @ 1.8V, 1MHz
– Power-down Mode: 0.1 µA @ 1.8V
Mode
and Extended Standby
Endurance: 10,000 Write/Erase Cycles
In-System Programming by On-chip Boot Program
True Read-While-Write Operation
Endurance: 100,000 Write/Erase Cycles
Differential mode with selectable gain at 1x, 10x or 200x
®
8-bit Microcontroller
Note: This is a summary document. A complete document
is available on our Web site at www.atmel.com.
8-bit
Microcontroller
with 16/32/64K
Bytes In-System
Programmable
Flash
ATmega164/V
ATmega324/V
ATmega644/V
Advance
Information
Summary
2593AS–AVR–06/05

Related parts for ATMEGA164

ATMEGA164 Summary of contents

Page 1

... PDIP, 44-lead TQFP, and 44-pad QFN/MLF • Operating Voltages – 1.8 - 5.5V for ATmega164/324/644V – 2.7 - 5.5V for ATmega164/324/644 • Speed Grades – ATmega164/324/644V 4MHz @ 1.8 - 5.5V 10MHz @ 2.7 - 5.5V – ATmega164/324/644 10MHz @ 2.7 - 5.5V 20MHz @ 4.5 - 5.5V • Power Consumption at 1 MHz, 3V, 25°C for ATmega644 – Active: 240 µA @ 1.8V, 1MHz – Power-down Mode: 0.1 µA @ 1.8V ® ...

Page 2

... Pin Configurations ATmega164/324/644 2 Figure 1. Pinout ATmega164/324 (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 ...

Page 3

... XTAL2 XTAL1 (PCINT24/RXD0) PD0 (PCINT25/TXD0) PD1 (PCINT26/INT0) PD2 Note: The large center pad underneath the QFN/MLF package should be soldered to the board to ensure good mechanical stability. ATmega164/324/644 PDIP PA0 (ADC0/PCINT0) PA1 (ADC1/PCINT1) PA2 (ADC2/PCINT2) PA3 (ADC3/PCINT3) PA4 (ADC4/PCINT4) PA5 (ADC5/PCINT5) PA6 (ADC6/PCINT6) ...

Page 4

... AVR microcontrollers manufactured on the same process technology. Min and Max values will be available after the device is characterized. The ATmega164/324/644 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 ATmega164/324/644 achieves throughputs approaching 1 MIPS per MHz allowing the system designer to optimize power consumption versus processing speed ...

Page 5

... In-System Self-Program mable Flash on a monolithic ch ip, the Atmel ATmega164/324/644 is a powerful microcontroller that provides a highly flexible and cost effective solution to many embedded control applications. The ATmega164/324/644 AVR is supported with a full suite of program and system development tools including: C compilers, macro assemblers, program debugger/simu- lators, in-circuit emulators, and evaluation kits. ...

Page 6

... The Port D pins are tri-stated when a reset condition becomes active, even if the clock is not running. Port D also serves the functions of various special features of the ATmega164/324/644 as listed on page 78. Reset input. A low level on this pin for longer than the minimum pulse length will gener- ate a reset, even if the clock is not running ...

Page 7

... AREF 2593AS–AVR–06/05 This is the analog reference pin for the Analog-to-digital Converter. ATmega164/324/644 7 ...

Page 8

... UCSR1B RXCIE1 (0xC8) UCSR1A RXC1 (0xC7) Reserved - (0xC6) UDR0 (0xC5) UBRR0H - (0xC4) UBRR0L (0xC3) Reserved - (0xC2) UCSR0C UMSEL01 (0xC1) UCSR0B RXCIE0 (0xC0) UCSR0A RXC0 ATmega164/324/644 8 Bit 6 Bit 5 Bit 4 Bit ...

Page 9

... Timer/Counter1 - Input Capture Register High Byte Timer/Counter1 - Input Capture Register Low Byte Timer/Counter1 - Counter Register High Byte Timer/Counter1 - Counter Register Low Byte - - - FOC1B - - ICES1 - WGM13 WGM12 COM1A0 COM1B1 COM1B0 - - - ADC6D ADC5D ADC4D ADC3D ATmega164/324/644 Bit 2 Bit 1 Bit TWAM1 TWAM0 - TWEN - TWIE TWA1 TWA0 TWGCE - TWPS1 TWPS0 ...

Page 10

... COM0A1 0x23 (0x43) GTCCR TSM 0x22 (0x42) EEARH - 0x21 (0x41) EEARL 0x20 (0x40) EEDR 0x1F (0x3F) EECR - 0x1E (0x3E) GPIOR0 0x1D (0x3D) EIMSK - 0x1C (0x3C) EIFR - ATmega164/324/644 10 Bit 6 Bit 5 Bit 4 Bit REFS0 ADLAR MUX4 MUX3 ACME - - - ADSC ADATE ADIF ADIE ADC Data Register High byte ...

Page 11

... When using the I/O specific commands IN and OUT, the I/O addresses $00 - $3F must be used. When addressing I/O regis- ters as data space using LD and ST instructions, $20 must be added to these addresses. The ATmega164/324/644 is a complex microcontroller with more peripheral units than can be supported within the 64 location reserved in Opcode for the IN and OUT instructions ...

Page 12

... Branch if T Flag Set BRTC k Branch if T Flag Cleared BRVS k Branch if Overflow Flag is Set BRVC k Branch if Overflow Flag is Cleared ATmega164/324/644 12 Description Rd ← ← Rdh:Rdl ← Rdh:Rdl + K Rd ← ← ← ← Rdh:Rdl ← Rdh:Rdl - K Rd ← ...

Page 13

... Rr (Z) ← Rr (Z) ← Rr, Z ← ← (Z) ← ← Rr (k) ← ← (Z) Rd ← (Z) Rd ← (Z), Z ← Z+1 R0 ← (RAMPZ:Z) Rd ← (Z) Rd ← (RAMPZ:Z), RAMPZ:Z ←RAMPZ:Z+1 (Z) ← R1:R0 ATmega164/324/644 Operation Flags #Clocks None None None None Z,C,N,V Z,C,N,V Z,C,N,V Z,C,N,V Z,C,N,V ...

Page 14

... Pop Register from Stack MCU CONTROL INSTRUCTIONS NOP No Operation SLEEP Sleep WDR Watchdog Reset BREAK Break ATmega164/324/644 14 Description Rd ← ← Rr STACK ← ← STACK (see specific descr. for Sleep function) (see specific descr. for WDR/timer) For On-chip Debug Only ...

Page 15

... Quad Flat No-Lead/Micro Lead Frame Package (QFN/MLF) 2593AS–AVR–06/05 Ordering Code Package (2) ATmega164V-10AU 44A (2) ATmega164V-10PU 40P6 (2) ATmega164V-10MU 44M1 (2) ATmega164-20AU 44A (2) ATmega164-20PU 40P6 (2) ATmega164-20MU 44M1 ” on page 310. CC Package Type ATmega164/324/644 (1) Operational Range Industrial ...

Page 16

... V CC 44A 44-lead, Thin (1.0 mm) Plastic Gull Wing Quad Flat Package (TQFP) 40P6 40-pin, 0.600” Wide, Plastic Dual Inline Package (PDIP) 44M1 44-pad 1.0 mm body, lead pitch 0.50 mm, Quad Flat No-Lead/Micro Lead Frame Package (QFN/MLF) ATmega164/324/644 16 Ordering Code Package (2) ATmega324V-10AU 44A (2) ...

Page 17

... Quad Flat No-Lead/Micro Lead Frame Package (QFN/MLF) 2593AS–AVR–06/05 Ordering Code Package (2) ATmega644V-10AU 44A (2) ATmega644V-10PU 40P6 (2) ATmega644V-10MU 44M1 (2) ATmega644-20AU 44A (2) ATmega644-20PU 40P6 (2) ATmega644-20MU 44M1 ” on page 310. CC Package Type ATmega164/324/644 (1) Operational Range Industrial Industrial ...

Page 18

... This package conforms to JEDEC reference MS-026, Variation ACB. 2. Dimensions D1 and E1 do not include mold protrusion. Allowable protrusion is 0.25 mm per side. Dimensions D1 and E1 are maximum plastic body size dimensions including mold mismatch. 3. Lead coplanarity is 0.10 mm maximum. 2325 Orchard Parkway San Jose, CA 95131 R ATmega164/324/644 18 B PIN 1 IDENTIFIER ...

Page 19

... Mold Flash or Protrusion shall not exceed 0.25 mm (0.010"). 2325 Orchard Parkway San Jose, CA 95131 R 2593AS–AVR–06/05 D PIN 0º ~ 15º REF eB TITLE 40P6, 40-lead (0.600"/15.24 mm Wide) Plastic Dual Inline Package (PDIP) ATmega164/324/644 E1 A1 COMMON DIMENSIONS (Unit of Measure = mm) MIN NOM SYMBOL A – – A1 0.381 – D 52.070 – ...

Page 20

... D Marked Pin TOP VIEW BOTTOM VIEW Note: JEDEC Standard MO-220, Fig. 1 (SAW Singulation) VKKD-3. 2325 Orchard Parkway San Jose, CA 95131 R ATmega164/324/644 20 E Pin #1 Corner Pin #1 Option A 1 Triangle 2 3 Option B Pin #1 Chamfer (C 0.30) Option C Pin #1 Notch e (0.20 R) TITLE 44M1, 44-pad ...

Page 21

... Errata ATmega164 Rev. A ATmega324 Rev. A ATmega644 Rev. A 2593AS–AVR–06/05 Not sampled. Not sampled. • EEPROM read from application code does not work in Lock Bit Mode 3. 1. EEPROM read from application code does not work in Lock Bit Mode 3 When the Memory Lock Bits LB2 and LB1 are programmed to mode 3, EEPROM read does not work from the application code ...

Page 22

... Datasheet Revision History Rev. 2593A-06/05 ATmega164/324/644 22 Please note that the referring page numbers in this section are referred to this docu- ment. The referring revision in this section are referring to the document revision. 1.Initial revision. 2593AS–AVR–06/05 ...

Page 23

Atmel Corporation 2325 Orchard Parkway San Jose, CA 95131, USA Tel: 1(408) 441-0311 Fax: 1(408) 487-2600 Regional Headquarters Europe Atmel Sarl Route des Arsenaux 41 Case Postale 80 CH-1705 Fribourg Switzerland Tel: (41) 26-426-5555 Fax: (41) 26-426-5500 Asia Room 1219 ...

Related keywords