ATMEGA168-20AUR - 8-bit AVR MCU 20MHz 16KB Flash | Microchip
MPN: ATMEGA168-20AUR ✓ פעילATMEGA168-20AUR סקירה
An 8-bit AVR microcontroller is a single-chip computer that integrates a RISC processor core, program flash memory, data SRAM, non-volatile EEPROM, peripherals, and general-purpose I/O in one package. Within the power-management and embedded hierarchy, the ATmega family sits among general-purpose MCUs that replace multi-chip processor plus memory designs, reducing board area, BOM cost, and power consumption for embedded control systems.
Key differentiating features include the advanced RISC architecture with 133 powerful instructions, most executing in a single clock cycle; 23 programmable I/O lines; three flexible timer/counters with compare modes; an 8-channel 10-bit ADC; and debugWIRE on-chip debugging. The device operates from a single 2.7V to 5.5V supply and supports read-while-write self-programming for field firmware updates via ISP.
Technically, the AVR core uses a Harvard architecture with separate program and data buses and 32 general-purpose working registers directly connected to the ALU, allowing two independent registers to be accessed in one instruction. This eliminates the accumulator bottleneck of classic 8051-style cores and underpins the 1 MIPS/MHz efficiency rating. In-system programmable flash with boot-section support enables self-hosted firmware upgrades over UART, CAN, or any serial interface.
Typical applications include Arduino-compatible boards and hobby/embedded prototyping, industrial sensor nodes and motor control, and consumer appliance control panels. The 20 MHz clock and rich peripheral set fit both cost-sensitive and performance-sensitive designs.
Design consideration: at 5V the device is rated to 20 MHz, but below 2.7V operation the safe maximum frequency derates - consult the frequency-versus-voltage curve in the manufacturer datasheet before overclocking low-voltage designs.
This page synthesizes verified distributor pricing, drop-in alternatives, pinout data, and practical design notes not consolidated in the manufacturer datasheet.
חלופות תחליף ישיר עבור ATMEGA168-20AUR — אותו מארז, תואם פין-לפין. חלקים במארז שונה הדורשים עיבוד מחדש של ה-PCB אינם נכללים.
וריאנטים בסדרה זו
דגמים מאותה סדרה התואמים Drop-in עם ATMEGA168-20AUR (אותו גורם צורה וטביעת רגל) — שונים ב Package, Timers, Communication Interfaces, SRAM, Core Architecture.
ATMEGA168A-AUR
✅ Drop-Inצור קשר לקבלת מחיר
הצג גיליון נתונים ←ATMEGA168-20AU
✅ Drop-In ⚠️ מפרטים לא מאומתיםצור קשר לקבלת מחיר
הצג גיליון נתונים ←ATMEGA168-20AI
✅ Drop-In ⚠️ מפרטים לא מאומתיםצור קשר לקבלת מחיר
הצג גיליון נתונים ←ATMEGA168PA-AUR
✅ Drop-In ⚠️ מפרטים לא מאומתיםצור קשר לקבלת מחיר
הצג גיליון נתונים ←ATMEGA328P-AUR
✅ Drop-Inצור קשר לקבלת מחיר
הצג גיליון נתונים ←ATMEGA164PA-AUR
✅ Drop-Inצור קשר לקבלת מחיר
הצג גיליון נתונים ←ATMEGA165PA-AU
✅ Drop-In ⚠️ מפרטים לא מאומתיםצור קשר לקבלת מחיר
הצג גיליון נתונים ←ATMEGA168-20AUR דירוגים מרביים ומאפיינים חשמליים
| Core Processor | AVR |
| Core Size | 8-Bit |
| Speed | 20 MHz |
| Flash Memory | 16 KB (8K x 16) |
| EEPROM | 512 B |
| RAM Size | 1 KB |
| Number of I/O | 23 |
| ADC Resolution | 10-bit, 8 channels |
| Supply Voltage Range | 2.7 V to 5.5 V |
| Timers/Counters | 3 |
| Communication Interfaces | USART, SPI, I2C (TWI) |
| מארז | 32-TQFP (7x7 mm) |
| סוג הרכבה | Surface Mount |
| On-Chip Debug | debugWIRE |
| In-System Programming | Yes (ISP, read-while-write) |
| Programmable Instructions | 133 (most single-cycle) |
| סטטוס RoHS | Compliant |
תצורת פינים של ATMEGA168-20AUR
| פין 1 | PD3 — Port D, bit 3 (GPIO / PWM OC2B) |
| פין 2 | PD4 — Port D, bit 4 (GPIO / XCK/T0) |
| פין 3 | GND — Ground |
| פין 4 | VCC — Digital supply voltage |
| פין 5 | GND — Ground |
| פין 6 | VCC — Digital supply voltage |
| פין 7 | PB6 — Port B, bit 6 (XTAL1/TOSC1 - crystal oscillator input) |
| פין 8 | PB7 — Port B, bit 7 (XTAL2/TOSC2 - crystal oscillator output) |
| פין 9 | PD5 — Port D, bit 5 (GPIO / PWM OC0B/T1) |
| פין 10 | PD6 — Port D, bit 6 (GPIO / PWM OC0A/AIN0) |
| פין 11 | PD7 — Port D, bit 7 (GPIO / AIN1 analog comparator input) |
| פין 12 | PB0 — Port B, bit 0 (GPIO / ICP1/CLKO) |
| פין 13 | PB1 — Port B, bit 1 (GPIO / PWM OC1A) |
| פין 14 | PB2 — Port B, bit 2 (GPIO / SS/OC1B) |
| פין 15 | PB3 — Port B, bit 3 (SPI MOSI / PWM OC2A) |
| פין 16 | PB4 — Port B, bit 4 (SPI MISO) |
| פין 17 | PB5 — Port B, bit 5 (SPI SCK) |
| פין 18 | AVCC — ADC supply voltage (must be connected to VCC via low-pass filter) |
| פין 19 | ADC6 — ADC input channel 6 (TQFP/QFN packages only) |
| פין 20 | AREF — ADC analog reference input |
| פין 21 | GND — Ground |
| פין 22 | ADC7 — ADC input channel 7 (TQFP/QFN packages only) |
| פין 23 | PC0 — Port C, bit 0 (ADC0 / I2C not on this pin, GPIO) |
| פין 24 | PC1 — Port C, bit 1 (ADC1, GPIO) |
| פין 25 | PC2 — Port C, bit 2 (ADC2, GPIO) |
| פין 26 | PC3 — Port C, bit 3 (ADC3, GPIO) |
| פין 27 | PC4 — Port C, bit 4 (ADC4 / I2C SDA) |
| פין 28 | PC5 — Port C, bit 5 (ADC5 / I2C SCL) |
| פין 29 | PC6 — Port C, bit 6 (RESET - active low reset / GPIO when RSTDISBL fused) |
| פין 30 | PD0 — Port D, bit 0 (USART RXD) |
| פין 31 | PD1 — Port D, bit 1 (USART TXD) |
| פין 32 | PD2 — Port D, bit 2 (GPIO / INT0 external interrupt) |
יישומים טיפוסיים
ATMEGA168-20AUR מתאים עבור 6 יישוםs: Arduino-Compatible Hobby and Prototyping Boards, Industrial Sensor Nodes, Consumer Appliance Control Panels, Motor Control and PWM Applications, Battery-Powered IoT End Nodes, Embedded Educational and Training Platforms.
Arduino-Compatible Hobby and Prototyping Boards
The ATMEGA168-20AUR is the MCU at the heart of classic Arduino NG and Diecimila boards, where its 16 KB ISP flash, bootloader support, and 23 GPIO lines map directly to the documented Arduino pin mapping. Running the Arduino bootloader over UART, the chip self-programs its read-while-write flash so users upload sketches without a separate programmer. In this role the AVR architecture executes most instructions in a single clock cycle, giving predictable timing for digitalWrite and bit-banged protocols. Boards typically clock the chip at 16 MHz with a crystal on PB6/PB7, safely within the 20 MHz rating at 5V. The 10-bit ADC reads analog sensor shields, while USART handles serial monitor communication - making this part ideal for educational and rapid-prototyping designs.
מומלץ
Industrial Sensor Nodes
In industrial sensor nodes, the ATMEGA168-20AUR combines its 8-channel 10-bit ADC with USART, SPI, and I2C interfaces to digitize analog transducers and stream readings over RS-485 or radio links. The industrial -40C to +85C temperature grade of the -20AUR suffix tolerates unheated cabinets and cold-chain environments, while 2.7V to 5.5V operation allows direct powering from 3.3V or 5V rails. The 512 B EEPROM stores calibration coefficients and node IDs across power cycles. Sleep modes and interrupt-driven wakeup keep average consumption low in battery-backed monitoring points. Its 20 MIPS throughput executes oversampling and digital filtering on-node, and debugWIRE permits in-system firmware updates through the same connector used for ISP, simplifying field maintenance.
מומלץ
Consumer Appliance Control Panels
Appliance control panels - washers, cooktops, HVAC thermostats - use the ATMEGA168-20AUR for its balance of cost, I/O count, and analog integration. The 23 GPIO lines directly drive seven-segment displays, relays, and triac triggers, while three timer/counters generate PWM for heater and motor control and the 10-bit ADC reads NTC temperature sensors and user potentiometers. The 16 KB flash holds the full state machine and UI logic, and the 512 B EEPROM retains user settings such as temperature presets through power interruptions. Operating from an unregulated 5V derived from the mains supply, the wide 2.7-5.5V range absorbs supply sag. Watchdog timer support provides fail-safe recovery from code lockup, a common requirement in appliance safety compliance.
מומלץ
Motor Control and PWM Applications
The ATMEGA168-20AUR suits small DC and stepper motor control through its three flexible timer/counters, which deliver multiple independent PWM channels with 8-bit or 16-bit resolution and phase-correct or fast PWM modes. At 20 MHz, PWM resolution reaches 8-bit at over 78 kHz, keeping switching out of audible range for fan and pump control. The 10-bit ADC feeds back current or position signals, and the AVR core's single-cycle execution closes control loops deterministically. Dead-time generation via output-compare units protects H-bridge drivers. Because the chip integrates everything needed - MCU, PWM, ADC, and communications for setpoint updates over USART or I2C - a single ATMEGA168-20AUR replaces a discrete controller-plus-peripheral solution in cost-sensitive drives.
מומלץ
Battery-Powered IoT End Nodes
For battery-powered IoT end nodes, the ATMEGA168-20AUR's AVR sleep architecture offers idle, ADC-noise-reduction, power-save, and power-down modes with wakeup from interrupts. Designs that need deep sleep typically select the PA (picoPower) revision with the identical footprint, but the standard die still achieves long service life when the radio is the dominant load. The 1 KB SRAM buffers sensor frames, SPI drives sub-GHz or 2.4 GHz radios, and the 10-bit ADC samples battery voltage and sensors. 512 B EEPROM stores network credentials across deep-sleep cycles. Running from two AA cells (3V nominal) or a Li-SOCl2 cell, the wide 2.7-5.5V supply range and brown-out detector protect flash integrity as the battery discharges toward end of life.
מומלץ
Embedded Educational and Training Platforms
Universities and training-kit vendors standardize on the ATMEGA168-20AUR because debugWIRE enables single-wire on-chip debugging with low-cost tools, and ISP allows students to program chips directly on the target board. The 133-instruction AVR assembly language is small enough for a full-semester architecture course, while C toolchains (AVR-GCC) demonstrate embedded software practice. The part exposes every fundamental subsystem on real pins: timers for lab exercises on PWM and interrupts, UART for serial protocol labs, ADC for data-acquisition experiments, and SPI/I2C for peripheral-driver assignments. The 20 MHz grade gives measurable performance-delta experiments when compared with slower speed grades, and abundant second-source supply (168A/PA/328P) keeps lab stock available worldwide.
מומלץ
סיכום מוצרים מומלצים
נתוני עזר הנדסיים עבור ATMEGA168-20AUR — השוואה, הנחיות תכנון ומידע על תאימות.
מדריך בחירה
השוואה עם חלופות
| פרמטר | מוצר זה | ATMEGA168A-AUR | ATMEGA168PA-AUR | ATMEGA328P-AUR | ATMEGA164PA-AUR |
|---|---|---|---|---|---|
| Package | 32-TQFP (7x7 mm) | 32-TQFP (7x7 mm) - same | 32-TQFP (7x7 mm) - same | 32-TQFP (7x7 mm) - same | 44-TQFP (10x10 mm) - larger |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Flash Memory | 16 KB (8K x 16) | 16 KB | 16 KB | 32 KB | 16 KB |
| SRAM | 1 KB | 1 KB | 1 KB | 2 KB | 1 KB |
| Maximum Clock Speed | 20 MHz | 20 MHz | 20 MHz | 20 MHz | 20 MHz |
| Supply Voltage | 2.7 V to 5.5 V | 2.7 V to 5.5 V | 1.8 V to 5.5 V (picoPower) | 1.8 V to 5.5 V (picoPower) | 1.8 V to 5.5 V (picoPower) |
| Temperature Range | -40C to +85C (industrial) | -40C to +85C | -40C to +85C | -40C to +85C | -40C to +85C |
| I/O Pins | 23 | 23 | 23 | 23 | 32 |
מבדילים עיקריים
- 20 MHz full-speed rating (לעומתATMEGA165PA-AU)
- Newer-die migration path with identical footprint (לעומתATMEGA168A-AUR)
- Flash headroom upgrade path (לעומתATMEGA328P-AUR)
- Industrial temperature qualification (לעומתATMEGA168-20AU)
הערות תכנון
Decouple each VCC pin (pins 4 and 6) with 100 nF ceramic capacitors placed within 5 mm of the pins, plus one 10 uF bulk capacitor per supply domain. Connect AVCC (pin 18) to VCC through an LC low-pass filter (e.g., 10 uH inductor and 100 nF) to keep ADC noise low - the Microchip datasheet requires AVCC to stay within 0.3V of VCC. Enable the internal brown-out detector at 2.7V via fuse bits so flash corruption is avoided during slow supply decay in battery designs.
When driving a parallel crystal on PB6/PB7, select a crystal with load capacitance matching the AVR's oscillator requirements and place the crystal within 10 mm of the pins with ground guard traces. For SPI buses on PB3-PB5, keep traces short and series-terminate near the driver if lines exceed 15 cm. RESET (pin 29) needs a 10 kOhm pull-up for reliable ISP programming; leaving it floating causes spurious resets in noisy industrial environments and can block debugWIRE sessions.
The 20 MHz rating applies only near 5V supply - below approximately 3V the safe maximum frequency derates per the frequency-versus-voltage curve in the manufacturer datasheet, so a 3.3V design should stay at or below roughly 13.3 MHz or use the internal 8 MHz RC oscillator. Also remember PC6 (pin 29) is RESET by default; reclaiming it as GPIO via the RSTDISBL fuse permanently disables ISP and high-voltage reprogramming is then required to recover the chip.
For ADC accuracy, route analog signals away from SPI and PWM traces and use a solid ground plane. AREF (pin 20) should be decoupled with 100 nF to ground when using the internal reference; never connect a voltage source to AREF while the internal reference is selected, as this can short the internal reference amplifier. When migrating to the pin-compatible ATMEGA168A/PA/328P, no PCB changes are needed - the footprints and pin functions are identical per Microchip migration notes.
מידע על תאימות
RoHS compliant per DigiKey product listing for ATMEGA168-20AUR. AEC-Q100 qualification not applicable to standard industrial ATmega parts.