ATmega164A

Manufacturer Part NumberATmega164A
ManufacturerAtmel Corporation
ATmega164A datasheets
 


Specifications of ATmega164A

Flash (kbytes)16 KbytesPin Count44
Max. Operating Frequency20 MHzCpu8-bit AVR
# Of Touch Channels16Hardware Qtouch AcquisitionNo
Max I/o Pins32Ext Interrupts32
Usb SpeedNoUsb InterfaceNo
Spi3Twi (i2c)1
Uart2Graphic LcdNo
Video DecoderNoCamera InterfaceNo
Adc Channels8Adc Resolution (bits)10
Adc Speed (ksps)15Analog Comparators1
Resistive Touch ScreenNoTemp. SensorNo
Crypto EngineNoSram (kbytes)1
Eeprom (bytes)512Self Program MemoryYES
Dram MemoryNoNand InterfaceNo
PicopowerNoTemp. Range (deg C)-40 to 85
I/o Supply Class1.8 to 5.5Operating Voltage (vcc)1.8 to 5.5
FpuNoMpu / Mmuno / no
Timers3Output Compare Channels6
Input Capture Channels1Pwm Channels6
32khz RtcYesCalibrated Rc OscillatorYes
1
Page 1
2
Page 2
3
Page 3
4
Page 4
5
Page 5
6
Page 6
7
Page 7
8
Page 8
9
Page 9
10
Page 10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Page 1/33

Download datasheet (582Kb)Embed
Next
Features
High-performance, Low-power Atmel
Advanced RISC Architecture
– 131 Powerful Instructions – Most Single-clock Cycle Execution
– 32 x 8 General Purpose Working Registers
– Fully Static Operation
– Up to 20MIPS Throughput at 20MHz
– On-chip 2-cycle Multiplier
High Endurance Non-volatile Memory segments
– 16/32/64/128KBytes of In-System Self-programmable Flash program memory
– 512/1K/2K/4KBytes EEPROM
– 1/2/4/16KBytes 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
®
QTouch
library support
– Capacitive touch buttons, sliders and wheels
– QTouch and QMatrix acquisition
– Up to 64 sense channels
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 Prescalers and Compare Modes
– One/two 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
– 44-pad DRQFN
– 49-ball VFBGA
Operating Voltages
– 1.8 - 5.5V
Speed Grades
– 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: 0.4mA
– Power-down Mode: 0.1µA
– Power-save Mode: 0.6µA (Including 32kHz RTC)
Note:
1. See
”Data Retention” on page 9
®
®
AVR
8-bit Microcontroller
(1)
for details.
8-bit Atmel
Microcontroller
with
16/32/64/128K
Bytes In-System
Programmable
Flash
ATmega164A
ATmega164PA
ATmega324A
ATmega324PA
ATmega644A
ATmega644PA
ATmega1284
ATmega1284P
Summary
8272CS–AVR–06/11

ATmega164A Summary of contents

  • Page 1

    ... Power-save Mode: 0.6µA (Including 32kHz RTC) Note: 1. See ”Data Retention” on page 9 ® ® AVR 8-bit Microcontroller (1) for details. 8-bit Atmel Microcontroller with 16/32/64/128K Bytes In-System Programmable Flash ATmega164A ATmega164PA ATmega324A ATmega324PA ATmega644A ATmega644PA ATmega1284 ATmega1284P Summary 8272CS–AVR–06/11 ...

  • Page 2

    ... Pin Configurations 1.1 Pinout - PDIP/TQFP/VQFN/QFN/MLF for Figure 1-1. Note: 8272CS–AVR–06/11 ATmega164A/PA/324A/PA/644A/PA/1284/P ATmega164A/164PA/324A/324PA/644A/644PA/1284/1284P Pinout (PCINT8/XCK0/T0) PB0 (PCINT9/CLKO/T1) PB1 (PCINT10/INT2/AIN0) PB2 (PCINT11/OC0A/AIN1) PB3 (PCINT12/OC0B/SS) PB4 (PCINT13/ICP3/MOSI) PB5 (PCINT14/OC3A/MISO) PB6 (PCINT15/OC3B/SCK) PB7 RESET VCC GND XTAL2 XTAL1 (PCINT24/RXD0/T3) PD0 (PCINT25/TXD0) PD1 ...

  • Page 3

    ... Pinout - DRQFN for ATmega164A/164PA/324A/324PA Figure 1- Table 1- 8272CS–AVR–06/11 ATmega164A/PA/324A/PA/644A/PA/1284/P DRQFN - Pinout Top view B1 B15 B2 B14 B3 B13 B4 B12 B5 B11 DRQFN - Pinout PB5 A7 PD3 PB6 B6 PD4 PB7 A8 PD5 RESET B7 PD6 VCC ...

  • Page 4

    ... Pinout - VFBGA for ATmega164A/164PA/324A/324PA Figure 1- Table 1- 8272CS–AVR–06/11 ATmega164A/PA/324A/PA/644A/PA/1284/P VFBGA - Pinout Top view BGA - Pinout GND PB4 PB2 PB6 PB5 PB3 VCC RESET PB7 GND XTAL2 PD0 ...

  • Page 5

    ... Overview The ATmega164A/164PA/324A/324PA/644A/644PA/1284/1284P is a low-power CMOS 8-bit microcontroller based on the AVR enhanced RISC architecture. By executing powerful instruc- tions in a single clock cycle, the ATmega164A/164PA/324A/324PA/644A/644PA/1284/1284P achieves throughputs approaching 1 MIPS per MHz allowing the system designer to optimize power consumption versus processing speed. 2.1 Block Diagram Figure 2-1 ...

  • Page 6

    ... Atmel ATmega164A/164PA/324A/324PA/644A/644PA/1284/1284P is a powerful microcon- troller that provides a highly flexible and cost effective solution to many embedded control applications. The ATmega164A/164PA/324A/324PA/644A/644PA/1284/1284P 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. ...

  • Page 7

    ... Comparison Between ATmega164A, ATmega164PA, ATmega324A, ATmega324PA, ATmega644A, ATmega644PA, ATmega1284 and ATmega1284P Table 2-1. Differences between ATmega164A, ATmega164PA, ATmega324A, ATmega324PA, ATmega644A, ATmega644PA, ATmega1284 and ATmega1284P Device Flash ATmega164A 16 K ATmega164PA 16 K ATmega324A 32 K ATmega324PA 32 K ATmega644A 64 K ATmega644PA 64 K ATmega1284 128 K ATmega1284P 128 K 2 ...

  • Page 8

    ... The Port C pins are tri-stated when a reset condition becomes active, even if the clock is not running. Port C also serves the functions of the JTAG interface, along with special features of the ATmega164A/164PA/324A/324PA/644A/644PA/1284/1284P as listed on 2.3.6 Port D (PD7:PD0) Port 8-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The Port D output buffers have symmetrical drive characteristics with both high sink and source capability ...

  • Page 9

    ... The QTouch Library is FREE and downloadable from the Atmel website at the following location: www.atmel.com/qtouchlibrary. For implementation details and other information, refer to the Atmel QTouch Library User Guide 8272CS–AVR–06/11 ATmega164A/PA/324A/PA/644A/PA/1284/P 1. ® ® QTouch Library provides a simple to use solution to realize touch sensitive inter- ® ...

  • Page 10

    ... RXCIE1 (0xC8) UCSR1A RXC1 (0xC7) Reserved - (0xC6) UDR0 (0xC5) UBRR0H - (0xC4) UBRR0L (0xC3) Reserved - (0xC2) UCSR0C UMSEL01 (0xC1) UCSR0B RXCIE0 8272CS–AVR–06/11 ATmega164A/PA/324A/PA/644A/PA/1284/P Bit 6 Bit 5 Bit 4 Bit ...

  • Page 11

    ... ICR1H (0x86) ICR1L (0x85) TCNT1H (0x84) TCNT1L (0x83) Reserved - (0x82) TCCR1C FOC1A (0x81) TCCR1B ICNC1 (0x80) TCCR1A COM1A1 (0x7F) DIDR1 - 8272CS–AVR–06/11 ATmega164A/PA/324A/PA/644A/PA/1284/P Bit 6 Bit 5 Bit 4 Bit 3 TXC0 UDRE0 FE0 DOR0 - - - - - - - - TWAM5 TWAM4 TWAM3 TWAM2 TWEA TWSTA ...

  • Page 12

    ... GTCCR TSM 0x22 (0x42) EEARH - 0x21 (0x41) EEARL 0x20 (0x40) EEDR 0x1F (0x3F) EECR - 0x1E (0x3E) GPIOR0 0x1D (0x3D) EIMSK - 8272CS–AVR–06/11 ATmega164A/PA/324A/PA/644A/PA/1284/P Bit 6 Bit 5 Bit 4 Bit 3 ADC6D ADC5D ADC4D ADC3D - - - - REFS0 ADLAR MUX4 MUX3 ACME - ...

  • Page 13

    ... 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 ATmega164A/164PA/324A/324PA/644A/644PA/1284/1284P 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. For the Extended I/O space from $60 - $FF, only the ST/STS/STD and LD/LDS/LDD instructions can be used ...

  • Page 14

    ... Branch if T Flag Set BRTC k Branch if T Flag Cleared BRVS k Branch if Overflow Flag is Set 8272CS–AVR–06/11 ATmega164A/PA/324A/PA/644A/PA/1284/P Description Rd ← ← Rdh:Rdl ← Rdh:Rdl + K Rd ← ← ← ← Rdh:Rdl ← Rdh:Rdl - K Rd ← ...

  • Page 15

    ... SPM Store Program Memory IN Rd Port OUT P, Rr Out Port 8272CS–AVR–06/11 ATmega164A/PA/324A/PA/644A/PA/1284/P Description then PC ← then PC ← then PC ← I/O(P,b) ← 1 I/O(P,b) ← 0 Rd(n+1) ← Rd(n), Rd(0) ← 0 Rd(n) ← Rd(n+1), Rd(7) ← 0 Rd(0)←C,Rd(n+1)← Rd(n),C←Rd(7) Rd(7)← ...

  • Page 16

    ... MCU CONTROL INSTRUCTIONS NOP No Operation SLEEP Sleep WDR Watchdog Reset BREAK Break 8272CS–AVR–06/11 ATmega164A/PA/324A/PA/644A/PA/1284/P Description STACK ← ← STACK (see specific descr. for Sleep function) (see specific descr. for WDR/timer) For On-chip Debug Only Operation Flags #Clocks ...

  • Page 17

    ... Array) 0.65 mm Pitch mm, Very Thin, Fine-Pitch Ball Grid Array Package (VFBGA) 8272CS–AVR–06/11 ATmega164A/PA/324A/PA/644A/PA/1284/P (2) Ordering Code ATmega164A-AU (5) ATmega164A-AUR ATmega164A-PU ATmega164A-MU (5) ATmega164A-MUR (4) ATmega164A-MCH (4)(5) ATmega164A-MCHR ATmega164A-CU (5) ATmega164A-CUR 335. Package Type (1) Package Operational Range 44A 44A ...

  • Page 18

    ... Staggered 1.0 mm body, 2.60 x 2.60 mm Exposed Pad, Quad Flat No-Lead Package (QFN) 49C2 49-ball Array) 0.65 mm Pitch mm, Very Thin, Fine-Pitch Ball Grid Array Package (VFBGA) 8272CS–AVR–06/11 ATmega164A/PA/324A/PA/644A/PA/1284/P (2) Ordering Code ATmega164PA-AU (5) ...

  • Page 19

    ... Staggered 1.0 mm body, 2.60 x 2.60 mm Exposed Pad, Quad Flat No-Lead Package (QFN) 49C2 49-ball Array) 0.65 mm Pitch mm, Very Thin, Fine-Pitch Ball Grid Array Package (VFBGA) 8272CS–AVR–06/11 ATmega164A/PA/324A/PA/644A/PA/1284/P (2) Ordering Code ATmega324A-AU (5) ...

  • Page 20

    ... Staggered 1.0 mm body, 2.60 x 2.60 mm Exposed Pad, Quad Flat No-Lead Package (QFN) 49C2 49-ball Array) 0.65 mm Pitch mm, Very Thin, Fine-Pitch Ball Grid Array Package (VFBGA) 8272CS–AVR–06/11 ATmega164A/PA/324A/PA/644A/PA/1284/P (2) Ordering Code ATmega324PA-AU (5) ...

  • Page 21

    ... 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, Thermally Enhanced Plastic Very Thin Quad Flat No-Lead (VQFN) 8272CS–AVR–06/11 ATmega164A/PA/324A/PA/644A/PA/1284/P (2) Ordering Code ATmega644A-AU (4) ATmega644A-AUR ...

  • Page 22

    ... 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, Thermally Enhanced Plastic Very Thin Quad Flat No-Lead (VQFN) 8272CS–AVR–06/11 ATmega164A/PA/324A/PA/644A/PA/1284/P (2) Ordering Code ATmega644PA-AU (4) ATmega644PA-AUR ...

  • Page 23

    ... 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) 8272CS–AVR–06/11 ATmega164A/PA/324A/PA/644A/PA/1284/P (2) Ordering Code ATmega1284-AU (4) ATmega1284-AUR ...

  • Page 24

    ... 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) 8272CS–AVR–06/11 ATmega164A/PA/324A/PA/644A/PA/1284/P (2) Ordering Code ATmega1284P-AU (4) ATmega1284P-AUR ...

  • Page 25

    ... 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 8272CS–AVR–06/11 ATmega164A/PA/324A/PA/644A/PA/1284/P PIN 0°~7° A1 ...

  • Page 26

    ... This package conforms to JEDEC reference MS-011, Variation AC. 2. Dimensions D and E1 do not include mold Flash or Protrusion. Mold Flash or Protrusion shall not exceed 0.25 mm (0.010"). 2325 Orchard Parkway San Jose, CA 95131 R 8272CS–AVR–06/11 ATmega164A/PA/324A/PA/644A/PA/1284/P D PIN 0º ~ 15º ...

  • Page 27

    ... D Marked Pin TOP VIEW BOTTOM VIEW Note: JEDEC Standard MO-220, Fig. 1 (SAW Singulation) VKKD-3. Package Drawing Contact: packagedrawings@atmel.com 8272CS–AVR–06/11 ATmega164A/PA/324A/PA/644A/PA/1284/P E Pin #1 Corner Pin #1 Option A 1 Triangle 2 3 Option B Pin #1 Chamfer (C 0.30) Option C Pin #1 ...

  • Page 28

    ... Pin A19 B16 eR A18 B15 D2 B11 A13 B10 A12 L BOTTOM VIEW 1. The terminal # Laser-marked Feature. Note: Package Drawing Contact: packagedrawings@atmel.com 8272CS–AVR–06/11 ATmega164A/PA/324A/PA/644A/PA/1284/P E TOP VIEW eT/2 A24 B20 0.40 R0. TITLE 44MC, 44QFN (2-Row Staggered ...

  • Page 29

    ... A1 BALL BALL CORNER b Package Drawing Contact: packagedrawings@atmel.com 8272CS–AVR–06/11 ATmega164A/PA/324A/PA/644A/PA/1284 TOP VIEW 0.35 ± 0.05 Ø e BOTTOM VIEW TITLE 49C2, 49-ball ( Array), 0.65 mm Pitch, 5.0 x 5.0 x 1.0 mm, Very Thin, Fine-Pitch Ball Grid Array Package (VFBGA) 0 ...

  • Page 30

    ... Errata 11.1 Errata for ATmega164A 11.1.1 Rev known Errata. 11.2 Errata for ATmega164PA 11.2.1 Rev known Errata. 11.3 Errata for ATmega324A 11.3.1 Rev known Errata. 11.4 Errata for ATmega324PA 11.4.1 Rev known Errata. 11.5 Errata for ATmega644A 11.5.1 Rev known Errata. 11.6 Errata for ATmega644PA 11.6.1 Rev known Errata. ...

  • Page 31

    ... ATmega164A/PA/324A/PA/644A/PA/1284/P Updated ”ATmega1284P DC Characteristics” on page Added Atmel QTouch Library Support and QTouch Sensing Capability Features. Replaced Figure 1-1 on page updated Replaced Figure 7-1 on page updated includes Timer/Counter3. Added ”RAMPZ – Extended Z-pointer Register for ELPM/SPM Added ” ...

  • Page 32

    ... Typical Characteristics” on page 449 – Added ”ATmega1284 Typical Characteristics” on page 501 – Added ”Ordering Information” on page 17 – Added ”Errata for ATmega164A” on page 30 – Added ”Errata for ATmega324A” on page 30 – Added ”Errata for ATmega644PA” on page 30 – Added ” ...

  • Page 33

    ... Atmel , Atmel logo and combinations thereof, AVR marks of Atmel Corporation or its subsidiaries. Windows other countries. Other terms and product names may be trademarks of others. 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 THE ATMEL ...