Rainbow Electronics АТ89С51 User Manual
Features, Description

1
Features
•
Compatible with MCS-51
®
Products
•
4K Bytes of In-System Programmable (ISP) Flash Memory
– Endurance: 1000 Write/Erase Cycles
•
4.0V to 5.5V Operating Range
•
Fully Static Operation: 0 Hz to 33 MHz
•
Three-level Program Memory Lock
•
128 x 8-bit Internal RAM
•
32 Programmable I/O Lines
•
Two 16-bit Timer/Counters
•
Six Interrupt Sources
•
Full Duplex UART Serial Channel
•
Low-power Idle and Power-down Modes
•
Interrupt Recovery from Power-down Mode
•
Watchdog Timer
•
Dual Data Pointer
•
Power-off Flag
•
Fast Programming Time
•
Flexible ISP Programming (Byte and Page Mode)
Description
The AT89S51 is a low-power, high-performance CMOS 8-bit microcontroller with 4K
bytes of in-system programmable Flash memory. The device is manufactured using
Atmel’s high-density nonvolatile memory technology and is compatible with the indus-
try-standard 80C51 instruction set and pinout. The on-chip Flash allows the program
memory to be reprogrammed in-system or by a conventional nonvolatile memory pro-
grammer. By combining a versatile 8-bit CPU with in-system programmable Flash on a
monolithic chip, the Atmel AT89S51 is a powerful microcontroller which provides a
highly-flexible and cost-effective solution to many embedded control applications.
The AT89S51 provides the following standard features: 4K bytes of Flash, 128 bytes of
RAM, 32 I/O lines, Watchdog timer, two data pointers, two 16-bit timer/counters, a five-
vector two-level interrupt architecture, a full duplex serial port, on-chip oscillator, and
clock circuitry. In addition, the AT89S51 is designed with static logic for operation
down to zero frequency and supports two software selectable power saving modes.
The Idle Mode stops the CPU while allowing the RAM, timer/counters, serial port, and
interrupt system to continue functioning. The Power-down mode saves the RAM con-
tents but freezes the oscillator, disabling all other chip functions until the next external
interrupt or hardware reset.
8-bit
Microcontroller
with 4K Bytes
In-System
Programmable
Flash
AT89S51
Rev. 2487A–10/01
Document Outline
- Features
- Description
- Pin Configurations
- Block Diagram
- Pin Description
- Special Function Registers
- Memory Organization
- Watchdog Timer (One-time Enabled with Reset-out)
- Using the WDT
- WDT During Power-down and Idle
- UART
- Timer 0 and 1
- Interrupts
- Oscillator Characteristics
- Idle Mode
- Power-down Mode
- Program Memory Lock Bits
- Programming the Flash – Parallel Mode
- Programming the Flash – Serial Mode
- Programming Interface – Parallel Mode
- Flash Programming and Verification Characteristics (Parallel Mode) TA = 20˚C to 30˚C, VCC = 4.5 t...
- Flash Programming and Verification Waveforms – Serial Mode
- Absolute Maximum Ratings*
- DC Characteristics
- AC Characteristics
- External Program and Data Memory Characteristics
- External Program Memory Read Cycle
- External Data Memory Read Cycle
- External Data Memory Write Cycle
- External Clock Drive Waveforms
- External Clock Drive
- Serial Port Timing: Shift Register Mode Test Conditions
- Shift Register Mode Timing Waveforms
- AC Testing Input/Output Waveforms(1)
- Float Waveforms(1)
- Ordering Information