AT89S51
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.
Effective inventoryPCS

SpecificationsTechnical data
Manufacturer part
AT89S51
Package
PDIP-40 / TQFP-44 / PLCC-44
Brand
Atmel (Microchip)
Category
Integrated Circuits ICs, Microcontrollers (MCU)
Quality Commitment
Shipping & Payment
Service & Packaging
DescriptionProduct overview
Product Overview
The AT89S51 is a low-power, high-performance CMOS 8-bit microcontroller from Atmel (now Microchip) featuring 4KB of In-System Programmable (ISP) Flash memory. As an enhanced successor to the classic AT89C51, the AT89S51 maintains full compatibility with the 80C51 instruction set and pinout while adding significant improvements including serial ISP programming, a watchdog timer, dual data pointers, and a power-off flag. The device integrates 128 bytes of internal RAM, 32 general-purpose I/O lines, two 16-bit timer/counters, a full-duplex UART serial port, and six interrupt sources with two priority levels. With a maximum operating frequency of 33MHz, the AT89S51 delivers approximately 3 MIPS of throughput. The ISP feature allows programming the Flash memory in-circuit via a simple SPI-compatible serial interface (MOSI/MISO/SCK on Port 1 pins 5/6/7), eliminating the need for a separate high-voltage parallel programmer. The device supports low-power Idle and Power-down modes, with Power-down mode supporting interrupt recovery. The AT89S51 is available in PDIP-40, TQFP-44, and PLCC-44 packages, making it suitable for both through-hole prototyping and surface-mount production. This device is still in production status and is widely used in cost-sensitive embedded control applications.
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 | 33 | MHz | |
| Flash Program Memory | In-System Programmable | 4 KB (4096 bytes) | |||
| Flash Endurance | Write/Erase cycles | 1000 | cycles | ||
| Flash Data Retention | 10 | years | |||
| Internal RAM | 128 x 8-bit (128 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 | 16-bit Timer/Counter (4 modes) | |||
| Timer/Counter 1 | 16-bit | 16-bit Timer/Counter (4 modes) | |||
| Total Timers | Two 16-bit timer/counters | ||||
| Serial Port (UART) | Full duplex | 1 UART (Mode 0/1/2/3) | |||
| Interrupt Sources | 6 interrupt sources, 2 priority levels | ||||
| Watchdog Timer (WDT) | Yes, built-in | ||||
| Dual Data Pointer | Yes (DPTR0, DPTR1) | ||||
| Power-off Flag | Yes (POF flag) | ||||
| In-System Programming (ISP) | Serial via SPI pins | Yes (MOSI/MISO/SCK on P1.5/6/7) | |||
| ISP Mode | Byte mode and Page mode | ||||
| Oscillator | External crystal / RC oscillator | ||||
| Idle Mode Current | mA | ||||
| Power-down Mode Current | μA | ||||
| Power-down Recovery | Interrupt and hardware reset wake-up | ||||
| Operating Temperature | -40 | +85 | °C | ||
| Package | PDIP-40, TQFP-44, PLCC-44 | ||||
Features
- Compatible with MCS-51 (80C51) products – instruction set and pinout
- 4KB bytes of In-System Programmable (ISP) Flash memory
- 1,000 write/erase cycles endurance
- 128 x 8-bit internal RAM
- Three-level program memory lock
- 32 programmable I/O lines
- Two 16-bit timer/counters (T0, T1)
- Six interrupt sources with two priority levels
- Full-duplex UART serial channel
- Watchdog Timer (WDT) with on-chip oscillator
- Dual Data Pointer (DPTR0, DPTR1) for efficient memory access
- Power-off Flag (POF) for brown-out detection
- Interrupt recovery from Power-down mode
- Fully static operation: 0 Hz to 33 MHz
- Low-power Idle and Power-down modes
- On-chip oscillator and clock circuitry
- Fast programming time
- Flexible ISP programming (byte and page mode)
- ISP interface on P1.5 (MOSI), P1.6 (MISO), P1.7 (SCK)
- Available in PDIP-40, TQFP-44, PLCC-44 packages
- Industrial temperature range (-40 to +85°C)
Applications
- Embedded control systems
- Industrial automation
- Consumer electronics
- Home appliances
- IoT and smart sensors
- LED lighting control
- Motor control
- Security systems
- Development boards and education
- Battery chargers
- Toys and games
- Power supply controllers
01AT89S51 · Product Introduction
02AT89S51 · Working Principle
03AT89S51 · Pin Description
PDIP-40 pinout (through-hole package):
| Pin No. | Name | Type | Description |
|---|---|---|---|
| 1-4 | P1.0 – P1.3 | I/O | Port 1 bits 0-3 (general purpose I/O with internal pull-ups) |
| 5 | P1.4 | I/O | Port 1 bit 4 |
| 6 | P1.5 / MOSI | I/O | Port 1 bit 5 / ISP MOSI input |
| 7 | P1.6 / MISO | I/O | Port 1 bit 6 / ISP MISO output |
| 8 | P1.7 / SCK | I/O | Port 1 bit 7 / ISP SCK clock input |
| 9 | RST | Input | Reset input (active high) |
| 10 | P3.0 / RXD | I/O | Port 3 bit 0 / UART receive |
| 11 | P3.1 / TXD | I/O | Port 3 bit 1 / UART 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 input |
| 15 | P3.5 / T1 | I/O | Port 3 bit 5 / Timer 1 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 output (crystal connection) |
| 19 | XTAL1 | Input | Oscillator input / external 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) for external memory |
| 29 | PSEN | Output | Program Store Enable, active low (external code read) |
| 30 | ALE/PROG | Output | Address Latch Enable output / Programming pulse (ISP) |
| 31 | EA/VPP | Input | External Access enable (high = internal Flash first) |
| 32-39 | P0.0 – P0.7 | I/O | Port 0 bits 0-7 / Multiplexed address/data bus (AD0-AD7), open-drain |
| 40 | VCC | Power | Supply voltage (+4.0V to +5.5V) |
04AT89S51 · Application Scenarios
- Industrial automation and process control
- Consumer electronics and home appliances
- IoT sensor nodes and smart devices
- LED lighting and display control
- DC motor and stepper motor control
- Security and access control systems
- Battery chargers and power management
- Educational platforms and training kits
- Hobbyist projects and prototyping
- White goods control
- Automotive aftermarket accessories
- Simple data acquisition systems
05AT89S51 · Alternative Models
| Model | Manufacturer | Key Difference |
|---|---|---|
| AT89S52 | Atmel/Microchip | 8KB Flash, 256B RAM, 3 timers, Timer 2 (bigger brother) |
| AT89C51 | Atmel | Classic version, no ISP, no WDT (parallel programming only) |
| STC89C52RC | STC | Chinese 8051 with ISP, 8KB Flash, enhanced features |
| AT89LP51 | Atmel | Enhanced single-cycle 8051 core, lower power |
| STC15W408AS | STC | Enhanced 8051, 1T architecture, 8KB Flash |
Request a quoteWithin 24h
Tell us the quantity you need. We confirm price and availability within one business day.
IC-Vendor · Sourcing
Verified stock, quoted fast.
Recommended

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
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
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
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
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
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
IN STOCK: 5730pcs
Cargo cycle: 3~7 Days
The minimum order is 1
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
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
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.
