ATMEGA640-16AUR - 8-bit AVR MCU 64KB Flash 16MHz TQFP-100 | Microchip
部品番号: ATMEGA640-16AUR ✓ 生産中| 数量 | 単価 | 小計 |
|---|---|---|
| 1 | $9.5 | $9.50 |
| 10 | $8.55 | $85.50 |
| 100 | $7.62 | $762.00 |
| 500 | $6.95 | $3,475.00 |
| 1,000 | $6.2 | $6,200.00 |
ATMEGA640-16AUR 概要
An 8-bit AVR microcontroller is a Harvard-architecture RISC processor that executes most instructions in a single clock cycle, delivering close to 1 MIPS per MHz. The AVR ATmega family sits within the broader taxonomy of microcontroller units (MCUs) under the semiconductor and embedded-system hierarchy, and the ATmega640 shares its core with the ATmega1280/ATmega2560 used on the Arduino Mega platform, making it familiar to a wide embedded engineering audience.
Key features include 32 general-purpose working registers, six flexible timer/counters with compare and PWM modes, a real-time counter with separate oscillator, and an 8/16-channel 10-bit successive-approximation ADC. The device also integrates two programmable serial USARTs, a master/slave SPI interface, a byte-oriented 2-wire serial interface (TWI/I2C-compatible), a programmable watchdog timer with its own on-chip oscillator, an on-chip analog comparator, and an output-compare modulator for dead-time generation.
Technical depth: the AVR core achieves close to 1 MIPS per MHz throughput, allowing the ATMEGA640-16AUR to deliver approximately 16 MIPS at 16 MHz while keeping active power low. ISP Flash supports firmware updates on the final PCB without removing the device, the 4 KB EEPROM retains calibration and configuration data through power cycles, and the 100-pin TQFP package exposes enough I/O for parallel buses, multiple UART channels, and PWM-rich motor-control front-ends simultaneously.
Typical applications include industrial control systems, building automation and HVAC controllers, consumer appliances, white goods, and instrumentation requiring many I/O lines and multiple serial channels. Its Arduino Mega compatibility also makes it popular for rapid prototyping and education.
Design consideration: the suffix decoding matters - 16A = 16 MHz / 4.5-5.5 V, U = industrial temperature (-40C to +85C), R = tape-and-reel. For 2.7-5.5 V or 8 MHz battery designs, choose ATmega640V-8AUR instead. Ensure ISP programming signals (MOSI, MISO, SCK, RESET) are brought out to a programming header.
This page synthesizes distributor pricing, drop-in same-family alternatives, and practical design notes not found in the manufacturer datasheet, with data verified as of 2026-10-07.
ドロップイン代替品: ATMEGA640-16AUR — 同一パッケージでピン互換。PCBの作り直しが必要な異なるパッケージの部品は除外されています。
このシリーズのバリエーション
同一シリーズでドロップイン互換のモデル: ATMEGA640-16AUR (同一形状・フットプリント) — 相違点: ADC, Package, Core Architecture, RoHS Status, Flash Memory.
クイック比較ツール — 並列比較する代替部品を選択:
ATMEGA640-16AU
✅ ドロップイン ⚠️ 仕様未検証✓ 在庫あり
$6.9 / 個
データシートを見る →ATMEGA1280-16AUR
✅ ドロップイン📋 参考代替品(カタログ未掲載)
ATMEGA2560-16AUR
✅ ドロップイン📋 参考代替品(カタログ未掲載)
ATMEGA1281-16AUR
✅ ドロップイン ⚠️ 仕様未検証📋 参考代替品(カタログ未掲載)
ATMEGA2561-16AUR
✅ ドロップイン ⚠️ 仕様未検証✓ 在庫あり
$15.98 / 個
データシートを見る →ATMEGA640-16AUR 最大定格&電気的特性
| Core Architecture | 8-bit AVR RISC |
| Program Memory (Flash) | 64 KB (32K x 16) |
| SRAM | 8 KB |
| EEPROM | 4 KB |
| Maximum CPU Clock | 16 MHz |
| Operating Voltage (Vcc) | 4.5 V to 5.5 V |
| General-Purpose I/O Lines | 86 |
| General-Purpose Working Registers | 32 |
| Timer/Counters | 6 flexible timer/counters with compare/PWM |
| ADC | 10-bit, 8/16-channel |
| USART | 2 programmable serial USARTs |
| SPI | 1 master/slave SPI |
| TWI (I2C-compatible) | 1 byte-oriented 2-wire interface |
| Analog Comparator | On-chip |
| Watchdog Timer | Programmable, with separate on-chip oscillator |
| パッケージ | 100-pin TQFP (14x14 mm) |
| 実装タイプ | Surface Mount |
| 動作温度 | -40C to +85C (industrial) |
| In-System Programmable (ISP) | Yes |
| RoHS ステータス | Compliant |
ATMEGA640-16AUR ピン構成
| ピン 1 | VCC — Digital supply voltage (5 V) |
| ピン 2 | PE0 (RXD0/PCINT8) — Port E bit 0 / USART0 RXD |
| ピン 3 | PE1 (TXD0) — Port E bit 1 / USART0 TXD |
| ピン 4 | PE2 (XCK0/AIN0) — Port E bit 2 / USART0 XCK / Analog Comparator Positive Input |
| ピン 5 | PE3 (OC3A/AIN1) — Port E bit 3 / Timer3 Compare A / Analog Comparator Negative Input |
| ピン 6 | PE4 (OC3B/INT4) — Port E bit 4 / Timer3 Compare B / External Interrupt 4 |
| ピン 7 | PE5 (OC3C/INT5) — Port E bit 5 / Timer3 Compare C / External Interrupt 5 |
| ピン 8 | PE6 (T3/INT6) — Port E bit 6 / Timer3 Clock Input / External Interrupt 6 |
| ピン 9 | PE7 (CLKO/ICP3) — Port E bit 7 / System Clock Output / Timer3 Input Capture |
| ピン 10 | VCC — Digital supply voltage (5 V) |
| ピン 11 | GND — Ground |
| ピン 12 | PH0 (RXD2) — Port H bit 0 / USART2 RXD |
| ピン 13 | PH1 (TXD2) — Port H bit 1 / USART2 TXD |
| ピン 14 | PH2 (XCK2) — Port H bit 2 / USART2 XCK |
| ピン 15 | PH3 (OC4A) — Port H bit 3 / Timer4 Compare A |
| ピン 16 | PH4 (OC4B) — Port H bit 4 / Timer4 Compare B |
| ピン 17 | PH5 (OC4C) — Port H bit 5 / Timer4 Compare C |
| ピン 18 | PH6 (OC2B) — Port H bit 6 / Timer2 Compare B |
| ピン 19 | PH7 (T4) — Port H bit 7 / Timer4 Clock Input |
| ピン 20 | PB0 (SS/PCINT0) — Port B bit 0 / SPI Slave Select |
| ピン 21 | PB1 (SCK/PCINT1) — Port B bit 1 / SPI Bus Clock |
| ピン 22 | PB2 (MOSI/PCINT2) — Port B bit 2 / SPI Master Out Slave In |
| ピン 23 | PB3 (MISO/PCINT3) — Port B bit 3 / SPI Master In Slave Out |
| ピン 24 | PB4 (OC2A/PCINT4) — Port B bit 4 / Timer2 Compare A |
| ピン 25 | PB5 (OC1A/PCINT5) — Port B bit 5 / Timer1 Compare A |
| ピン 26 | PB6 (OC1B/PCINT6) — Port B bit 6 / Timer1 Compare B |
| ピン 27 | PB7 (OC0A/OC1C/PCINT7) — Port B bit 7 / Timer0 Compare A / Timer1 Compare C |
| ピン 28 | VCC — Digital supply voltage (5 V) |
| ピン 29 | GND — Ground |
| ピン 30 | AVCC — Analog supply voltage (5 V) - for ADC |
| ピン 31 | GND — Ground |
| ピン 32 | AREF — ADC reference voltage input |
| ピン 33 | PF0 (ADC0) — Port F bit 0 / ADC Input Channel 0 |
| ピン 34 | PF1 (ADC1) — Port F bit 1 / ADC Input Channel 1 |
| ピン 35 | PF2 (ADC2) — Port F bit 2 / ADC Input Channel 2 |
| ピン 36 | PF3 (ADC3) — Port F bit 3 / ADC Input Channel 3 |
| ピン 37 | PF4 (ADC4/TCK) — Port F bit 4 / ADC Input Channel 4 / JTAG TCK |
| ピン 38 | PF5 (ADC5/TMS) — Port F bit 5 / ADC Input Channel 5 / JTAG TMS |
| ピン 39 | PF6 (ADC6/TDO) — Port F bit 6 / ADC Input Channel 6 / JTAG TDO |
| ピン 40 | PF7 (ADC7/TDI) — Port F bit 7 / ADC Input Channel 7 / JTAG TDI |
| ピン 41 | PA0 (AD0) — Port A bit 0 / External Memory Address/Data bit 0 |
| ピン 42 | PA1 (AD1) — Port A bit 1 / External Memory Address/Data bit 1 |
| ピン 43 | PA2 (AD2) — Port A bit 2 / External Memory Address/Data bit 2 |
| ピン 44 | PA3 (AD3) — Port A bit 3 / External Memory Address/Data bit 3 |
| ピン 45 | PA4 (AD4) — Port A bit 4 / External Memory Address/Data bit 4 |
| ピン 46 | PA5 (AD5) — Port A bit 5 / External Memory Address/Data bit 5 |
| ピン 47 | PA6 (AD6) — Port A bit 6 / External Memory Address/Data bit 6 |
| ピン 48 | PA7 (AD7) — Port A bit 7 / External Memory Address/Data bit 7 |
| ピン 49 | VCC — Digital supply voltage (5 V) |
| ピン 50 | GND — Ground |
| ピン 51 | PC7 (A15) — Port C bit 7 / External Memory Address bit 15 |
| ピン 52 | PC6 (A14) — Port C bit 6 / External Memory Address bit 14 |
| ピン 53 | PC5 (A13) — Port C bit 5 / External Memory Address bit 13 |
| ピン 54 | PC4 (A12) — Port C bit 4 / External Memory Address bit 12 |
| ピン 55 | PC3 (A11) — Port C bit 3 / External Memory Address bit 11 |
| ピン 56 | PC2 (A10) — Port C bit 2 / External Memory Address bit 10 |
| ピン 57 | PC1 (A9) — Port C bit 1 / External Memory Address bit 9 |
| ピン 58 | PC0 (A8) — Port C bit 0 / External Memory Address bit 8 |
| ピン 59 | PG1 (RD) — Port G bit 1 / External Memory Read strobe |
| ピン 60 | PG0 (WR) — Port G bit 0 / External Memory Write strobe |
| ピン 61 | PD7 (T0) — Port D bit 7 / Timer0 Clock Input |
| ピン 62 | PD6 (T1) — Port D bit 6 / Timer1 Clock Input |
| ピン 63 | PD5 (XCK1) — Port D bit 5 / USART1 XCK |
| ピン 64 | PD4 (ICP1) — Port D bit 4 / Timer1 Input Capture |
| ピン 65 | PD3 (INT3/TXD1) — Port D bit 3 / External Interrupt 3 / USART1 TXD |
| ピン 66 | PD2 (INT2/RXD1) — Port D bit 2 / External Interrupt 2 / USART1 RXD |
| ピン 67 | PD1 (SDA/INT1) — Port D bit 1 / TWI SDA / External Interrupt 1 |
| ピン 68 | PD0 (SCL/INT0) — Port D bit 0 / TWI SCL / External Interrupt 0 |
| ピン 69 | PG2 (ALE) — Port G bit 2 / External Memory Address Latch Enable |
| ピン 70 | VCC — Digital supply voltage (5 V) |
| ピン 71 | GND — Ground |
| ピン 72 | PK7 (ADC15/PCINT23) — Port K bit 7 / ADC Input Channel 15 |
| ピン 73 | PK6 (ADC14/PCINT22) — Port K bit 6 / ADC Input Channel 14 |
| ピン 74 | PK5 (ADC13/PCINT21) — Port K bit 5 / ADC Input Channel 13 |
| ピン 75 | PK4 (ADC12/PCINT20) — Port K bit 4 / ADC Input Channel 12 |
| ピン 76 | PK3 (ADC11/PCINT19) — Port K bit 3 / ADC Input Channel 11 |
| ピン 77 | PK2 (ADC10/PCINT18) — Port K bit 2 / ADC Input Channel 10 |
| ピン 78 | PK1 (ADC9/PCINT17) — Port K bit 1 / ADC Input Channel 9 |
| ピン 79 | PK0 (ADC8/PCINT16) — Port K bit 0 / ADC Input Channel 8 |
| ピン 80 | PJ7 — Port J bit 7 |
| ピン 81 | PJ6 (PCINT15) — Port J bit 6 |
| ピン 82 | PJ5 (PCINT14) — Port J bit 5 |
| ピン 83 | PJ4 (PCINT13) — Port J bit 4 |
| ピン 84 | PJ3 (PCINT12) — Port J bit 3 |
| ピン 85 | PJ2 (PCINT11) — Port J bit 2 |
| ピン 86 | PJ1 (PCINT10) — Port J bit 1 |
| ピン 87 | PJ0 (PCINT9) — Port J bit 0 |
| ピン 88 | PE0 — Port E bit 0 (second function on this pin) |
| ピン 89 | PE1 — Port E bit 1 (second function on this pin) |
| ピン 90 | PE2 — Port E bit 2 (second function on this pin) |
| ピン 91 | PE3 — Port E bit 3 (second function on this pin) |
| ピン 92 | PE4 — Port E bit 4 (second function on this pin) |
| ピン 93 | PE5 — Port E bit 5 (second function on this pin) |
| ピン 94 | PE6 — Port E bit 6 (second function on this pin) |
| ピン 95 | PE7 — Port E bit 7 (second function on this pin) |
| ピン 96 | VCC — Digital supply voltage (5 V) |
| ピン 97 | GND — Ground |
| ピン 98 | XTAL2 — Crystal oscillator output |
| ピン 99 | XTAL1 — Crystal oscillator input / external clock |
| ピン 100 | RESET — Reset input (active low) |
主な用途
ATMEGA640-16AUR の用途: 6 件s: Industrial Control Systems, Building Automation and HVAC, Consumer Appliances and White Goods, Instrumentation and Data Acquisition, Rapid Prototyping and Arduino-Compatible Designs, Education and Embedded Learning Platforms.
Industrial Control Systems
The ATMEGA640-16AUR fits industrial control applications because its 86 GPIO lines and six timer/counters easily drive multi-axis stepper/DC motor bridges, opto-isolated inputs, and relay outputs simultaneously. The 16 MHz CPU delivers 16 MIPS - sufficient for PID loops at typical 1 kHz control rates on multiple axes - while the 8 KB SRAM holds control tables and the 4 KB EEPROM stores calibration constants across power cycles. The industrial -40C to +85C temperature rating and 4.5-5.5 V supply match 5 V industrial backplanes without level shifters, and ISP Flash allows secure firmware updates via a programming header on the final assembly.
おすすめ
Building Automation and HVAC
Building automation controllers benefit from the ATMEGA640-16AUR's two USARTs, SPI, and TWI interfaces for simultaneously talking to Modbus RTU sensors, BACnet MS/TP networks, and local I2C peripherals (EEPROMs, RTCs, displays). The 86 I/O lines comfortably support multi-zone thermostat panels with keypads, character LCDs, and triac-driver outputs for damper and valve actuators. With 64 KB Flash, the device runs BACnet/Modbus stacks plus scheduling logic on-chip, and the 4 KB EEPROM retains setpoint schedules through power-loss events typical in HVAC installations.
おすすめ
Consumer Appliances and White Goods
The ATMEGA640-16AUR suits consumer appliances (washing machines, dishwashers, microwave ovens) where multiple motors, valves, sensors, and a user interface must be coordinated from a single MCU. Its 6 timer/counters with PWM modes drive motor bridges and inverter controls, the 10-bit ADC reads temperature/pressure/humidity sensors, and 86 GPIO lines connect to keypads, LCD/LED displays, and buzzer drivers. The ISP Flash allows late-stage firmware customization per model variant, and the 5 V industrial temperature rating covers under-cabinet appliance environments without extra components.
おすすめ
Instrumentation and Data Acquisition
The ATMEGA640-16AUR's 10-bit ADC with up to 16 channels, 8 KB SRAM for sample buffering, and 64 KB Flash for embedded signal-processing code make it well-suited to multi-channel data-acquisition front-ends. Two USARTs let the device stream data to a host PC while simultaneously talking to an isolated RS-485 sensor bus, and the TWI port connects to external 24-bit sigma-delta ADCs or DACs for higher precision. The 4 KB EEPROM stores calibration coefficients and channel-configuration data; ISP allows field recalibration without disassembling the instrument.
おすすめ
Rapid Prototyping and Arduino-Compatible Designs
The ATMEGA640-16AUR is functionally identical to the ATmega1280/2560 used on the Arduino Mega platform, so it benefits from the mature Arduino MegaCore open-source hardware package, library ecosystem, and community examples. Engineers prototyping 5 V Mega-form-factor designs can use the ATMEGA640-16AUR as a cost-optimized lower-Flash variant, with the same schematic footprint and 86 I/O mapping. The 16 MHz clock and 5 V supply match the original Mega reference design exactly, and ISP via the standard ICSP header supports bootloader flashing as well as in-circuit debugging.
おすすめ
Education and Embedded Learning Platforms
The ATMEGA640-16AUR provides an ideal teaching platform because it exposes nearly the entire AVR peripheral set - 86 GPIO, 6 timers, 10-bit ADC, two USARTs, SPI, TWI, analog comparator, and watchdog - in a single accessible 100-pin TQFP package. With 64 KB Flash, students can implement real RTOS kernels, file systems, or protocol stacks; with 4 KB EEPROM they can experiment with persistent storage; and with ISP they can repeatedly flash and debug code via low-cost tools such as the Microchip MPLAB Snap or Atmel-ICE. The 5 V industrial temperature rating also makes laboratory boards robust against student wiring errors.
おすすめ
おすすめ製品の概要
エンジニアリング参考データ: ATMEGA640-16AUR — 比較、設計ガイダンス、コンプライアンス情報。
選定ガイド
代替品との比較
| パラメータ | この製品 | ATMEGA640-16AU | ATMEGA1280-16AUR | ATMEGA2560-16AUR | ATMEGA1281-16AUR | ATMEGA2561-16AUR |
|---|---|---|---|---|---|---|
| Package | 100-pin TQFP (14x14 mm) | 100-pin TQFP (14x14 mm) - same | 100-pin TQFP (14x14 mm) - same | 100-pin TQFP (14x14 mm) - same | 100-pin TQFP (14x14 mm) - same | 100-pin TQFP (14x14 mm) - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Flash | 64 KB | 64 KB | 128 KB | 256 KB | 128 KB | 256 KB |
| SRAM | 8 KB | 8 KB | 8 KB | 8 KB | 8 KB | 8 KB |
| EEPROM | 4 KB | 4 KB | 4 KB | 4 KB | 4 KB | 4 KB |
| Maximum Clock | 16 MHz | 16 MHz | 16 MHz | 16 MHz | 16 MHz | 16 MHz |
| GPIO Lines | 86 | 86 | 86 | 86 | 54 (64-pin family) | 54 (64-pin family) |
| Operating Voltage | 4.5 V to 5.5 V | 4.5 V to 5.5 V | 4.5 V to 5.5 V | 4.5 V to 5.5 V | 4.5 V to 5.5 V | 4.5 V to 5.5 V |
| ADC Channels | 16 (10-bit) | 16 (10-bit) | 16 (10-bit) | 16 (10-bit) | 8 (10-bit) | 8 (10-bit) |
| Packaging | Tape & Reel (R suffix) | Tray (no R suffix) | Tape & Reel | Tape & Reel | Tape & Reel | Tape & Reel |
主な差別化要因
- Balanced memory configuration vs smaller AVR family members (vs ATMEGA328P-AUR)
- Compatible with Arduino Mega ecosystem and MegaCore package (vs ATMEGA164A-AU)
- 100% forward-compatible upgrade path to ATMEGA2560-16AUR (vs ATMEGA2560-16AUR)
- More ADC channels than 64-pin ATmega1281/2561 family (vs ATMEGA1281-16AUR)
設計ノート
The ATMEGA640-16AUR requires both a digital VCC (5 V, multiple pins 10/28/49/70/96) and an analog AVCC (5 V, pin 30). Per the Microchip ATmega640 datasheet, AVCC should be tied to VCC through a low-pass filter (typically a ferrite bead + 0.1 uF + 10 uF capacitor) and AREF should be bypassed with a 100 nF capacitor even when using the internal reference. Decoupling: place one 100 nF ceramic on each VCC pin pair (VCC+GND), with a bulk 10-47 uF tantalum or ceramic near the supply pin. AREF decoupling is critical for ADC noise performance - the 10-bit ADC is sensitive to high-frequency supply noise riding on AVCC.
Route the crystal traces (XTAL1 pin 99, XTAL2 pin 98) short and symmetric with guard ground on both sides; keep digital signal traces away from the crystal loop to minimize clock jitter. The 100-pin TQFP (14x14 mm body, 0.5 mm pitch) is hand-solderable but rework-prone - design a small SPI/ICSP footprint (2x3 pin, 0.1 inch header) for ISP programming via MOSI/MISO/SCK/RESK from PB0-PB3 and pin 100. The RESET pin (pin 100) should have a 10 kohm pull-up to VCC and a 100 nF capacitor to ground for debouncing; ensure in-circuit debugging tools do not interfere with this RC network.
Do not assume ISP programming works on a freshly powered board - the AVR fuses must be set correctly (typically default: internal RC oscillator, 16 MHz CKDIV8, JTAG enabled). If fuses are mis-set (e.g., external clock selected but no clock present), the device appears 'bricked' and requires a high-voltage parallel programmer (e.g., Microchip STK500 or Atmel-ICE with HV mode) to recover. Always place the ISP header on the PCB and verify SPI signals with an oscilloscope during prototype bring-up. Also note the 'A' suffix denotes 4.5-5.5 V operation; using 'V-8A' variant at 16 MHz will fail to function reliably above 3 V supply.
At industrial -40C to +85C operation, the TQFP-100 package provides adequate thermal dissipation for the typical 15-20 mA active current. However, when the device is driving many GPIO pins simultaneously (e.g., backplane drivers, LED matrix), total I/O current can reach 200-400 mA, raising junction temperature. Estimated: at 5 V VCC, 200 mA total I/O current = 1 W dissipation, theta_JA ~50 C/W for TQFP-100 on 4-layer PCB -> 50C rise above ambient; within industrial range but with minimal margin. For high-I/O applications, distribute loads across multiple VCC/GND pin pairs to minimize ground bounce.
コンプライアンス情報
RoHS compliant per Microchip product page. The ATMEGA640-16AUR is the industrial-temperature (-40C to +85C) variant, but it is NOT AEC-Q100 qualified for automotive applications - choose ATMEGA640-16MUR or AEC-Q100-qualified ATmega equivalent for automotive designs. Lead-free (Pb-free) reflow profile per JEDEC J-STD-020.