Rainbow Electronics AT89S52 User Manual
Features, Description
1
Features
•
Compatible with MCS-51
®
Products
•
8K 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
•
256 x 8-bit Internal RAM
•
32 Programmable I/O Lines
•
Three 16-bit Timer/Counters
•
Eight 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
Description
The AT89S52 is a low-power, high-performance CMOS 8-bit microcontroller with 8K
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 AT89S52 is a powerful microcontroller which provides a
highly-flexible and cost-effective solution to many embedded control applications.
The AT89S52 provides the following standard features: 8K bytes of Flash, 256 bytes
of RAM, 32 I/O lines, Watchdog timer, two data pointers, three 16-bit timer/counters, a
six-vector two-level interrupt architecture, a full duplex serial port, on-chip oscillator,
and clock circuitry. In addition, the AT89S52 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 interrupt
or hardware reset.
Rev. 1919A-07/01
8-bit
Microcontroller
with 8K Bytes
In-System
Programmable
Flash
AT89S52
Document Outline
- Pin Configurations
- Features
- Description
- 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
- Timer 2
- Baud Rate Generator
- Programmable Clock Out
- 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