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.

15000

Effective Inventory
Go to Inquiry

Image for reference only

Manufacturer Part:

AT89S51

Package:

PDIP-40 / TQFP-44 / PLCC-44

Other recommendations you may be interested in.
Description

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

The AT89S51 is an enhanced 8-bit microcontroller from Atmel (now Microchip Technology), based on the classic 80C51 architecture with added features including In-System Programmable (ISP) Flash, watchdog timer, and dual data pointers. It provides 4KB of ISP Flash program memory that can be programmed in-circuit via a simple serial interface (MOSI/MISO/SCK on P1.5/6/7 pins), eliminating the need for removal from the circuit board or a high-voltage parallel programmer. The device includes 128 bytes of internal RAM, 32 general-purpose I/O lines organized into four 8-bit ports, two 16-bit timer/counters with four operating modes each, a full-duplex UART, and six interrupt sources with two priority levels. Key enhancements over the older AT89C51 include: a built-in watchdog timer for system reliability, dual data pointers (DPTR0/DPTR1) for more efficient memory block operations, a power-off flag for detecting brown-out conditions, and interrupt recovery from power-down mode. With a maximum clock frequency of 33MHz, the AT89S51 achieves approximately 3 MIPS throughput. The device supports two power-saving modes: Idle mode stops the CPU while maintaining RAM, timers, serial port, and interrupt system; Power-down mode saves RAM contents while halting the oscillator, consuming minimal power and can be awakened by external interrupt or hardware reset. The AT89S51 is still in active production and is available in PDIP-40, TQFP-44, and PLCC-44 packages, serving a wide range of cost-sensitive embedded control applications from industrial automation to consumer electronics.

The AT89S51 is based on the standard 80C51 Harvard architecture with separate program and data memory spaces, featuring 12 clock cycles per machine cycle. The CPU fetches instructions from the 4KB Flash program memory through an 8-bit program memory bus, executing them with an 8-bit ALU. A key improvement over the AT89C51 is the dual data pointer feature (DPTR0 and DPTR1), which allows fast switching between two 16-bit data pointers for efficient memory block copy and table lookup operations via the AUXR1 register. The watchdog timer (WDT) is a 14-bit counter with a 3-bit prescaler that generates a reset if not periodically refreshed by software, providing system fail-safe protection. The ISP programming feature allows reprogramming the Flash memory while the chip remains in the target circuit: when RST is held high, a serial programming interface on P1.5 (MOSI), P1.6 (MISO), and P1.7 (SCK) is activated, supporting both byte-level and page-level programming operations. The maximum ISP clock frequency is 1/16 of the system clock. Power-down mode can be exited by either a hardware reset or an external interrupt — a significant improvement over the AT89C51 which only supported reset wake-up. The power-off flag (POF) in the PCON register is set by hardware when VCC drops below the power-off threshold, enabling software to detect and handle brown-out conditions. Port 0 is open-drain and serves as the multiplexed low address/data bus for external memory access, requiring external pull-up resistors when used as general-purpose I/O.

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)
  • 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
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
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, 8KB Flash, 256B RAM, 32 I/O, 3 timers/counters, UART, 20MHz, PDIP-40 through-hole, Atmel AT89C52-20PC, NRND use AT89S52.

Package:

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

In stock:

8500pcs

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.