ATMEGA640-16AU Atmel, ATMEGA640-16AU Datasheet

IC MCU AVR 64K FLASH 100-TQFP

ATMEGA640-16AU

Manufacturer Part Number
ATMEGA640-16AU
Description
IC MCU AVR 64K FLASH 100-TQFP
Manufacturer
Atmel
Series
AVR® ATmegar
Datasheets

Specifications of ATMEGA640-16AU

Core Processor
AVR
Core Size
8-Bit
Speed
16MHz
Connectivity
EBI/EMI, I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
86
Program Memory Size
64KB (32K x 16)
Program Memory Type
FLASH
Eeprom Size
4K x 8
Ram Size
8K x 8
Voltage - Supply (vcc/vdd)
2.7 V ~ 5.5 V
Data Converters
A/D 16x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
100-TQFP, 100-VQFP
Processor Series
ATMEGA64x
Core
AVR8
Data Bus Width
8 bit
Data Ram Size
8 KB
Interface Type
2-Wire/SPI/USART
Maximum Clock Frequency
16 MHz
Number Of Programmable I/os
86
Number Of Timers
6
Operating Supply Voltage
4.5 V to 5.5 V
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
3rd Party Development Tools
EWAVR, EWAVR-BL
Development Tools By Supplier
ATAVRDRAGON, ATSTK500, ATSTK600, ATAVRISP2, ATAVRONEKIT
Minimum Operating Temperature
- 40 C
On-chip Adc
16-ch x 10-bit
Cpu Family
ATmega
Device Core
AVR
Device Core Size
8b
Frequency (max)
16MHz
Total Internal Ram Size
8KB
# I/os (max)
86
Number Of Timers - General Purpose
6
Operating Supply Voltage (typ)
3.3/5V
Operating Supply Voltage (max)
5.5V
Operating Supply Voltage (min)
2.7V
Instruction Set Architecture
RISC
Operating Temp Range
-40C to 85C
Operating Temperature Classification
Industrial
Mounting
Surface Mount
Pin Count
100
Package Type
TQFP
Controller Family/series
AVR MEGA
No. Of I/o's
86
Eeprom Memory Size
4KB
Ram Memory Size
8KB
Cpu Speed
16MHz
Rohs Compliant
Yes
For Use With
ATSTK600-TQFP100 - STK600 SOCKET/ADAPTER 100-TQFP770-1007 - ISP 4PORT ATMEL AVR MCU SPI/JTAG770-1005 - ISP 4PORT FOR ATMEL AVR MCU JTAG770-1004 - ISP 4PORT FOR ATMEL AVR MCU SPIATAVRISP2 - PROGRAMMER AVR IN SYSTEMATSTK503 - STARTER KIT AVR EXP MODULE 100P
Lead Free Status / RoHS Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATMEGA640-16AU
Manufacturer:
OSRAM
Quantity:
12 000
Part Number:
ATMEGA640-16AU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATMEGA640-16AU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATMEGA640-16AU
Quantity:
80
Part Number:
ATMEGA640-16AUR
Manufacturer:
Atmel
Quantity:
10 000
Features
High Performance, Low Power Atmel
Advanced RISC Architecture
High Endurance Non-volatile Memory Segments
JTAG (IEEE std. 1149.1 compliant) Interface
Peripheral Features
Special Microcontroller Features
I/O and Packages
Temperature Range:
Ultra-Low Power Consumption
Speed Grade:
– 135 Powerful Instructions – Most Single Clock Cycle Execution
– 32 × 8 General Purpose Working Registers
– Fully Static Operation
– Up to 16 MIPS Throughput at 16 MHz
– On-Chip 2-cycle Multiplier
– 64K/128K/256K Bytes of In-System Self-Programmable Flash
– 4 Kbytes EEPROM
– 8 Kbytes 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
– 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 Prescaler and Compare Mode
– Four 16-bit Timer/Counter with Separate Prescaler, Compare- and Capture Mode
– Real Time Counter with Separate Oscillator
– Four 8-bit PWM Channels
– Six/Twelve PWM Channels with Programmable Resolution from 2 to 16 Bits
– Output Compare Modulator
– 8/16-channel, 10-bit ADC (ATmega1281/2561, ATmega640/1280/2560)
– Two/Four Programmable Serial USART (ATmega1281/2561, ATmega640/1280/2560)
– Master/Slave SPI Serial Interface
– Byte Oriented 2-wire 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 Oscillator
– External and Internal Interrupt Sources
– Six Sleep Modes: Idle, ADC Noise Reduction, Power-save, Power-down, Standby,
– 54/86 Programmable I/O Lines (ATmega1281/2561, ATmega640/1280/2560)
– 64-pad QFN/MLF, 64-lead TQFP (ATmega1281/2561)
– 100-lead TQFP, 100-ball CBGA (ATmega640/1280/2560)
– RoHS/Fully Green
– -40°C to 85°C Industrial
– Active Mode: 1 MHz, 1.8V: 500 µA
– Power-down Mode: 0.1 µA at 1.8V
– ATmega640V/ATmega1280V/ATmega1281V:
– ATmega2560V/ATmega2561V:
– ATmega640/ATmega1280/ATmega1281:
– ATmega2560/ATmega2561:
(ATmega1281/2561, ATmega640/1280/2560)
and Extended Standby
• In-System Programming by On-chip Boot Program
• True Read-While-Write Operation
• Endurance: Up to 64 Kbytes Optional External Memory Space
• 0 - 4 MHz @ 1.8V - 5.5V, 0 - 8 MHz @ 2.7V - 5.5V
• 0 - 2 MHz @ 1.8V - 5.5V, 0 - 8 MHz @ 2.7V - 5.5V
• 0 - 8 MHz @ 2.7V - 5.5V, 0 - 16 MHz @ 4.5V - 5.5V
• 0 - 16 MHz @ 4.5V - 5.5V
®
AVR
®
8-Bit Microcontroller
8-bit
Microcontroller
with
64K/128K/256K
Bytes In-System
Programmable
Flash
ATmega640/V
ATmega1280/V
ATmega1281/V
ATmega2560/V
ATmega2561/V
Preliminary
Summary
2549MS–AVR–09/10

Related parts for ATMEGA640-16AU

ATMEGA640-16AU Summary of contents

Page 1

... Six/Twelve PWM Channels with Programmable Resolution from Bits (ATmega1281/2561, ATmega640/1280/2560) – Output Compare Modulator – 8/16-channel, 10-bit ADC (ATmega1281/2561, ATmega640/1280/2560) – Two/Four Programmable Serial USART (ATmega1281/2561, ATmega640/1280/2560) – Master/Slave SPI Serial Interface – Byte Oriented 2-wire Serial Interface – Programmable Watchdog Timer with Separate On-chip Oscillator – ...

Page 2

... Pin Configurations Figure 1-1. TQFP-pinout ATmega640/1280/2560 100 (OC0B) PG5 1 (RXD0/PCINT8) PE0 2 (TXD0) PE1 3 (XCK0/AIN0) PE2 4 (OC3A/AIN1) PE3 5 (OC3B/INT4) PE4 6 (OC3C/INT5) PE5 7 (T3/INT6) PE6 8 (CLKO/ICP3/INT7) PE7 9 VCC 10 GND 11 (RXD2) PH0 12 (TXD2) PH1 13 (XCK2) PH2 14 (OC4A) PH3 15 (OC4B) PH4 16 (OC4C) PH5 17 (OC2B) PH6 ...

Page 3

... Figure 1-2. CBGA-pinout ATmega640/1280/2560 Top view Table 1- Note: 2549MS–AVR–09/10 ATmega640/1280/1281/2560/2561 CBGA-pinout ATmega640/1280/2560 GND AREF PF0 PF2 AVCC PG5 PF1 PF3 PE2 PE0 PE1 PF4 PE3 PE4 PE5 PE6 PE7 PH0 PH1 PH3 VCC PH4 PH6 PB0 GND PB1 PB2 ...

Page 4

... PCINT5 ) PB5 16 (OC1B/ PCINT6 ) PB6 Note: 2549MS–AVR–09/10 ATmega640/1280/1281/2560/2561 INDEX CORNER ATmega1281/2561 The large center pad underneath the QFN/MLF package is made of metal and internally con- nected to GND. It should be soldered or glued to the board to ensure good mechanical stability. If the center pad is left unconnected, the package might loosen from the board. ...

Page 5

... Overview The ATmega640/1280/1281/2560/2561 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 ATmega640/1280/1281/2560/2561 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

... RISC CPU with In-System Self-Programmable Flash on a monolithic chip, the Atmel ATmega640/1280/1281/2560/2561 is a powerful microcontroller that provides a highly flexible and cost effective solution to many embedded control applications. The ATmega640/1280/1281/2560/2561 AVR is supported with a full suite of program and sys debugger/simulators, in-circuit emulators, and evaluation kits. ...

Page 7

... Comparison Between ATmega1281/2561 and ATmega640/1280/2560 Each device in the ATmega640/1280/1281/2560/2561 family differs only in memory size and number of pins. Table 2-1. Configuration Summary Device Flash EEPROM ATmega640 64KB ATmega1280 128KB ATmega1281 128KB ATmega2560 256KB ATmega2561 256KB 2.3 Pin Descriptions 2.3.1 VCC Digital supply voltage. ...

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 special features of the ATmega640/1280/1281/2560/2561 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

... As inputs, Port L pins that are externally pulled low will source current if the pull-up resistors are activated. The Port L pins are tri-stated when a reset condition becomes active, even if the clock is not running. Port L also serves the functions of various special features of the ATmega640/1280/2560 as listed on 2.3.14 RESET Reset input ...

Page 10

... AVCC is the supply voltage pin for Port F and the A/D Converter. It should be externally con- nected to V through a low-pass filter. 2.3.18 AREF This is the analog reference pin for the A/D Converter. 2549MS–AVR–09/10 ATmega640/1280/1281/2560/2561 , even if the ADC is not used. If the ADC is used, it should be connected ...

Page 11

... I/O. Typically "LDS" and "STS" combined with "SBRS", "SBRC", "SBR", and "CBR". 5. Data Retention Reliability Qualification results show that the projected data retention failure rate is much less than 1 ppm over 20 years at 85°C or 100 years at 25°C. 2549MS–AVR–09/10 ATmega640/1280/1281/2560/2561 11 ...

Page 12

... DDRK DDK7 (0x106) PINK PINK7 (0x105) PORTJ PORTJ7 (0x104) DDRJ DDJ7 (0x103) PINJ PINJ7 (0x102) PORTH PORTH7 (0x101) DDRH DDH7 2549MS–AVR–09/10 ATmega640/1280/1281/2560/2561 Bit 6 Bit 5 Bit 4 Bit USART3 I/O Data Register - - - USART3 Baud Rate Register Low Byte - - - UMSEL30 UPM31 UPM30 ...

Page 13

... Reserved - (0xC6) UDR0 (0xC5) UBRR0H - (0xC4) UBRR0L (0xC3) Reserved - (0xC2) UCSR0C UMSEL01 (0xC1) UCSR0B RXCIE0 (0xC0) UCSR0A RXC0 (0xBF) Reserved - 2549MS–AVR–09/10 ATmega640/1280/1281/2560/2561 Bit 6 Bit 5 Bit 4 Bit 3 PINH6 PINH5 PINH4 PINH3 - - - - - - - - - - - - - - - - - ...

Page 14

... TCCR1C FOC1A (0x81) TCCR1B ICNC1 (0x80) TCCR1A COM1A1 (0x7F) DIDR1 - (0x7E) DIDR0 ADC7D (0x7D) DIDR2 ADC15D 2549MS–AVR–09/10 ATmega640/1280/1281/2560/2561 Bit 6 Bit 5 Bit 4 Bit TWAM5 TWAM4 TWAM3 TWAM2 TWEA TWSTA TWSTO TWWC 2-wire Serial Interface Data Register TWA5 TWA4 TWA3 ...

Page 15

... EEDR 0x1F (0x3F) EECR - 0x1E (0x3E) GPIOR0 0x1D (0x3D) EIMSK INT7 0x1C (0x3C) EIFR INTF7 0x1B (0x3B) PCIFR - 2549MS–AVR–09/10 ATmega640/1280/1281/2560/2561 Bit 6 Bit 5 Bit 4 Bit 3 REFS0 ADLAR MUX4 MUX3 ACME - - MUX5 ADSC ADATE ADIF ADIE ADC Data Register High byte ...

Page 16

... LD and ST instructions, $20 must be added to these addresses. The ATmega640/1280/1281/2560/2561 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 - $1FF in SRAM, only the ST/STS/STD and LD/LDS/LDD instructions can be used. 2549MS– ...

Page 17

... Branch if Half Carry Flag Set BRHC k Branch if Half Carry Flag Cleared BRTS k Branch if T Flag Set BRTC k Branch if T Flag Cleared 2549MS–AVR–09/10 ATmega640/1280/1281/2560/2561 Description Rd ← ← Rdh:Rdl ← Rdh:Rdl + K Rd ← ← ← ← Rdh:Rdl ← Rdh:Rdl - K Rd ← Rd • ← ...

Page 18

... LPM Rd, Z+ Load Program Memory and Post-Inc ELPM Extended Load Program Memory ELPM Rd, Z Extended Load Program Memory 2549MS–AVR–09/10 ATmega640/1280/1281/2560/2561 Description then PC ← 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)← ...

Page 19

... NOP No Operation SLEEP Sleep WDR Watchdog Reset BREAK Break Note: 2549MS–AVR–09/10 ATmega640/1280/1281/2560/2561 Description EICALL and EIJMP do not exist in ATmega640/1280/1281. ELPM does not exist in ATmega640. Operation Flags Rd ← (RAMPZ:Z), RAMPZ:Z ←RAMPZ:Z+1 None (Z) ← R1:R0 None Rd ← P None P ← Rr None STACK ← Rr None Rd ← ...

Page 20

... Thin (1.0 mm) Plastic Gull Wing Quad Flat Package (TQFP) 100C1 100-ball, Chip Ball Grid Array (CBGA) 2549MS–AVR–09/10 ATmega640/1280/1281/2560/2561 Ordering Code Package ATmega640V-8AU ATmega640V-8CU 100C1 ATmega640-16AU ATmega640-16CU 100C1 Package Type (1)(3) Operation Range 100A Industrial (-40°C to 85°C) 100A Industrial (-40°C to 85°C) ...

Page 21

... Body, Quad Flat No-lead/Micro Lead Frame Package (QFN/MLF) 100A 100-lead, Thin (1.0 mm) Plastic Gull Wing Quad Flat Package (TQFP) 100C1 100-ball, Chip Ball Grid Array (CBGA) 2549MS–AVR–09/10 ATmega640/1280/1281/2560/2561 Ordering Code ATmega1281V-8AU ATmega1281V-8MU ATmega1281-16AU ATmega1281-16MU 369. ...

Page 22

... Body, Quad Flat No-lead/Micro Lead Frame Package (QFN/MLF) 100A 100-lead, Thin (1.0 mm) Plastic Gull Wing Quad Flat Package (TQFP) 100C1 100-ball, Chip Ball Grid Array (CBGA) 2549MS–AVR–09/10 ATmega640/1280/1281/2560/2561 Ordering Code ATmega1280V-8AU ATmega1280V-8CU ATmega1280-16AU ATmega1280-16CU 369. ...

Page 23

... Body, Quad Flat No-lead/Micro Lead Frame Package (QFN/MLF) 100A 100-lead, Thin (1.0 mm) Plastic Gull Wing Quad Flat Package (TQFP) 100C1 100-ball, Chip Ball Grid Array (CBGA) 2549MS–AVR–09/10 ATmega640/1280/1281/2560/2561 Ordering Code ATmega2561V-8AU ATmega2561V-8MU ATmega2561-16AU ATmega2561-16MU 369. ...

Page 24

... Body, Quad Flat No-lead/Micro Lead Frame Package (QFN/MLF) 100A 100-lead, Thin (1.0 mm) Plastic Gull Wing Quad Flat Package (TQFP) 100C1 100-ball, Chip Ball Grid Array (CBGA) 2549MS–AVR–09/10 ATmega640/1280/1281/2560/2561 Ordering Code ATmega2560V-8AU ATmega2560V-8CU ATmega2560-16AU ATmega2560-16CU 369. ...

Page 25

... 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 E1 are maximum plastic body size dimensions including mold mismatch. 3. Lead coplanarity is 0.08 mm maximum. 2325 Orchard Parkway San Jose, CA 95131 R 2549MS–AVR–09/10 ATmega640/1280/1281/2560/2561 B PIN 1 IDENTIFIER TITLE 100A, 100-lead Body Size, 1 ...

Page 26

... D e 0.90 TYP 0.90 TYP 2325 Orchard Parkway San Jose, CA 95131 R 2549MS–AVR–09/10 ATmega640/1280/1281/2560/2561 E Marked A1 Identifier TOP VIEW Øb A1 Corner BOTTOM VIEW TITLE 100C1, 100-ball 1.2 mm Body, Ball Pitch 0.80 mm Chip Array BGA Package (CBGA) 0.12 Z SIDE VIEW A ...

Page 27

... JEDEC reference MS-026, Variation AEB. 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 2549MS–AVR–09/10 ATmega640/1280/1281/2560/2561 B PIN 1 IDENTIFIER TITLE 64A, 64-lead Body Size, 1 ...

Page 28

... Marked Pin TOP VIEW BOTTOM VIEW Note: 1. JEDEC Standard MO-220, (SAW Singulation) Fig. 1, VMMD. 2. Dimension and tolerance conform to ASMEY14.5M-1994. 2325 Orchard Parkway San Jose, CA 95131 R 2549MS–AVR–09/10 ATmega640/1280/1281/2560/2561 D E Pin #1 Corner Pin #1 1 Option A Triangle 2 3 Option B Pin #1 Chamfer (C 0.30) Option C ...

Page 29

... Errata 10.1 ATmega640 rev. A • Inaccurate ADC conversion in differential mode with 200× gain. • High current consumption in sleep mode. 1. Inaccurate ADC conversion in differential mode with 200× gain With AVCC <3.6V, random conversions will be inaccurate. Typical absolute accuracy may reach 64 LSB. ...

Page 30

... This is done by writing the CLKPR register before entering the boot section of the code. 2. Part does not work under 2.4 volts The part does not execute code correctly below 2.4 volts. 2549MS–AVR–09/10 ATmega640/1280/1281/2560/2561 30 ...

Page 31

... When the Memory Lock Bits LB2 and LB1 are programmed to mode 3, EEPROM read does not work from the application code. Problem Fix/Workaround Do not set Lock Bit Protection Mode 3 when the application code needs to read from EEPROM. 10.9 ATmega2561 rev known errata. 10.10 ATmega2561 rev. D Not sampled. 2549MS–AVR–09/10 ATmega640/1280/1281/2560/2561 31 ...

Page 32

... The ADC has high noise in differential mode. It can give LSB error. Problem Fix/Workaround Use only the 7 MSB of the result when using the ADC in differential mode. 4. Internal ADC reference has too low value The internal ADC reference has a value lower than specified. Problem Fix/Workaround - Use AVCC or external reference. 2549MS–AVR–09/10 ATmega640/1280/1281/2560/2561 32 ...

Page 33

... 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. Problem Fix/Workaround Do not set Lock Bit Protection Mode 3 when the application code needs to read from EEPROM. 2549MS–AVR–09/10 ATmega640/1280/1281/2560/2561 33 ...

Page 34

... Added “System and Reset Characteristics” on page Updated “SPI Timing Characteristics” on page Updated “ADC Characteristics – Preliminary Data” on page Updated ordering code in “ATmega640” on page and in Figure 25-10 on page 3. Table 30-7 on page 376 have been changed has been changed. ...

Page 35

... Rev. 2549I-07/ 11.6 Rev. 2549H-06/ 2549MS–AVR–09/10 ATmega640/1280/1281/2560/2561 Updated Table 1-1 on page 3. Updated “Pin Descriptions” on page Updated “Stack Pointer” on page Updated “Bit 1 – EEPE: EEPROM Programming Enable” on page Updated Assembly code example in after setting the ACBG bit or enabling the ADC, the user must always allow the reference to start up before the output from the Analog Compar- ator or ADC is used ...

Page 36

... Rev. 2549D-12/ 2549MS–AVR–09/10 ATmega640/1280/1281/2560/2561 Updated “Features” on page 1. Added Figure 1-2 on page 3, Table 1-1 on page Updated “” on page 46. Updated “Power Management and Sleep Modes” on page Updated note for Table 11-1 on page Updated Figure 25-9 on page 285 Updated “ ...

Page 37

... V Updated “Ordering Information” on page Updated “Packaging Information” on page 64M2. Updated “Errata” on page 29. JTAG ID/Signature for ATmega640 updated: 0x9608. Updated Table 12-7 on page 81. Updated “Serial Programming Instruction set” on page Updated “Errata” on page 29. Initial version. ...

Page 38

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

Related keywords