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-20PU
ATMEGA168P-20PU Image
Image may be representation.
See specifications for product details.
EXPRESS OPTION
Payment method

ATMEGA168P-20PU - Microchip Technology

Manufacturer Part Number
ATMEGA168P-20PU
Manufacturer
Microchip Technology
Allelco Part Number
98D-ATMEGA168P-20PU
Warranty
1 Year Allelco Warranty - Find out more
Stock Status:
37,047 pcs available, New & Original
Parts Description
IC MCU 8BIT 16KB FLASH 28DIP
Package
28-PDIP
Data sheet
ATMEGA168P-20PU.pdf
RoHs Status
ROHS3 Compliant
Our certification
In stock: 37047
  • Unit Price: $4.059
  • Subtotal: $0.00

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

Quantity Unit Price Ext. Price
1+ $4.059 $4.06
The above prices does not include taxes and freight rates, which will be calculated on the order pages.

Specifications

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

Product Attribute Attribute Value
Manufacturer Microchip Technology
Voltage - Supply (Vcc/Vdd) 2.7V ~ 5.5V
Supplier Device Package 28-PDIP
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 28-DIP (0.300', 7.62mm)
Package Tube
Product Attribute Attribute Value
Oscillator Type Internal
Operating Temperature -40°C ~ 85°C (TA)
Number of I/O 23
Mounting Type Through Hole
EEPROM Size 512 x 8
Data Converters A/D 6x10b
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) 1 (Unlimited)
REACH Status REACH Unaffected
ECCN EAR99
HTSUS 8542.31.0001

Frequently Asked Questions(FAQ)

What are the key design considerations when selecting the ATMEGA168P-20PU for a low-power embedded system operating at 3.3V?
The ATMEGA168P-20PU supports a supply voltage range of 2.7V to 5.5V, making it suitable for 3.3V systems. At 3.3V and 20MHz, dynamic current consumption typically reaches 8–10mA during active operation, so power budgeting must account for peak loads. The internal oscillator can be configured for lower frequencies (e.g., 1MHz) to reduce power, but this limits instruction throughput. Brown-out detection should be enabled and set to 2.7V or 4.3V thresholds depending on system stability requirements. Sleep modes (idle, power-down) can reduce current to under 1µA, but wake-up timing and peripheral retention must be evaluated against application response needs.
How does the ATMEGA168P-20PU compare to the ATMEGA168-20PU in terms of power efficiency and thermal behavior?
The ATMEGA168P-20PU is the low-power (P) variant of the ATMEGA168-20PU, featuring optimized CMOS process technology that reduces active and standby current by approximately 30–40% under identical conditions. For example, at 5V and 1MHz, the P-version draws around 1.5mA versus 2.5mA for the non-P version. This difference becomes more pronounced in sleep modes. Thermally, both share the same 28-PDIP package and junction-to-ambient resistance, but the lower power dissipation of the ATMEGA168P-20PU results in reduced self-heating, which improves long-term reliability in thermally constrained environments.
Can the ATMEGA168P-20PU reliably operate at 20MHz using only the internal RC oscillator?
The internal 8MHz RC oscillator in the ATMEGA168P-20PU can be calibrated to ±1% accuracy at 3.3V and 25°C, but frequency drift increases with temperature and voltage variation. To reach 20MHz, the PLL must multiply the internal clock by 6x, resulting in a 48MHz system clock that exceeds the 20MHz maximum specified for stable FLASH access. Therefore, sustained 20MHz operation requires an external crystal or resonator. For timing-critical applications like UART communication at high baud rates, an external 16MHz crystal with load capacitors is recommended to maintain signal integrity.
What are the real-world implications of the 1KB RAM size in the ATMEGA168P-20PU for firmware development?
With only 1KB of SRAM, the ATMEGA168P-20PU imposes strict constraints on stack depth, global variable usage, and dynamic memory allocation. A typical C program with nested function calls, interrupt service routines, and moderate use of strings or buffers can consume 300–500 bytes, leaving limited headroom. Recursive functions or large local arrays risk stack overflow. Developers should minimize use of stdio functions (e.g., printf) and prefer static allocation. Memory profiling during compilation and runtime stack monitoring are essential to prevent silent data corruption.
How does the 10-bit ADC in the ATMEGA168P-20PU perform in noisy industrial environments?
The ATMEGA168P-20PU integrates a 6-channel, 10-bit successive approximation ADC with a maximum sampling rate of 15kSPS at full resolution. In practice, effective resolution drops to ~9 bits in electrically noisy environments due to internal switching noise and supply ripple. To improve accuracy, use the internal 2.56V reference (if Vcc is stable), enable ADC noise canceler mode during sleep, and implement hardware averaging (e.g., 16-sample oversampling for 12-bit equivalent resolution). Input filtering with RC networks (e.g., 10kΩ + 100nF) is recommended for sensor inputs to suppress high-frequency interference.
Is the ATMEGA168P-20PU suitable for motor control applications requiring precise PWM timing?
The ATMEGA168P-20PU includes two 8-bit and one 16-bit timer with PWM outputs, capable of generating phase-correct and fast PWM signals up to 10-bit resolution. At 20MHz, the 16-bit timer can produce PWM frequencies from ~15Hz to 100kHz with fine duty cycle control. However, the absence of dedicated motor control peripherals (e.g., dead-time insertion or fault protection) means external circuitry is needed for H-bridge or stepper drivers. For brushed DC motor control, timer1 in fast PWM mode with a 20kHz carrier is commonly used to avoid audible noise, but software overhead for commutation must be factored into CPU load.
What are the trade-offs between using I2C and SPI for peripheral communication with the ATMEGA168P-20PU?
The ATMEGA168P-20PU supports both I2C (TWI) and SPI via hardware peripherals. SPI offers higher throughput (up to 10Mbps in master mode at 20MHz) and full-duplex communication, making it ideal for high-speed sensors or displays. However, it requires more I/O pins (typically 4) and lacks built-in addressing. I2C uses only two wires and supports multi-device buses, but maximum speed is limited to 400kbps (Fast-mode), and bus capacitance can degrade signal integrity over long traces. For connecting multiple low-speed devices (e.g., EEPROMs, sensors), I2C is more pin-efficient, while SPI is preferred for performance-critical links.
How should the watchdog timer in the ATMEGA168P-20PU be configured to balance system reliability and power consumption?
The watchdog timer (WDT) in the ATMEGA168P-20PU can be set to timeout intervals from 16ms to 8s. In battery-powered applications, longer intervals (e.g., 1s or 8s) reduce wake-up frequency and save power, but increase the risk of undetected lockups. Shorter intervals improve fault recovery but consume more energy due to frequent resets. A practical compromise is a 500ms timeout with periodic WDT reset in the main loop. Ensure that interrupt-heavy code does not delay the reset service routine, and disable the WDT during deep sleep unless brown-out detection is also active.
What precautions are necessary when programming the ATMEGA168P-20PU in a 28-PDIP package through a standard ICSP interface?
The 28-PDIP package of the ATMEGA168P-20PU allows for easy breadboarding and manual insertion, but parasitic inductance and capacitance can affect high-speed programming signals. Use short, shielded cables for the 6-pin ICSP header and ensure Vcc is stable during programming (4.5–5.5V recommended). The RESET pin must be pulled high via a 10kΩ resistor and driven low by the programmer. Avoid concurrent I/O activity on shared pins (e.g., MOSI, SCK) during programming. For field updates, consider enabling the bootloader section and reserving FLASH space, as the 16KB memory limits dual-bank firmware strategies.
Can the ATMEGA168P-20PU be used in automotive applications given its operating temperature range?
The ATMEGA168P-20PU is rated for -40°C to +85°C ambient temperature, which aligns with many under-hood or cabin applications not requiring full AEC-Q100 compliance. However, automotive environments often involve higher transient voltages, EMI, and thermal cycling. Without additional protection (e.g., TVS diodes, filtered power supply), the microcontroller may be susceptible to latch-up or reset events. While functional in non-safety-critical roles (e.g., interior lighting control), it lacks automotive qualification, so design-in should include rigorous environmental testing and redundancy where failure could impact vehicle operation.
How does the 512-byte EEPROM in the ATMEGA168P-20PU compare to using external serial EEPROMs for data logging?
The internal 512-byte EEPROM in the ATMEGA168P-20PU provides byte-level erase/write with 100,000 cycle endurance and no external components, making it ideal for storing calibration data or configuration settings. However, for data logging applications generating more than a few bytes per cycle, the limited size and wear constraints become problematic. External I2C EEPROMs (e.g., 24LC256 with 32KB) offer larger capacity and easier wear leveling but consume I/O pins and increase BOM cost. A hybrid approach—using internal EEPROM for critical parameters and external memory for logs—optimizes reliability and scalability.
What oscillator configuration yields the best timing accuracy for UART communication on the ATMEGA168P-20PU?
For UART communication, the ATMEGA168P-20PU’s internal RC oscillator introduces baud rate errors that can exceed 2% at common rates like 9600 or 115200 bps, risking framing errors. An external 16MHz crystal with 22pF load capacitors reduces error to under 0.5%, ensuring reliable communication. If cost or board space is constrained, the internal oscillator can be calibrated using the OSCCAL register and paired with baud rates that tolerate higher error (e.g., 19200 bps with 1MHz clock). Always verify timing with an oscilloscope or logic analyzer in the target environment.

Parts with Similar Specifications

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

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

ATMEGA168P-20PU Datasheet PDF

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

PCN Packaging
Transfer to Microchip/Label/Pkg 5/Sep/2016.pdf Boxes 07/Dec/2016.pdf
PCN Design/Specification
Copper Bonding Wire 23/Jul/2014.pdf Marking Chgs 11/Jul/2017.pdf
PCN Assembly/Origin
2.73KHz.pdf
HTML Datasheet
Cylindrical Battery Holders.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-20PU Image

ATMEGA168P-20PU

Microchip Technology
98D-ATMEGA168P-20PU

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