View All

Please refer to the English Version as our Official Version.Return

Europe
France(Français) Germany(Deutsch) Italy(Italia) Russian(русский) Poland(polski) Czech(Čeština) Luxembourg(Lëtzebuergesch) Netherlands(Nederland) Iceland(íslenska) Hungarian(Magyarország) Spain(español) Portugal(Português) Turkey(Türk dili) Bulgaria(Български език) Ukraine(Україна) Greece(Ελλάδα) Israel(עִבְרִית) Sweden(Svenska) Finland(Svenska) Finland(Suomi) Romania(românesc) Moldova(românesc) Slovakia(Slovenská) Denmark(Dansk) Slovenia(Slovenija) Slovenia(Hrvatska) Croatia(Hrvatska) Serbia(Hrvatska) Montenegro(Hrvatska) Bosnia and Herzegovina(Hrvatska) Lithuania(lietuvių) Spain(Português) Switzerland(Deutsch) United Kingdom(English)
Asia/Pacific
Japan(日本語) Korea(한국의) Thailand(ภาษาไทย) Malaysia(Melayu) Singapore(Melayu) Vietnam(Tiếng Việt) Philippines(Pilipino)
Africa, India and Middle East
United Arab Emirates(العربية) Iran(فارسی) Tajikistan(فارسی) India(हिंदी) Madagascar(malaɡasʲ)
South America / Oceania
New Zealand(Maori) Brazil(Português) Angola(Português) Mozambique(Português)
North America
United States(English) Canada(English) Haiti(Ayiti) Mexico(español)
HomeProductsIntegrated Circuits (ICs)Embedded - MicrocontrollersATMEGA168P-20MU
ATMEGA168P-20MU Image
Image may be representation.
See specifications for product details.
EXPRESS OPTION
Payment method

ATMEGA168P-20MU - Microchip Technology

Manufacturer Part Number
ATMEGA168P-20MU
Manufacturer
Microchip Technology
Allelco Part Number
32D-ATMEGA168P-20MU
Warranty
1 Year Allelco Warranty - Find out more
Stock Status:
12,707 pcs available, New & Original
Parts Description
IC MCU 8BIT 16KB FLASH 32VQFN
Package
32-VQFN (5x5)
Data sheet
ATMEGA168P-20MU.pdf
RoHs Status
ROHS3 Compliant
Our certification
In stock: 12707

Required fields are indicated by an asterisk (*)
Please send RFQ, we will respond immediately.

Quantity

Specifications

ATMEGA168P-20MU Tech Specifications
Microchip Technology - ATMEGA168P-20MU technical specifications, attributes, parameters and parts with similar specifications to Microchip Technology - ATMEGA168P-20MU

Product Attribute Attribute Value
Manufacturer Microchip Technology
Voltage - Supply (Vcc/Vdd) 2.7V ~ 5.5V
Supplier Device Package 32-VQFN (5x5)
Speed 20MHz
Series AVR® ATmega
RAM Size 1K x 8
Program Memory Type FLASH
Program Memory Size 16KB (8K x 16)
Peripherals Brown-out Detect/Reset, POR, PWM, WDT
Package / Case 32-VFQFN Exposed Pad
Package Tray
Product Attribute Attribute Value
Oscillator Type Internal
Operating Temperature -40°C ~ 85°C (TA)
Number of I/O 23
Mounting Type Surface Mount
EEPROM Size 512 x 8
Data Converters A/D 8x10b
Core Size 8-Bit
Core Processor AVR
Connectivity I²C, SPI, UART/USART
Base Product Number ATMEGA168

Environmental & Export Classifications

ATTRIBUTE DESCRIPTION
RoHs Status ROHS3 Compliant
Moisture Sensitivity Level (MSL) 3 (168 Hours)
REACH Status REACH Unaffected
ECCN EAR99
HTSUS 8542.31.0001

Parts Introduction

ATMEGA168P-20MU Image
ATMEGA168P-20MU (1)

Manufacturer Part Number

ATMEGA168P-20MU

Manufacturer

Microchip Technology

Introduction

Low-power CMOS 8-bit microcontroller based on the AVR enhanced RISC architecture

Product Features and Performance

8-Bit Core Processor

20MHz Maximum Speed

Advanced RISC Architecture

Up to 20 MIPS Throughput at 20MHz

Supports I2C, SPI, and UART/USART Serial Communication

Brown-out Detect/Reset, Power-on Reset, and Watchdog Timer for Reliability

Pulse Width Modulation for Motor Control and LED Dimming

Product Advantages

High Performance for Cost Ratio

Energy-efficient Operation

Broad Range of Peripherals Enhancing Flexibility

Robust Serial Communication Capabilities

Easy to Program with High-level Language Support

Key Technical Parameters

Core Size: 8-Bit

Speed: 20MHz

Number of I/O: 23

Program Memory Size: 16KB

Program Memory Type: FLASH

EEPROM Size: 512 x 8

RAM Size: 1K x 8

Voltage Supply Range: 2.7V to 5.5V

Data Converters: 8-channel, 10-bit ADC

Temperature Operating Range: -40°C to 85°C

Quality and Safety Features

Extended Temperature Range for Harsh Environments

In-system Programmable FLASH memory

Brown-out Detection to Prevent Processor Damage

Internal Oscillator for Reduced External Components

Compatibility

Compatible with AVR® ATmega Series Microcontroller Ecosystem

Supports 32-VQFN (5x5) Mounting for Standard PCB Design

Application Areas

Consumer Electronics

Industrial Automation

Automotive

Home Automation

Internet of Things (IoT)

Battery-operated Devices

Product Lifecycle

Active Product Status

Not Designated for Near-term Discontinuation

Availability of Replacements or Upgrades Not Specified

Several Key Reasons to Choose This Product

Optimal Balance Between Power Consumption and Processing Speed

Multiple Communication Options for System Integration

Versatility in Various Applications Due to Abundant I/O Lines

Consistent Product Availability Avoids Development Redesign

Large Operating Voltage Range Suitable for Various Circuits

Diverse Built-in Peripherals Reduce Additional Component Requirement

Support for In-system Programming and Debugging Adds Convenience

High Reliability Ideal for Long-term Deployment in Field Applications

Frequently Asked Questions(FAQ)

What are the key power supply and operating voltage considerations when designing with the ATMEGA168P-20MU in battery-powered applications?
The ATMEGA168P-20MU supports a wide Vcc range of 2.7V to 5.5V, making it suitable for both 3.3V and 5V systems. At 20MHz operation, the device requires a minimum of 4.5V to maintain full timing accuracy, per the speed-grade specification. For battery-powered designs using 3V coin cells or Li-ion packs, running at reduced clock speeds (e.g., 8–10MHz) allows stable operation down to 2.7V. Dynamic voltage scaling can extend battery life, but brown-out detection (BOD) must be configured appropriately—typically set to 2.7V or 4.3V thresholds depending on supply rail—to prevent erratic behavior during voltage sag.
How does the internal oscillator of the ATMEGA168P-20MU impact timing-sensitive peripherals like UART or PWM?
The ATMEGA168P-20MU includes an internal calibrated RC oscillator (±10% initial accuracy, ±2% with factory calibration at 3V and 25°C). While sufficient for many UART applications at standard baud rates (e.g., 9600 or 115200 bps with error <2%), timing-critical protocols like LIN or high-precision PWM may require external crystal stabilization. For UART, enabling the internal oscillator’s ±1% calibration mode (via OSCCAL register) reduces baud rate error significantly. However, over full temperature and voltage ranges, drift can exceed 5%, so closed-loop timing recovery or external clock sources are advised for industrial-grade communication.
Can the ATMEGA168P-20MU support real-time sensor data acquisition using its 10-bit ADC while maintaining responsive I/O control?
Yes, the ATMEGA168P-20MU integrates an 8-channel, 10-bit successive approximation ADC with a maximum sampling rate of 15kSPS at full resolution. With a 20MHz system clock, each conversion takes approximately 13µs (13 ADC clock cycles at 125kHz ADC clock). This allows periodic sampling of multiple sensors (e.g., temperature, pressure) without significantly interrupting main loop execution. Using auto-triggering from Timer1 and ADC interrupt-driven buffering, the CPU can process other tasks—such as updating PWM outputs or handling I2C communication—while maintaining consistent sampling intervals down to ~50µs per channel in round-robin mode.
What are the trade-offs between using internal flash versus external memory when implementing firmware updates on the ATMEGA168P-20MU?
The ATMEGA168P-20MU provides 16KB of self-programmable flash with bootloader support, enabling in-system firmware updates via SPI, UART, or I2C. This eliminates the need for external memory in most embedded applications. However, flash endurance is rated at 10,000 write/erase cycles, so frequent field updates may degrade reliability over time. For applications requiring frequent logging or large firmware images, pairing the MCU with external SPI flash (e.g., 1MB+ serial NOR) is advisable. Additionally, the 1KB SRAM limits buffering capacity during update routines—firmware must be staged in small blocks (e.g., 128–256 bytes) to avoid stack overflow.
How does the 32-VQFN package of the ATMEGA168P-20MU influence PCB layout and thermal management in compact designs?
The 5x5mm 32-VQFN package with an exposed thermal pad requires careful PCB design for reliable soldering and heat dissipation. The exposed pad must be soldered to a grounded copper pour (typically 2–4 layers) to act as a thermal and electrical anchor. Without proper thermal vias (e.g., 4–9 vias of 0.3mm diameter), junction temperature can rise significantly under sustained load, potentially triggering thermal shutdown or reducing lifespan. In high-density layouts, keep signal traces short and avoid routing high-speed lines (e.g., SPI clock) adjacent to analog inputs to minimize crosstalk, especially given the limited pin spacing (0.5mm pitch).
Is the ATMEGA168P-20MU suitable for industrial environments with wide temperature swings and electrical noise?
The ATMEGA168P-20MU is rated for -40°C to +85°C ambient operation, meeting industrial temperature requirements. Its built-in brown-out detection, power-on reset, and watchdog timer enhance resilience against voltage transients and brownouts common in industrial settings. However, the internal oscillator may drift beyond acceptable limits at temperature extremes, affecting UART timing or PWM accuracy. For robust operation, pair the MCU with a ceramic resonator or crystal oscillator and implement software-based error correction. Additionally, use decoupling capacitors (100nF ceramic + 1–10µF tantalum) near Vcc pins and guard analog sections with ground planes to mitigate EMI.
How does the I/O count and peripheral integration of the ATMEGA168P-20MU compare to the ATMEGA328P for mid-complexity embedded systems?
The ATMEGA168P-20MU offers 23 I/O pins, 16KB flash, 1KB RAM, and 512 bytes EEPROM, while the ATMEGA328P provides 23 I/O pins, 32KB flash, 2KB RAM, and 1KB EEPROM—essentially doubling memory resources. Both share identical core architecture, peripherals (I2C, SPI, UART, PWM, ADC), and 20MHz speed grade. For applications requiring larger firmware (e.g., protocol stacks, GUI logic) or dynamic data buffering (e.g., sensor fusion), the ATMEGA328P is preferable. However, for cost-sensitive or space-constrained designs where code fits within 16KB and RAM usage is optimized (e.g., state machines, simple control loops), the ATMEGA168P-20MU delivers equivalent real-time performance with lower BOM cost.
What design precautions are necessary when using the ATMEGA168P-20MU in mixed-signal circuits with both digital communication and analog sensing?
To maintain ADC accuracy on the ATMEGA168P-20MU, isolate analog and digital supply paths using separate PCB traces and a common ground plane with a single-point connection. Power the AREF pin with a clean, low-noise reference (e.g., 2.5V or 3.3V LDO) instead of Vcc when high-precision measurements are needed. Avoid routing high-frequency digital signals (SPI, PWM) near ADC input channels (ADC0–ADC7), and use guard rings or ground traces for shielding. Additionally, disable digital input buffers on unused ADC pins via the DIDR0 register to reduce leakage current and noise coupling. Sampling during CPU idle periods or using ADC noise reduction mode further improves SNR in sensitive applications.
Can the ATMEGA168P-20MU handle real-time motor control applications requiring precise PWM and feedback sensing?
Yes, the ATMEGA168P-20MU features three 8-bit and one 16-bit timer/counters capable of generating up to six PWM outputs with adjustable frequency and duty cycle. The 16-bit Timer1 supports phase-correct and fast PWM modes with resolutions up to 16 bits at lower frequencies, suitable for brushed DC or stepper motor control. When combined with the 10-bit ADC, it can sample back-EMF or current sense signals for closed-loop control. However, the 1KB RAM limits complex control algorithms (e.g., PID with large history buffers), and interrupt latency (~4–6 clock cycles) may affect response time in high-speed servo systems. For advanced motor control, consider offloading timing-critical tasks to dedicated hardware or upgrading to a device with more RAM and hardware PWM synchronization.
How does the EEPROM size of the ATMEGA168P-20MU influence data logging and configuration storage strategies?
With only 512 bytes of EEPROM, the ATMEGA168P-20MU is best suited for storing small configuration parameters (e.g., device ID, calibration coefficients, network settings) rather than extensive data logs. EEPROM endurance is 100,000 write cycles, so frequent writes (e.g., every second) could wear out the memory in days. Implement wear-leveling algorithms or buffer data in SRAM and write in batches. For larger datasets, use external I2C or SPI EEPROM (e.g., 24LC256) or log to external flash. Additionally, avoid storing volatile runtime data in EEPROM—use it only for persistent settings that change infrequently.
What are the implications of the 20MHz speed grade on power consumption and thermal design for the ATMEGA168P-20MU?
At 20MHz and 5V, the ATMEGA168P-20MU draws approximately 10–12mA in active mode, significantly higher than at lower frequencies (e.g., ~2mA at 1MHz). This increases power dissipation to ~60mW, which, while modest, can accumulate in enclosed or high-density designs. In battery-powered systems, reducing clock speed during idle periods using power-saving modes (idle, power-down) extends runtime. The exposed pad helps dissipate heat, but in continuous high-load scenarios (e.g., frequent ADC sampling + communication), ensure adequate airflow or thermal relief. Operating at 3.3V reduces current to ~6mA at 20MHz, improving thermal performance and compatibility with low-voltage sensors.
How does the ATMEGA168P-20MU compare to ARM Cortex-M0+ microcontrollers in terms of real-time performance and development ecosystem for 8-bit-class applications?
The ATMEGA168P-20MU offers deterministic 8-bit AVR core execution with single-cycle GPIO and peripheral access, beneficial for hard real-time tasks like encoder reading or bit-banged protocols. In contrast, Cortex-M0+ devices (e.g., SAMD21, LPC800) provide 32-bit processing, higher clock speeds (up to 48MHz), and richer peripherals (DMA, event system), but with slightly higher interrupt latency and power. For simple control loops, sensor interfacing, or legacy AVR code reuse, the ATMEGA168P-20MU remains efficient and cost-effective. However, for applications requiring floating-point math, larger memory, or RTOS support, Cortex-M0+ platforms offer better scalability despite higher complexity.
What debugging and programming challenges arise when using the ATMEGA168P-20MU in production environments?
The ATMEGA168P-20MU supports in-system programming (ISP) via SPI and debugWIRE for single-wire debugging, but debugWIRE disables the RESET pin, limiting accessibility in final designs. For production programming, use high-speed ISP with a dedicated programmer (e.g., Atmel-ICE) to flash firmware and calibrate the internal oscillator. Ensure the programming header is accessible or use bootloader-based updates via UART. The 32-VQFN package complicates bed-of-nails testing; consider adding test points for critical signals (SCK, MOSI, RESET). Additionally, verify fuse settings (e.g., clock source, BOD level) during programming to avoid bricking devices due to incorrect configurations.
How can the limited RAM of the ATMEGA168P-20MU be optimized for embedded applications with dynamic data requirements?
With only 1KB of SRAM, memory management is critical. Use static allocation for buffers and avoid dynamic memory (malloc/free). Structure data efficiently—pack booleans into bitfields, use uint8_t instead of int where possible, and minimize stack usage by limiting function call depth. For communication protocols, use circular buffers with fixed sizes (e.g., 32-byte UART RX buffer). Leverage PROGMEM to store constant strings or lookup tables in flash. Enable compiler optimizations (-Os) to reduce stack and heap usage. In multi-tasking scenarios, avoid RTOS overhead; instead, use cooperative schedulers or state machines to fit within memory constraints.
What are the best practices for ensuring reliable startup and reset behavior in the ATMEGA168P-20MU under fluctuating power conditions?
Configure the brown-out detection (BOD) fuse to match the system’s minimum operating voltage—typically 2.7V for 3.3V systems or 4.3V for 5V rails—to prevent execution from corrupted memory during power-up or voltage drops. Combine BOD with a power-on reset (POR) circuit that ensures a clean reset pulse (>2.5µs) when Vcc rises above the threshold. Add a 100nF ceramic capacitor close to Vcc and a 1–10µF bulk capacitor to stabilize supply during transients. Avoid long power traces that increase inductance. For critical applications, monitor Vcc with the ADC and implement software-based reset triggers if voltage dips below safe levels despite BOD.

Parts with Similar Specifications

The three parts on the right have similar specifications to Microchip Technology ATMEGA168P-20MU

Product Attribute ATMEGA168P-20MU ATMEGA168P-20MUR ATMEGA168P-20MQ ATMEGA168P-20AU
Part Number ATMEGA168P-20MU ATMEGA168P-20MUR ATMEGA168P-20MQ ATMEGA168P-20AU
Manufacturer Atmel Atmel Microchip Technology Atmel
Voltage - Supply (Vcc/Vdd) - - - -
RAM Size - - - -
Package / Case - 196-LFBGA 16-DIP (0.300', 7.62mm) 64-VFQFN Exposed Pad
Speed - - - -
Program Memory Type - - - -
Data Converters - - - -
Number of I/O - - - -
Package - Tape & Reel (TR) Tube Tape & Reel (TR)
Supplier Device Package - 196-NFBGA (12x12) 16-PDIP 64-VQFN (9x9)
Series - - - -
Operating Temperature - -40°C ~ 85°C 0°C ~ 70°C -40°C ~ 85°C
Peripherals - - - -
Base Product Number - DAC34H84 MAX500 ADS62P42
EEPROM Size - - - -
Program Memory Size - - - -
Core Processor - - - -
Mounting Type - Surface Mount Through Hole Surface Mount
Connectivity - - - -
Oscillator Type - - - -
Core Size - - - -

ATMEGA168P-20MU Datasheet PDF

Download ATMEGA168P-20MU pdf datasheets and Microchip Technology documentation for ATMEGA168P-20MU - Microchip Technology.

Datasheets
ATMEGA48/88/168(P,PV) Complete.pdf
PCN Design/Specification
ATMEGA Datasheet 13/Dec/2018.pdf Cancelled 21/Jun/2016.pdf
PCN Packaging
MBB/Label Chgs 16/Nov/2018.pdf Transfer to Microchip/Label/Pkg 5/Sep/2016.pdf
PCN Other
MSL Update 26/Feb/2014.pdf
PCN Assembly/Origin
Mult Devices Assembly 20/Aug/2018.pdf

Customer Reviews

Evaluation: 10 Articles

  • Dani***alkerTech
    Jun 1, 2026

    Product works, but setup took more effort than expected. Once configured the MCU ran reliably, although documentation support felt older compared with newer platforms. Fine for maintenance projects.

  • Yuki***aka88
    May 26, 2026

    信号通信プロジェクトでこのRS-485トランシーバーを使用しました。設置は簡単で、長距離ケーブルでも通信は安定していました。消費電力も、以前使用していたものより低くなっています。

  • Stev***aker
    May 20, 2026

    Solid diode for power rectification. Works well in switching circuits.

  • Bran***Lewis
    May 11, 2026

    Compact FPGA with good performance. Suitable for basic signal processing tasks.

  • Oliv***arris
    May 7, 2026

    Reliable I/O expander. Works well in embedded control applications.

  • Jess***Jones
    Apr 17, 2026

    It offers good value for the price, and the specifications match the description. I’ve been using it for two days with no issues, and I’ll definitely buy it again if I need it in the future.

  • Mich***Smith
    Apr 17, 2026

    Shipping was on time, the component pins are neatly aligned, and I tested 10 of them with a multimeter—all readings were within the specified range. Highly recommended.

  • Aman***arris
    Apr 3, 2026

    It was great—the entire process, from placing the order to receiving the package, went very smoothly. The components were consistent, the price was fair, and I had a very pleasant shopping experience.

  • Mike***nch
    Apr 3, 2026

    Better than expected! The resistance and capacitance readings were spot-on, and it passed the test on the first try. The service was reliable, and the packaging was thoughtful—I highly recommend it.

  • Daic***K.
    Mar 23, 2026

    Very good. No issue after long time testing.

Write a Review

Your Email address will not be published.

Shipment

Delivery Time

In-stock items can be shipped within 24 hours. Some parts will be arranged for delivery within 1-2 days from the date all items arrive at our warehouse. And Allelco ships order once a day at about 17:00, except Sunday. Once the goods are shipped, the estimated delivery time depends on the shipping methods and Delivery destination. The table below shows are the logistic time for some common countries.

Delivery Cost

  1. Use your express account for shipment if you have one.
  2. Use our account for the shipment. Refer to the table below for the approximate charges.
(Different time frame / countries / package size has different price.)

Delivery Method

  1. Global Common Shipment by DHL / UPS / FedEx / TNT / EMS / SF we support.
  2. Others more shipping ways, please get in touch with your customer manager.

Common Countries Logistic Time Reference
Region Country Logistic Time(Day)
America United States 5
Brazil 7
Europe Germany 5
United Kingdom 4
Italy 5
Oceania Australia 6
New Zealand 5
Asia India 4
Japan 4
Middle East Israel 6
DHL & FedEx Shipment Charges Reference
Shipment charges(KG) Reference DHL(USD$)
0.00kg-1.00kg USD$30.00 - USD$60.00
1.00kg-2.00kg USD$40.00 - USD$80.00
2.00kg-3.00kg USD$50.00 - USD$100.00
Note:
The above table is for reference only. There may have some data bias for the uncontrollable factors.
Contact us if you have any questions.
  • QC (Quality Warranty)
  • Payment Support
  • Packaging
  • Certifications & Memberships

QC (Quality Warranty)

Allelco is committed to exceeding customer expectations through customer service excellence, order accuracy, and on-time delivery.
This is achieved through our commitment to the continual improvement of our processes, services, and products.


Strict quality inspection builds a solid foundation for electronic component quality.
  1. Visual inspection
  2. Performance testing and reliability verification
  3. Standardized full-process testing
  4. Precise control of every parameter
We eliminate defective components and ensure the stable operation of electronic devices through professional quality standards.

Payment Support

The payment method can be chosen from the methods shown below: Wire Transfer (T/T, Bank Transfer), Western Union, Credit card, PayPal.
  • HKBea
  • Paypal
  • MasterCard
  • Western-Union
  • VISA
Stable Delivery, Sincere Partnership — Your Faithful Supply Chain Partner
  • Efficient Supply Management
  • Cost-Saving Procurement
  • Fast Sourcing & Delivery
Contact us if you have any questions.

Packaging

Electrostatic Discharge Protection and Handling

All electrostatic-sensitive components are handled in accordance with electrostatic discharge control procedures. The products are hermetically sealed in anti-static safe packaging to prevent electrostatic damage. Appropriate labeling is also applied for identification and traceability. This ensures product integrity during storage, handling and transportation.


ESD

Certifications & Memberships

Third-party certified, strict quality control. Our certification
  • ISO 9001: 2015
  • ISO 13485: 2016
  • ISO 14001: 2015
  • ISO 28000: 2007
  • ISO 45001: 2018
  • GB/T 27922-2011
  • SMTA
  • IPC
  • ESD
  • PSMA
ATMEGA168P-20MU Image

ATMEGA168P-20MU

Microchip Technology
32D-ATMEGA168P-20MU

Want a better price? Add to Cart and Submit RFQ now, we'll contact you immediately.

0 RFQ
Shopping cart (0 Items)
It is empty.
Compare List (0 Items)
It is empty.
Feedback

Your feedback matters! At Allelco, we value the user experience and strive to improve it constantly.
Please share your comments with us via our feedback form, and we'll respond promptly.
Thank you for choosing Allelco.

Subject
E-mail
Comments
Captcha
Drag or click to upload file
Upload File
types: .xls, .xlsx, .doc, .docx, .jpg, .png and .pdf.
Max file size: 10MB