Opens in a new tab

Authorized electronic component supplier · 12,000+ part numbers in stock

MENU

Instant Quote

SEARCH PARTS

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.

Effective inventoryPCS

8500
in stock

SpecificationsTechnical data

Manufacturer part

AT89C52-20PC

Package

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

Brand

Atmel (Microchip)

Category

Integrated Circuits ICs, Microcontrollers (MCU)

Quality Commitment

Shipping & Payment

Service & Packaging

DescriptionProduct overview

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
01AT89C52-20PC · Product Introduction
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.
02AT89C52-20PC · Working Principle
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.
03AT89C52-20PC · Pin Description
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)
04AT89C52-20PC · Application Scenarios
  • 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
05AT89C52-20PC · Alternative Models
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

Request a quoteWithin 24h

Tell us the quantity you need. We confirm price and availability within one business day.

DatasheetPDF

Specifications subject to change by the manufacturer.

IC-Vendor · Sourcing

Verified stock, quoted fast.

AuthenticityOriginal parts
Lead time1 business day
ShippingDHL / FedEx / UPS

Recommended

Related parts you may need

PIC18F25K22-I

PIC18 XLP MCU, 32KB Flash, 1.5KB RAM, 256B EEPROM, 17-ch 10-bit ADC, 5 PWM, 2 comp, dual SPI/I2C, EUSART/LIN, CTMU, 64MHz, 28-pin

Brand: MICROCHIPPackage: 28-pin PDIP / SOIC / SSOP / QFN / UQFN

IN STOCK: 10732pcs

Cargo cycle: 3~7 Days

The minimum order is 1

PIC18F87K90-I/PT

8-bit PIC18F LCD MCU, 64KB Flash, 4KB RAM, 80-TQFP, industrial

Brand: MICROCHIPPackage: TQFP-80 (12 x 12 mm)

IN STOCK: 10528pcs

Cargo cycle: 3~7 Days

The minimum order is 1

PIC16LF1526-I

8-bit XLP PIC MCU, 14KB Flash, 768B RAM, 30-ch 10-bit ADC, 10 CCP, 2 EUSART, 2 SPI/I2C, 54 I/O, 1.8-3.6V low voltage, 64-pin

Brand: MICROCHIPPackage: 64-pin TQFP / QFN / UQFN

IN STOCK: 2792pcs

Cargo cycle: 3~7 Days

The minimum order is 1

PIC32MX795F512L-80I/PT

MIPS32 MCU, 80MHz, 512KB Flash, Ethernet, dual CAN, USB OTG, 100-TQFP

Brand: MICROCHIPPackage: 100-TQFP (14.0 x 14.0 x 1.0 mm)

IN STOCK: 5670pcs

Cargo cycle: 3~7 Days

The minimum order is 1

GD32F303CCT6

Cortex-M4 32-bit MCU, 120MHz, 256KB Flash, 48KB SRAM, LQFP-48

Brand: gigadevicePackage: LQFP-48 (7x7mm, 0.5mm pitch)

IN STOCK: 7002pcs

Cargo cycle: 3~7 Days

The minimum order is 1

PIC18F4331-I

PIC18 motor control MCU, 8KB Flash, 768B RAM, 256B EEPROM, 9-ch 10-bit 200Ksps ADC, 8 PWM, QEI encoder interface, 3 capture, SPI/I2C, EUSART/LIN, 40-pin

Brand: MICROCHIPPackage: 40-pin PDIP / 44-pin TQFP / QFN

IN STOCK: 5730pcs

Cargo cycle: 3~7 Days

The minimum order is 1

QUALITY COMMITMENT

Quality Commitment

Every order is sourced, inspected and documented so your production line receives parts that meet specification.

Authenticity & traceability

We supply original manufacturer parts or material from authorized distribution channels. Unless a listing states otherwise, parts are new and unused — not refurbished, re-marked or pulled from used equipment. Each shipment is traceable to its purchase lot, date code and supplier record.

Incoming inspection

  • Visual inspection of labels, packaging, marking and date codes.
  • Lot and quantity verification against the purchase order.
  • Moisture-sensitivity and ESD packaging checks.
  • Electrical and functional testing, curve tracing, X-ray or decapsulation available on request.

Documentation

Commercial invoice and packing list are included with every shipment. A Certificate of Conformance (CoC) showing part number, quantity, lot/date code and inspection result is available on request. RoHS/REACH declarations and conflict-minerals statements can be supplied for compliance programs.

Warranty & returns

Parts are warranted against manufacturer defects for 12 months from shipment unless otherwise agreed in writing. Quality claims should be raised within 30 days of receipt with photos, the quantity affected and lot/date-code information. Special-order and non-cancellable/non-returnable (NCNR) items are handled case by case.

Counterfeit prevention

Suspect material is quarantined, documented and never resold. Suppliers are screened and monitored, and we support customer audits and third-party verification when required.

SHIPPING & PAYMENT

Shipping & Payment

From same-day dispatch on stock lines to consolidated production shipments, we keep logistics and payment predictable.

Lead time

In-stock lines usually ship the same or next business day. For backorder and factory-order items, lead time is confirmed in the quotation before you commit.

Carriers & tracking

We ship worldwide with DHL, FedEx, UPS and SF Express. Tracking details are sent as soon as the shipment is handed to the carrier. Customer carrier accounts can be used on request.

Freight & insurance

Freight is quoted prepaid-and-added, collect, or included depending on the agreed Incoterm (EXW, FOB, CIF or DDP). Shipment insurance is available on request; risk passes according to the agreed Incoterm.

Payment methods

  • Bank transfer (T/T) in USD, EUR or CNY.
  • PayPal for smaller or sample orders.
  • Alipay / RMB transfer for domestic settlement.

A proforma invoice is issued for every order. New customers are normally prepaid; repeat customers may apply for net terms.

Order changes & cancellation

Please confirm changes before dispatch. Once material is allocated, cut tape/reel or shipped, cancellation may not be possible. Non-standard items are subject to NCNR terms.

Customs & duties

We provide commercial invoices and origin documentation. Import duties, taxes and customs clearance are the buyer’s responsibility unless DDP terms are agreed.

SERVICE & PACKAGING

Service & Packaging

Beyond supplying the part, we support BOM sourcing, value-added processing and packaging that fits your line.

BOM sourcing & kitting

Send your BOM and we will cross-reference alternatives, consolidate lines and quote shortages. Kitting and kit-level labeling are available for production and repair centers.

Value-added services

  • Programming and firmware loading.
  • Tape-and-reel, re-reeling and tray packing.
  • Baking and dry-pack for moisture-sensitive parts.
  • Barcode, QR and custom label generation.

Packaging options

Parts are packed in ESD-safe bags, moisture-barrier bags with desiccant and humidity indicator, tape-and-reel, trays, tubes or bulk cartons. Custom labels, mixed kits and drop-ship to your contract manufacturer can be arranged.

Documentation & traceability

Each package carries the part number, quantity, lot/date code and country of origin. Packing lists and CoCs can be formatted to match your receiving process.

After-sales support

For returns, please contact us with the invoice number, part number and reason. We will issue an RMA and instructions before material is returned. Technical and order-status questions are answered within one business day.