AT89C52-20PC


8-bit 8051 MCU, 8KB Flash, 256B RAM, 32 I/O, 3 timers/counters, UART, 20MHz, PDIP-40 through-hole, Atmel AT89C52-20PC, NRND use AT89S52.

8500

Effective Inventory
Go to Inquiry

Image for reference only

Manufacturer Part:

AT89C52-20PC

Package:

PDIP-40 / DIP-40 (through-hole)

Other recommendations you may be interested in.
Description

Product Overview

The AT89C52-20PC is a low-power, high-performance CMOS 8-bit microcontroller from Atmel (now Microchip), featuring 8KB of in-system programmable Flash memory and 256 bytes of internal RAM. Based on the industry-standard 80C51 architecture and instruction set, the AT89C52 is fully compatible with MCS-51 products while offering enhanced features and higher integration. The device provides three 16-bit timer/counters (compared to two in the standard 8051), 32 programmable I/O lines, a full-duplex serial UART port, and eight interrupt sources. The on-chip Flash memory can be reprogrammed in-system or via a conventional nonvolatile memory programmer, supporting 1,000 write/erase cycles. Operating at up to 20MHz (this specific -20PC speed grade), the AT89C52 delivers up to 2 MIPS of processing throughput. The device supports low-power idle and power-down modes for battery-powered applications. Packaged in a 40-pin PDIP (Plastic Dual In-line Package) with through-hole mounting, the AT89C52-20PC is widely used in education, prototyping, and cost-sensitive embedded control applications. Note: This device is not recommended for new designs; consider the AT89S52 (with ISP, watchdog timer, and dual data pointer) as a recommended replacement.

Key Specifications

Parameter Conditions Min Typ Max Unit
Core Architecture 8-bit 80C51 (MCS-51 compatible)
Operating Voltage (VCC) 4.0 5.0 5.5 V
Clock Frequency 0 Hz to max 0 20 MHz
Flash Program Memory In-System Programmable 8 KB (8192 bytes)
Flash Endurance Write/Erase cycles 1000 cycles
Internal RAM 256 x 8-bit (256 bytes)
External Memory Code + Data 64KB each (addressable)
Program Memory Lock 3-level lock bits
I/O Pins 4 ports x 8 bits 32 programmable I/O lines
Timer/Counter 0 16-bit, Mode 0/1/2/3 16-bit Timer/Counter
Timer/Counter 1 16-bit, Mode 0/1/2/3 16-bit Timer/Counter
Timer/Counter 2 16-bit, with capture 16-bit Timer/Counter (auto-reload)
Total Timers Three 16-bit timer/counters
Serial Port (UART) Full duplex 1 UART (Mode 0/1/2/3)
Interrupt Sources 8 interrupt sources, 2 priority levels
Interrupt Vectors INT0, INT1, T0, T1, Serial, T2 (6 vectors)
Oscillator External crystal / RC oscillator
Oscillator Pins XTAL1, XTAL2
Power Supply Current Active, 12MHz 25 mA
Idle Mode Current 6.5 mA
Power-down Mode Current 50 μA
Operating Temperature Commercial (PC suffix) 0 +70 °C
Package 40-pin PDIP (Plastic Dual In-line Package), through-hole
Programming Method Parallel programmer (12V VPP)
ISP Support No (parallel programming only)

Features

  • Compatible with MCS-51 (8051) instruction set and pinout
  • 8KB bytes of In-System Programmable (ISP) Flash memory
  • 1,000 write/erase cycle endurance
  • 256 x 8-bit internal RAM (double of standard 8051)
  • Three-level program memory lock (code protection)
  • 32 programmable I/O lines (Port 0, 1, 2, 3)
  • Three 16-bit timer/counters (T0, T1, T2)
  • Timer 2 with capture and auto-reload modes
  • Eight interrupt sources with two priority levels
  • Full-duplex programmable serial channel (UART)
  • Fully static operation: 0 Hz to 20 MHz
  • Low-power Idle and Power-down modes
  • On-chip oscillator and clock circuitry
  • External memory interface (64KB code + 64KB data)
  • Boolean processor (bit manipulation instructions)
  • 128 software breakpoints support
  • 40-pin PDIP package (through-hole mounting)
  • Wide industry adoption and extensive code base

Pin Configuration (PDIP-40)

Pin No. Name Description
1 P1.0 (T2) Port 1 bit 0 / Timer 2 external input
2 P1.1 (T2EX) Port 1 bit 1 / Timer 2 reload/capture
3-8 P1.2 – P1.7 Port 1 bits 2-7 (general purpose I/O)
9 RST Reset input (active high)
10 P3.0 (RXD) Port 3 bit 0 / Serial receive
11 P3.1 (TXD) Port 3 bit 1 / Serial transmit
12 P3.2 (INT0) Port 3 bit 2 / External interrupt 0
13 P3.3 (INT1) Port 3 bit 3 / External interrupt 1
14 P3.4 (T0) Port 3 bit 4 / Timer 0 input
15 P3.5 (T1) Port 3 bit 5 / Timer 1 input
16 P3.6 (WR) Port 3 bit 6 / Write strobe (external RAM)
17 P3.7 (RD) Port 3 bit 7 / Read strobe (external RAM)
18 XTAL2 Oscillator output
19 XTAL1 Oscillator input
20 GND Ground (0V)
21-28 P2.0 – P2.7 Port 2 bits 0-7 (high address byte)
29 PSEN Program Store Enable (external code read)
30 ALE/PROG Address Latch Enable / Programming pulse
31 EA/VPP External Access enable / Programming voltage
32-39 P0.0 – P0.7 Port 0 bits 0-7 (low address/data bus, open-drain)
40 VCC Supply voltage (+5V)

Applications

  • Embedded control systems
  • Industrial automation and control
  • Consumer electronics
  • Home appliances
  • Educational and learning platforms
  • Development boards and prototyping
  • Motor control and drive circuits
  • LED displays and control panels
  • Simple communication interfaces
  • Security systems
  • Toys and games
  • Legacy 8051-based system maintenance

The AT89C52-20PC is a classic 8-bit microcontroller from Atmel (now Microchip Technology), built on the industry-standard 80C51 architecture. It features 8KB of in-system programmable Flash program memory, 256 bytes of internal RAM (double the capacity of the standard 8051), and three 16-bit timer/counters (T0, T1, T2) — with Timer 2 offering capture and auto-reload modes not found on the basic 8051. The device provides 32 general-purpose I/O pins organized into four 8-bit ports (P0-P3), a full-duplex UART serial port, and eight interrupt sources with two priority levels. The on-chip Flash memory supports 1,000 write/erase cycles and features three levels of program memory lock for code protection. Operating at up to 20MHz clock frequency, the AT89C52 achieves approximately 2 MIPS throughput. The device includes two power-saving modes: Idle mode stops the CPU while maintaining RAM, timers, serial port, and interrupts; Power-down mode saves RAM contents but halts the oscillator for minimal power consumption. The -20PC suffix indicates a 20MHz maximum frequency, commercial temperature range (0 to +70°C), and PDIP-40 through-hole package. This device is not recommended for new designs; AT89S52 with ISP (in-system programming), watchdog timer, and dual data pointer is the recommended successor. Despite being legacy, the AT89C52 remains extremely popular in education, prototyping, and cost-sensitive embedded applications due to its simplicity, low cost, and vast ecosystem of code examples and development tools.

The AT89C52 is a Harvard architecture 8-bit microcontroller based on the Intel 8051 design, featuring separate program and data memory spaces. The CPU fetches instructions from Flash program memory and executes them using an 8-bit ALU, with 12 clock cycles per machine cycle (standard 8051 architecture). The 8KB Flash memory stores the user program and can be programmed via parallel programming with 12V VPP (not in-system programmable via serial — that requires AT89Sxx series). The 256 bytes of internal RAM are split: the lower 128 bytes are directly addressable for general purpose use and register banks, while the upper 128 bytes are only indirectly addressable and share addresses with Special Function Registers (SFRs). Timer/Counter 0 and 1 each support 4 modes (13-bit, 16-bit, 8-bit auto-reload, and split 8-bit), while Timer 2 adds 16-bit auto-reload and capture modes. The UART supports four modes including variable baud rate (typically driven by Timer 1 overflow). Port 0 is an 8-bit open-drain I/O port that serves as the multiplexed low address/data bus for external memory access. Port 2 provides the high address byte. Port 3 has multiple alternate functions including serial communication, external interrupts, timer inputs, and memory read/write strobes. Reset occurs when RST is held high for at least two machine cycles. The ALE signal pulses at 1/6 the oscillator frequency and is used to latch the low address byte during external memory accesses.

Pin No. Name Type Description
1 P1.0 / T2 I/O Port 1 bit 0 / Timer 2 external count input
2 P1.1 / T2EX I/O Port 1 bit 1 / Timer 2 reload/capture trigger
3-8 P1.2 – P1.7 I/O Port 1 bits 2 through 7 (general purpose I/O with pull-ups)
9 RST Input Reset input (active high, 2 machine cycles)
10 P3.0 / RXD I/O Port 3 bit 0 / Serial port receive
11 P3.1 / TXD I/O Port 3 bit 1 / Serial port transmit
12 P3.2 / INT0 I/O Port 3 bit 2 / External interrupt 0
13 P3.3 / INT1 I/O Port 3 bit 3 / External interrupt 1
14 P3.4 / T0 I/O Port 3 bit 4 / Timer 0 external input
15 P3.5 / T1 I/O Port 3 bit 5 / Timer 1 external input
16 P3.6 / WR I/O Port 3 bit 6 / External RAM write strobe
17 P3.7 / RD I/O Port 3 bit 7 / External RAM read strobe
18 XTAL2 Output Oscillator amplifier output (connect to crystal)
19 XTAL1 Input Oscillator amplifier input / internal clock input
20 GND Power Ground (0V)
21-28 P2.0 – P2.7 I/O Port 2 bits 0-7 / High address byte (A8-A15)
29 PSEN Output Program Store Enable (external code memory read)
30 ALE/PROG Output Address Latch Enable / Programming pulse input
31 EA/VPP Input External Access enable / Programming voltage (12V)
32-39 P0.0 – P0.7 I/O Port 0 bits 0-7 / Address/data bus (AD0-AD7), open-drain
40 VCC Power Supply voltage (+4.0V to +5.5V, typical 5V)
  • Industrial control and automation systems
  • Consumer electronic products
  • Home appliance control
  • Education and university 8051 courses
  • Development boards and learning platforms
  • Motor and stepper motor control
  • LED matrix and 7-segment display control
  • Security and access control systems
  • Toys, games, and hobby projects
  • Legacy system maintenance and replacement
  • Simple sensor interfacing
  • Battery chargers and power supplies
Model Manufacturer Key Difference
AT89S52-24PU Atmel/Microchip Recommended successor – ISP, WDT, dual DPTR, 24MHz
STC89C52RC STC (宏晶) Chinese 8051 clone with ISP, similar pinout
AT89C51 Atmel 4KB Flash, 128B RAM, 2 timers (smaller version)
AT89S51 Atmel 4KB Flash, ISP, 2 timers, WDT
STC89C516RD+ STC 64KB Flash, enhanced 8051, ISP
Recommend Parts
8-bit AVR MCU, 128KB Flash, 4KB SRAM, 4KB EEPROM, 53 I/O, 16MHz/16MIPS, 4 timers, 2 USARTs, 8-ch 10-bit ADC, JTAG debug, QFN-64/MLF, Atmel ATMEGA128A-MU.

Package:

QFN-64 / MLF-64 (9x9x1.0mm, 5.4mm EP)

In stock:

4500pcs

Cargo cycle: 3~7 Days
The minimum order is 1

Go to Inquiry
8-bit AVR MCU, 128KB Flash, 8KB SRAM, 4KB EEPROM, 86 I/O, 16MHz/16MIPS, 6 timers, 4 USARTs, 16-ch 10-bit ADC, JTAG debug, TQFP-100, Atmel ATMEGA1280-16AU, Arduino Mega.

Package:

TQFP-100 (14x14mm)

In stock:

3200pcs

Cargo cycle: 3~7 Days
The minimum order is 1

Go to Inquiry
ARM7TDMI 32-bit MCU, 256KB Flash, 64KB SRAM, 55MHz/55MIPS, 10-bit ADC x 8ch, USB FS, USART, SPI, SSC, TWI, PWM x 4ch, PDC, AIC, LQFP-64, Atmel AT91SAM7S256D-AU.

Package:

LQFP-64 (10x10mm)

In stock:

2800pcs

Cargo cycle: 3~7 Days
The minimum order is 1

Go to Inquiry
8-bit 8051 MCU, 4KB ISP Flash, 128B RAM, 32 I/O, 2 timers, UART, watchdog timer, dual DPTR, 33MHz, ISP programming, PDIP-40, Atmel AT89S51.

Package:

PDIP-40 / TQFP-44 / PLCC-44

In stock:

15000pcs

Cargo cycle: 3~7 Days
The minimum order is 1

Go to Inquiry
PMU + stereo audio codec, 2x DCDC buck (600mA), 4x LDO, 100dB DAC, 96dB ADC, 60mW headphone amp, I2S/TWI, RTC, 10-bit ADC, QFN-64, Atmel AT73C246.

Package:

QFN-64 (7.5×7.5×0.9mm)

In stock:

1800pcs

Cargo cycle: 3~7 Days
The minimum order is 1

Go to Inquiry
30W PoE PD + DC-DC controller, IEEE 802.3af/at Type1/Type2, 2-event classification, integrated surge protection, current-mode PWM, 80-500kHz, flyback/forward/buck, Akros Silicon AS1138.

Brand:

Package:

SOIC-20 / SOP-20

In stock:

2800pcs

Cargo cycle: 3~7 Days
The minimum order is 1

Go to Inquiry
Quality Assurance

Quality is the core foundation of our long-term global cooperation. With over 20 years of experience in the electronic component industry, Materialparts has built a strict and standardized quality management system covering component sourcing, incoming inspection, full-batch testing, packaging and delivery. We are committed to delivering 100% genuine, high-reliability electronic components for industrial control, automotive electronics, consumer electronics and medical device industries, and fully safeguarding your production and R&D projects.

1. Authorized & Genuine Sourcing Promise

All of our electronic components are procured from official authorized distributors and original manufacturers. We strictly reject counterfeits, refurbished parts, disassembled components and gray-market goods. Every product is guaranteed to be brand-new original parts and fully consistent with the original technical parameters. For branded products such as NXP IC series, we maintain complete supply channel documents to realize full product traceability.

2. Strict Full-batch Quality Inspection

We implement 100% full-batch quality control for all goods before shipment. Our professional QC team conducts multi-dimensional tests including appearance inspection, electrical parameter testing, performance verification and packaging check. Each batch of components is attached with complete inspection reports and batch records. We stick to zero-tolerance standards for defective products to ensure every piece of component meets industrial application requirements.

3. Industry Standard Compliance

Our products comply with a variety of international industry quality standards to adapt to high-standard application scenarios:
  • Automotive Electronics: All automotive-grade components pass AEC-Q series certification, featuring excellent stability and durability to adapt to complex vehicle operating environments.
  • Medical Devices: High-reliability components meet medical industry safety and compliance regulations, ensuring stable operation for medical equipment.
  • Industrial Control & Consumer Electronics: Products conform to universal international electronic industry standards, suitable for long-term continuous operation of various equipment.

4. Professional Reliability Control

For static-sensitive, moisture-sensitive and precision components such as ICs, PCBs, sensors and connectors, we carry out reliability screening in advance. Combined with standardized ESD anti-static packaging and vacuum moisture-proof packaging, we avoid component damage caused by static electricity, dampness or collision during storage and transportation, and retain the original performance of products.

5. Traceability Management System

We establish a complete product traceability system. Each batch of goods corresponds to independent batch number, sourcing record, inspection record and delivery record. Customers can query the whole lifecycle information of components at any time. This system effectively solves quality risks and facilitates after-sales handling and production quality control for your company.

6. After-sales Quality Guarantee

If any product is confirmed to have non-conformity quality problems due to our reasons after receipt, we provide free return, exchange and supplementary delivery services. Our professional quality team will also conduct root cause analysis to optimize our quality control process. We respond to quality feedback within 24 hours to resolve your worries efficiently.

Contact Us

If you have inquiries about our quality standards, inspection procedures or product certification documents, please feel free to contact us:

 

Email: info@ic-vendor.com
Tel / WhatsApp: +86 13760382860
Address: Room 2919, Guoli Building, Huaqiang North, Futian District, Shenzhen, Guangdong, China

 

Shipping & Payment

Materialparts is a professional global supplier of electronic components with over 20 years of industry experience. We provide one-stop supply of passive components, integrated circuits, as well as parts for industrial control, automotive electronics, consumer electronics and medical devices. Below are the unified shipping and payment policies applicable to all orders, samples and bulk purchases worldwide.

1. Payment Terms

We offer a variety of secure and convenient payment methods to meet diverse business cooperation needs. Details are as follows:
  1. Accepted Payment Methods
  • T/T (Bank Wire Transfer): The primary settlement method for bulk orders and a widely used international payment channel.
  • PayPal: Ideal for small orders, sample orders and quick payments.
  1. Settlement Currency

     

    US Dollar (USD) is the default settlement currency. RMB is available for domestic customers.

  2. Bank Charges

     

    All transfer fees, intermediary bank charges and other remittance-related expenses shall be borne by the buyer.

  3. Payment Requirements
  • Sample and small orders: Shipment will be arranged upon full payment.
  • In-stock bulk orders: Goods will be delivered within 2 to 3 working days after full payment.

2. Shipping & Delivery

We partner with leading global logistics providers to ensure safe and fast delivery worldwide. Relevant details are listed below:
  1. Logistics Partners
  • International Express: DHL, FedEx, UPS, TNT
  • Economy Logistics: Air freight and sea freight for large-volume cargo
  • Domestic Delivery: SF Express, Yunda Express
  1. Order Processing Time
  • In-stock items: Orders confirmed and fully paid before 14:00 (GMT+8) will be shipped on the same day. All other orders will be dispatched within 1 to 2 working days.
  • Out-of-stock or sourced items: The delivery lead time will be confirmed separately according to brand and inventory status.
  1. Estimated Transit Time
  • International Express: 3 – 7 working days globally
  • Air Freight: 7 – 12 working days
  • Sea Freight: 25 – 40 working days for heavy and large bulk cargo
  1. Shipping Fee Rules
  • Shipping cost is calculated based on package weight, volume, destination and delivery method.
  • Both freight prepaid and freight collect are available. Please provide your courier account number in advance if you choose freight collect.
  • Free international express delivery is offered for large orders. Terms for long-term partners can be negotiated separately.
  1. Shipment Tracking
     

    Within 24 hours after dispatch, we will send the tracking number, commercial invoice, packing list and other documents to your email or communication account. You may check the shipment status online in real time.

3. General Order Rules & Notes

  1. MOQ & Sample Service

     

    We support flexible minimum order quantities for samples, small-batch and large-batch orders. All sample orders shall comply with the above shipping and payment policies.

  2. Packaging Standard

     

    All electronic components are packed with professional anti-static and shockproof materials. Original factory packaging is available for branded chips and integrated circuits.

4. Customs & Liability Statement

  1. Import Duties & Taxes

     

    All import duties, customs clearance fees and local taxes incurred for international shipments shall be borne by the buyer. We will provide complete customs documents to assist you with clearance procedures.

  2. Handling of Lost or Damaged Goods
  • In case of loss or severe damage during transit, please contact us within 48 hours after receiving the tracking information. We will assist you in filing a claim with the logistics provider.
  • We shall not be liable for any losses caused by incorrect delivery address, wrong contact information or the buyer’s refusal to complete customs clearance.

5. Local Pickup in Shenzhen

Local pickup service is available for customers in Shenzhen and surrounding areas:
  • Address: Room 2919, Guoli Building, Huaqiang North, Futian District, Shenzhen, Guangdong Province, China
  • Business Hours: 09:00 – 18:00, Monday to Friday. Closed on weekends and official public holidays.
  • Notice: Please make an appointment via email or communication tools one day in advance, and present your order information upon pickup.

Contact Information

Email: info@ic-vendor.com

Tel / WhatsApp: +86 13760382860

Service & Packaging

Materialparts is a professional electronic component supplier based in Shenzhen, China, with over 20 years of global trading experience. We integrate component procurement, quality inspection, technical support, customized packaging, and global delivery services to provide one-stop supply chain solutions. Our business covers industrial control, automotive electronics, consumer electronics, medical devices and other industries. We always adhere to genuine sources, stable supply and considerate after-sales service.

Core Services

1. One-stop Sourcing & BOM Support

We specialize in a full range of passive and active electronic components, including SMD resistors, power resistors, connectors, aviation connectors, LED beads, flexible circuit boards, printed circuit boards, and integrated circuits. Our professional team provides BOM list consolidation, component matching, and alternative model recommendation services. We support sample orders, small-batch trial production, and mass production orders with flexible MOQs to meet diverse procurement needs.

2. Genuine Product Guarantee & Full-process Quality Inspection

All products are sourced from official authorized channels and are 100% original genuine parts. Every batch of goods undergoes strict full-process quality inspection before delivery, with complete batch records and traceability documents provided. Our products comply with AEC-Q standards for automotive electronics and high-reliability specifications for medical devices. We eliminate counterfeits, refurbished parts and defective products from the source to secure your project production.

3. Fast Quotation & Order Processing

Our customer service team responds promptly to inquiries and quotation requests. All in-stock orders will be processed within one working day. We provide stocking reservation services for long-term cooperative customers, effectively solving problems such as component shortages and unstable supply chains.

4. Professional Technical Support

Our senior engineer team provides free technical consultation, model selection guidance and original manufacturer datasheets. We assist customers in solving problems related to product R&D, circuit design and component application, providing reliable technical support for project progress.

5. Sourcing for Special Components

Relying on our global supply chain network, we professionally source scarce components, obsolete parts and customized special components to efficiently solve your procurement difficulties.

6. Global Logistics & Document Services

We cooperate with mainstream international logistics providers including DHL, FedEx, UPS and TNT to achieve fast global delivery. We can provide complete export documents such as customs declaration files, commercial invoices and packing lists to ensure smooth customs clearance for international shipments. Local pickup is also available for customers in Shenzhen, China.

Professional Packaging Standards

Electronic components are sensitive to static electricity, collision, moisture and dust. We adopt industry-standard anti-static packaging solutions to fully ensure the integrity of goods during transportation and storage.

1. General Packaging Specifications

  • All components are packed separately to avoid damage caused by friction and collision;
  • Shockproof buffer materials are added for fragile products to ensure transportation safety;
  • Each package is clearly marked with part number, quantity, batch number and specifications for easy inventory counting and management.

2. Classified Professional Packaging

  • Anti-static Packaging: Static-sensitive components such as chips, circuit boards and sensors are packaged with anti-static bags, shielding boxes and conductive foam in strict accordance with international anti-static standards to prevent static damage.
  • Vacuum Moisture-proof Packaging: Moisture-sensitive components are vacuum-sealed with desiccants to isolate humid air, suitable for ocean transportation and long-term storage.
  • Original Factory Packaging: Integrated circuits of brands such as NXP are delivered with original reels, trays or tubes by default, retaining complete original packaging and adapting to automated SMT production lines.
  • Discrete Device Packaging: Discrete devices such as SMD resistors, power resistors and LEDs are quantitatively and classifiedly packaged with accurate quantity and clear marking.
  • Connector / Aviation Connector Packaging: Hard outer packaging is adopted to prevent pin bending and structural deformation.

3. Custom Packaging Services

We provide value-added services including personalized packaging, custom labeling and re-reeling according to customer requirements, fully matching your production and warehouse management standards.

Contact Information

For service consultation or packaging customization, please feel free to contact us:
Email: info@ic-vendor.com
Tel / WhatsApp: +86 13760382860
Address: Room 2919, Guoli Building, Huaqiang North, Futian District, Shenzhen, Guangdong, China
 

Online Inquiry Form

Support Excel, PDF, CSV format files for full BOM list quotation

Submit your component procurement and custom packaging needs via the form below. We will provide a detailed quotation and professional solution within 1–8 working hours.