ATmega329A

Manufacturer Part NumberATmega329A
ManufacturerAtmel Corporation
ATmega329A datasheets
 

Specifications of ATmega329A

Flash (kbytes)32 KbytesPin Count64
Max. Operating Frequency20 MHzCpu8-bit AVR
# Of Touch Channels16Hardware Qtouch AcquisitionNo
Max I/o Pins54Ext Interrupts17
Usb SpeedNoUsb InterfaceNo
Spi2Twi (i2c)1
Uart1Segment Lcd100
Graphic LcdNoVideo DecoderNo
Camera InterfaceNoAdc Channels8
Adc Resolution (bits)10Adc Speed (ksps)15
Analog Comparators1Resistive Touch ScreenNo
Temp. SensorNoCrypto EngineNo
Sram (kbytes)2Eeprom (bytes)1024
Self Program MemoryYESDram MemoryNo
Nand InterfaceNoPicopowerNo
Temp. Range (deg C)-40 to 85I/o Supply Class1.8 to 5.5
Operating Voltage (vcc)1.8 to 5.5FpuNo
Mpu / Mmuno / noTimers3
Output Compare Channels4Input Capture Channels1
Pwm Channels432khz RtcYes
Calibrated 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
34
35
36
37
Page 1/37

Download datasheet (959Kb)Embed
Next
Features
®
High Performance, Low Power Atmel
Advanced RISC Architecture
– 130 Powerful Instructions – Most Single Clock Cycle Execution
– 32 x 8 General Purpose Working Registers
– Fully Static Operation
– Up to 16MIPS Throughput at16MHz (ATmega169A/169PA/649A/649P)
– Up to 20 MIPS Throughput at 20MHz (ATmega329A/329PA/3290A/3290PA/6490A/6490P)
– On-Chip 2-cycle Multiplier
High Endurance Non-volatile Memory segments
– In-System Self-programmable Flash Program Memory
• 16Kbytes (ATmega169A/ATmega169PA)
• 32Kbytes (ATmega329A/ATmega329PA/ATmega3290A/ATmega3290PA)
• 64Kbytes (ATmega649A/ATmega649P/ATmega6490A/ATmega6490P)
– EEPROM
• 512bytes (ATmega169A/ATmega169PA)
• 1Kbytes (ATmega329A/ATmega329PA/ATmega3290A/ATmega3290PA)
• 2Kbytes (ATmega649A/ATmega649P/ATmega6490A/ATmega6490P)
– Internal SRAM
• 1Kbytes (ATmega169A/ATmega169PA)
• 2Kbytes (ATmega329A/ATmega329PA/ATmega3290A/ATmega3290PA)
• 4Kbytes (ATmega649A/ATmega649P/ATmega6490A/ATmega6490P)
– Write/Erase cyles: 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
– 4 x 25 Segment LCD Driver
(ATmega169A/ATmega169PA/ATmega329A/ATmega329PA/ATmega649A/ATmega649P)
– 4 x 40 Segment LCD Driver (ATmega3290A/ATmega3290PA/ATmega6490A/ATmega6490P)
– 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
– Four PWM Channels
– 8-channel, 10-bit ADC
– Programmable Serial USART
– Master/Slave SPI Serial Interface
– Universal Serial Interface with Start Condition Detector
– 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 Oscillator
– External and Internal Interrupt Sources
– Five Sleep Modes: Idle, ADC Noise Reduction, Power-save, Power-down, and Standby
I/O and Packages
– 54/69 Programmable I/O Lines
– 64/100-lead TQFP, 64-pad QFN/MLF, and 64-pad DRQFN
Speed Grade:
– ATmega169A/169PA/649A/649P:
• 0 - 16MHz @ 1.8 - 5.5V,
– ATmega3290A/3290PA/6490A/6490P:
• 0 - 20MHz @ 1.8 - 5.5V,
Temperature range:
– -40°C to 85°C Industrial
Ultra-Low Power Consumption (picoPower devices)
– Active mode:
• 1MHz, 1.8V: 215µA
• 32kHz, 1.8V: 8µA (including Oscillator)
• 32kHz, 1.8V: 25µA (including Oscillator and LCD)
– Power-down Mode:
• 0.1µA at 1.8V
– Power-save Mode:
• 0.6µA at 1.8V (Including 32kHz RTC)
• 750nA at 1.8V
®
AVR
8-Bit Microcontroller
(1)
8-bit Atmel
Microcontroller
with 16/32/64K
Bytes In-System
Programmable
Flash
ATmega169A
ATmega169PA
ATmega329A
ATmega329PA
ATmega649A
ATmega649P
ATmega3290A
ATmega3290PA
ATmega6490A
ATmega6490P
Summary
8284DS–AVR–6/11

ATmega329A Summary of contents

  • Page 1

    ... Powerful Instructions – Most Single Clock Cycle Execution – General Purpose Working Registers – Fully Static Operation – 16MIPS Throughput at16MHz (ATmega169A/169PA/649A/649P) – MIPS Throughput at 20MHz (ATmega329A/329PA/3290A/3290PA/6490A/6490P) – On-Chip 2-cycle Multiplier • High Endurance Non-volatile Memory segments – ...

  • Page 2

    ... ATmega169A/PA/329A/PA/3290A/PA/649A/P/6490A/P 1. Pin Configurations 1.1 Pinout - 64A (TQFP) and 64M1 (QFN/MLF) Figure 1-1. Pinout ATmega169A/ATmega169PA/ATmega329A/ATmega329PA/ATmega649A/ATmega649P LCDCAP 1 (RXD/PCINT0) PE0 2 (TXD/PCINT1) PE1 3 (XCK/AIN0/PCINT2) PE2 4 (AIN1/PCINT3) PE3 5 (USCK/SCL/PCINT4) PE4 6 (DI/SDA/PCINT5) PE5 7 (DO/PCINT6) PE6 8 (CLKO/PCINT7) PE7 9 (SS/PCINT8) PB0 10 (SCK/PCINT9) PB1 11 (MOSI/PCINT10) PB2 12 (MISO/PCINT11) PB3 ...

  • Page 3

    ATmega169A/PA/329A/PA/3290A/PA/649A/P/6490A/P 1.2 Pinout - 100A (TQFP) Figure 1-2. Pinout ATmega3290A/ATmega3290PA/ATmega6490A/ATmega6490P 1 LCDCAP 2 (RXD/PCINT0) PE0 3 (TXD/PCINT1) PE1 4 (XCK/AIN0/PCINT2) PE2 5 (AIN1/PCINT3) PE3 (USCK/SCL/PCINT4) PE4 6 (DI/SDA/PCINT5) PE5 7 8 (DO/PCINT6) PE6 9 (CLKO/PCINT7) PE7 10 VCC 11 GND ...

  • Page 4

    ATmega169A/PA/329A/PA/3290A/PA/649A/P/6490A/P 1.3 Pinout - 64MC (DRQFN) Figure 1-3. Table 1-1. A1 PE0 A9 B1 VLCDCAP B8 A2 PE1 A10 B2 PE2 B9 A3 PE3 A11 B3 PE4 B10 A4 PE5 A12 B4 PE6 B11 A5 PE7 A13 B5 PB0 B12 ...

  • Page 5

    ATmega169A/PA/329A/PA/3290A/PA/649A/P/6490A/P 2. Overview The ATmega169A/169PA/329A/329PA/3290A/3290PA/649A/649P/6490A/6490P is a low-power CMOS 8-bit microcon- troller based on the Atmel AVR ® ® the ATmega169A/169PA/329A/329PA/3290A/3290PA/649A/649P/6490A/6490P achieves throughputs approaching 1 MIPS per MHz allowing the system designer to optimize power consumption versus processing speed. 2.1 ...

  • Page 6

    ATmega169A/PA/329A/PA/3290A/PA/649A/P/6490A/P architecture is more code efficient while achieving throughputs up to ten times faster than con- ventional CISC microcontrollers. The ATmega169A/169PA/329A/329PA/3290A/3290PA/649A/649P/6490A/6490P provides the following features: 16K/32K/64K bytes of In-System Programmable Flash with Read-While-Write capabilities, 512/1K/2K bytes EEPROM, 1K/2K/4K byte SRAM, ...

  • Page 7

    ... ATmega169A/PA/329A/PA/3290A/PA/649A/P/6490A/P 2.2 Comparison Between ATmega169A/169PA/329A/329PA/649A/649P/3290A/3290PA/6490A/6490P Table 2-1. Differences between: ATmega169A/169PA/329A/329PA/649A/649P/3290A/3290PA/6490A/6490P Device Flash ATmega169A 16Kbyte ATmega169PA 16Kbyte ATmega329A 32Kbyte ATmega329PA 32Kbyte ATmega3290A 32Kbytes ATmega3290PA 32Kbyte ATmega649A 64Kbyte ATmega649P 64Kbyte ATmega6490A 64Kbyte ATmega6490P 64Kbyte 8284DS–AVR–6/11 EEPROM RAM 512Bytes 1Kbyte ...

  • Page 8

    ATmega169A/PA/329A/PA/3290A/PA/649A/P/6490A/P 2.3 Pin Descriptions The following section describes the I/O-pin special functions. 2.3 Digital supply voltage. 2.3.2 GND Ground. 2.3.3 Port A (PA7...PA0) Port 8-bit bi-directional I/O port with internal pull-up resistors (selected for each ...

  • Page 9

    ATmega169A/PA/329A/PA/3290A/PA/649A/P/6490A/P Port D also serves the functions of various special features of the ATmega169A/169PA/329A/329PA/3290A/3290PA/649A/649P/6490A/6490P as listed on 79. 2.3.7 Port E (PE7...PE0) Port 8-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The Port ...

  • Page 10

    ATmega169A/PA/329A/PA/3290A/PA/649A/P/6490A/P bility. As inputs, Port J pins that are externally pulled low will source current if the pull-up resistors are activated. The Port J pins are tri-stated when a reset condition becomes active, even if the clock is not running. ...

  • Page 11

    ATmega169A/PA/329A/PA/3290A/PA/649A/P/6490A/P 3. Resources A comprehensive set of development tools, application notes and datasheets are available for download on http://www.atmel.com/avr. Note: 4. Data Retention Reliability Qualification results show that the projected data retention failure rate is much less than 1 PPM ...

  • Page 12

    ATmega169A/PA/329A/PA/3290A/PA/649A/P/6490A/P 7. Register Summary Note: Address Name Bit 7 LCDDR19 SEG339 (0xFF) LCDDR18 SEG331 (0xFE) LCDDR17 SEG323 (0xFD) LCDDR16 SEG315 (0xFC) LCDDR15 SEG307 (0xFB) LCDDR14 SEG239 (0xFA) LCDDR13 SEG231 (0xF9) LCDDR12 SEG223 (0xF8) LCDDR11 SEG215 (0xF7) LCDDR10 SEG207 (0xF6) LCDDR09 ...

  • Page 13

    ATmega169A/PA/329A/PA/3290A/PA/649A/P/6490A/P Address Name Bit 7 UBRR0L (0xC4) Reserved - (0xC3) UCSR0C - (0xC2) UCSR0B RXCIE0 (0xC1) UCSR0A RXC0 (0xC0) Reserved - (0xBF) Reserved - (0xBE) Reserved - (0xBD) Reserved - (0xBC) Reserved - (0xBB) USIDR (0xBA) USISR USISIF (0xB9) USICR ...

  • Page 14

    ATmega169A/PA/329A/PA/3290A/PA/649A/P/6490A/P Address Name Bit 7 TCNT1H (0x85) TCNT1L (0x84) Reserved - (0x83) TCCR1C FOC1A (0x82) TCCR1B ICNC1 (0x81) TCCR1A COM1A1 (0x80) DIDR1 - (0x7F) DIDR0 ADC7D (0x7E) Reserved - (0x7D) ADMUX REFS1 (0x7C) ADCSRB - (0x7B) ADCSRA ADEN (0x7A) ADCH ...

  • Page 15

    ATmega169A/PA/329A/PA/3290A/PA/649A/P/6490A/P Address Name Bit 7 TCNT0 0x26 (0x46) Reserved - 0x25 (0x45) TCCR0A FOC0A 0x24 (0x44) GTCCR TSM 0x23 (0x43) EEARH - 0x22 (0x42) EEARL 0x21 (0x41) EEDR 0x20 (0x40) EECR - 0x1F (0x3F) GPIOR0 0x1E (0x3E) EIMSK PCIE 0x1D ...

  • Page 16

    ATmega169A/PA/329A/PA/3290A/PA/649A/P/6490A/P 8. Instruction Set Summary Mnemonics Operands ARITHMETIC AND LOGIC INSTRUCTIONS ADD Rd, Rr Add two Registers ADC Rd, Rr Add with Carry two Registers ADIW Rdl,K Add Immediate to Word SUB Rd, Rr Subtract two Registers SUBI Rd, K ...

  • Page 17

    ATmega169A/PA/329A/PA/3290A/PA/649A/P/6490A/P Mnemonics Operands BRVC k Branch if Overflow Flag is Cleared BRIE k Branch if Interrupt Enabled BRID k Branch if Interrupt Disabled BIT AND BIT-TEST INSTRUCTIONS SBI P,b Set Bit in I/O Register CBI P,b Clear Bit in I/O ...

  • Page 18

    ATmega169A/PA/329A/PA/3290A/PA/649A/P/6490A/P Mnemonics Operands PUSH Rr Push Register on Stack POP Rd Pop Register from Stack MCU CONTROL INSTRUCTIONS NOP No Operation SLEEP Sleep WDR Watchdog Reset BREAK Break 8284DS–AVR–6/11 Description STACK ← ← STACK (see specific descr. for ...

  • Page 19

    ATmega169A/PA/329A/PA/3290A/PA/649A/P/6490A/P 9. Ordering Information 9.1 ATmega169A (3) Speed (MHz) Power Supply 16 1.8 - 5.5V Notes: 1. This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information and minimum quantities. ...

  • Page 20

    ATmega169A/PA/329A/PA/3290A/PA/649A/P/6490A/P 9.2 ATmega169PA (3) Speed (MHz) Power Supply 16 1.8 - 5.5V Notes: 1. This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information and minimum quantities. 2. Pb-free packaging, ...

  • Page 21

    ... Thin Profile Plastic Quad Flat Package (TQFP) 64M1 64-pad 1.0mm, Quad Flat No-Lead/Micro Lead Frame Package (QFN/MLF) 8284DS–AVR–6/11 (2) Ordering Code ATmega329A-AU 64A (4) ATmega329A-AUR 64A ATmega329A-MU 64M1 (4) ATmega329A-MUR 64M1 351. Package Type (1) Package Type Operational Range Industrial 0°C to 85°C) (-4 35 ...

  • Page 22

    ATmega169A/PA/329A/PA/3290A/PA/649A/P/6490A/P 9.4 ATmega329PA (3) Speed (MHz) Power Supply 20 1.8 - 5.5V Notes: 1. This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information and minimum quantities. 2. Pb-free packaging ...

  • Page 23

    ATmega169A/PA/329A/PA/3290A/PA/649A/P/6490A/P 9.5 ATmega3290A (3) Speed (MHz) Power Supply 20 1.8 - 5.5V Notes: 1. This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information and minimum quantities. 2. Pb-free packaging ...

  • Page 24

    ATmega169A/PA/329A/PA/3290A/PA/649A/P/6490A/P 9.6 ATmega3290PA (3) Speed (MHz) Power Supply 20 1.8 - 5.5V Notes: 1. This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information and minimum quantities. 2. Pb-free packaging ...

  • Page 25

    ATmega169A/PA/329A/PA/3290A/PA/649A/P/6490A/P 9.7 ATmega649A (3) Speed (MHz) Power Supply 16 1.8 - 5.5V Notes: 1. This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information and minimum quantities. 2. Pb-free packaging ...

  • Page 26

    ATmega169A/PA/329A/PA/3290A/PA/649A/P/6490A/P 9.8 ATmega649P (3) Speed (MHz) Power Supply 16 1.8 - 5.5 V Notes: 1. This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information and minimum quantities. 2. Pb-free ...

  • Page 27

    ATmega169A/PA/329A/PA/3290A/PA/649A/P/6490A/P 9.9 ATmega6490A (3) Speed (MHz) Power Supply 20 1.8 - 5.5V Notes: 1. This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information and minimum quantities. 2. Pb-free packaging ...

  • Page 28

    ATmega169A/PA/329A/PA/3290A/PA/649A/P/6490A/P 9.10 ATmega6490P (3) Speed (MHz) Power Supply 20 1.8 - 5.5V Notes: 1. This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information and minimum quantities. 2. Pb-free packaging ...

  • Page 29

    ATmega169A/PA/329A/PA/3290A/PA/649A/P/6490A/P 10. Packaging Information 10.1 64A PIN 1 PIN 0°~7° 0°~7° Notes: Notes: 1.This package conforms to JEDEC reference MS-026, Variation AEB. 1.This package conforms to JEDEC reference MS-026, Variation AEB. 2. Dimensions D1 and ...

  • Page 30

    ATmega169A/PA/329A/PA/3290A/PA/649A/P/6490A/P 10.2 64M1 D Marked Pin Marked Pin TOP VIEW TOP VIEW BOTTOM VIEW BOTTOM VIEW Notes: Notes: 1. JEDEC Standard MO-220, (SAW Singulation) Fig. ...

  • Page 31

    ATmega169A/PA/329A/PA/3290A/PA/649A/P/6490A/P 10.3 64MC Pin TOP VIEW eT/2 A26 B23 A25 B22 D2 B16 A18 B15 A17 L E2 BOTTOM VIEW Note: 1. The terminal # Laser-marked Feature. Package Drawing Contact: packagedrawings@atmel.com 8284DS–AVR–6/ ...

  • Page 32

    ATmega169A/PA/329A/PA/3290A/PA/649A/P/6490A/P 10.4 100A PIN 0°~7° L Notes: 1. This package conforms to JEDEC reference MS-026, Variation AED. 2. Dimensions D1 and E1 do not include mold protrusion. Allowable protrusion is 0.25 mm per side. Dimensions D1 and ...

  • Page 33

    ... BOD reset will be generated at wakeup and the chip will reset. Problem Fix/Workaround Do not use BOD disable 11.5 ATmega329A/329PA rev. B • Interrupts may be lost when writing the timer registers in the asynchronous timer 1. Interrupts may be lost when writing the timer registers in the asynchronous timer The interrupt will be lost if a timer register that is synchronous timer clock is written when the asynchronous Timer/Counter register (TCNTx) is 0x00 ...

  • Page 34

    ... ATmega169A/PA/329A/PA/3290A/PA/649A/P/6490A/P 11.6 ATmega329A/329PA rev. C • Interrupts may be lost when writing the timer registers in the asynchronous timer 1. Interrupts may be lost when writing the timer registers in the asynchronous timer The interrupt will be lost if a timer register that is synchronous timer clock is written when the asynchronous Timer/Counter register (TCNTx) is 0x00 ...

  • Page 35

    ATmega169A/PA/329A/PA/3290A/PA/649A/P/6490A/P 11.9 ATmega3290A/3290PA rev. C • Interrupts may be lost when writing the timer registers in the asynchronous timer 1. Interrupts may be lost when writing the timer registers in the asynchronous timer The interrupt will be lost if a ...

  • Page 36

    ATmega169A/PA/329A/PA/3290A/PA/649A/P/6490A/P 12. Datasheet Revision History Please note that the referring page numbers in this section are referring to this document.The referring revision in this section are referring to the document revision. 12.1 Rev. 8284D - 06/ 12.2 Rev. ...

  • Page 37

    ... 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 ...