AT89S51 has the following features: 40 pins, 8k Bytes Flash on-chip program memory, 128 bytes of random access data memory (RAM), 32 external bidirectional input/output (I/O) ports, 5 interrupt priority levels, 2 levels of interrupt nesting, 2 16-bit programmable timer counters, 2 full-duplex serial communication ports, watchdog (WDT) circuit, and on-chip clock oscillator.
In addition, the AT89S52 is designed and configured with an oscillation frequency of 0Hz and a power saving mode that can be set by software. In idle mode, the CPU suspends work, while the RAM timer counter, serial port, and external interrupt system can continue to work. The power-down mode freezes the oscillator and saves the RAM data, stopping other chip functions until the external interrupt is activated or the hardware is reset. At the same time, the chip also has three packaging forms, including PDIP, TQFP, and PLCC, to meet the needs of different products.
Compared with AT89C51, AT89S51 has exactly the same appearance pins. The HEX program of AT89C51 can be directly run on AT89S51 without any conversion, and the results are the same. AT89S has some new functions compared to AT89C51, and supporting online programming and watchdog are the main features.
The main differences between them are as follows:
1. Pin function: The pins are almost the same, and the changes are that in AT89S51, P1.5, P1.6, and P1.7 have a second function, that is, the second function of these three pins constitutes the interface for serial ISP programming.
2. Programming function: AT89C51 only supports parallel programming, while AT89S51 not only supports parallel programming but also supports ISP online programming. In terms of programming voltage, in addition to the normal working 5V, the programming voltage of AT89C51 requires 12V Vpp, while AT89S51 only requires 4-5V.
3. Higher number of programming times: The nominal number of programming times of AT89S51 is 1000 times, but it is actually 1000-10000 times, which is more conducive to repeated programming for beginners and reduces the learning cost.
4. Higher operating frequency: The maximum operating frequency of AT89C51 is 24MHZ, while the maximum operating frequency of AT89S51 is 33MHZ, (AT89S51 chip has two models, supporting the maximum operating frequency of 24MHZ and 33MHZ respectively), thus having a faster computing speed.
5. Wider power supply range: AT89S51 has an operating voltage range of 4-5.5V, while AT89C51 cannot work properly when the voltage is lower than 4.8V or higher than 5.3V.
6. Stronger anti-interference ability: AT89S51 has an internal integrated watchdog timer, while AT89C51 needs an external watchdog timer circuit, or uses the internal timer of the microcontroller to form a software watchdog to achieve software anti-interference.
Previous article:Assembly language description of microcontroller/data block transfer
Next article:MCU Countdown Timer
Recommended ReadingLatest update time:2024-11-16 17:29
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- What is the difference between W(b) and b in assembly language?
- 【Silicon Labs BG22-EK4108A Bluetooth Development Evaluation】+Power-on and Example Program Test
- "Power amplifier experimental case" application of power amplifier in forward and reverse motion of ultrasonic motor
- Share: [Zhongke Blue News] AB32VG1 Review SDIO (File System)
- Design of audio products based on DSP
- 【Chuanglong Technology Allwinner A40i Development Board】Performance Comprehensive Test
- The idea of single chip microcomputer time-sharing control
- TI white paper "IQ: What is IQ and how to use it"
- How to quickly master a technology
- Totem pole in circuit,,,