1. ISP Overview
At present, technicians engaged in the design and development of single-chip microcomputers generally use the following common methods to develop single-chip microcomputer products: first, use single-chip microcomputer simulation equipment to simulate and debug hardware and software, and then use a program burner to solidify the debugged target code into the program memory of the single-chip microcomputer. In this process, the program burner is an indispensable development tool. The program burner is generally expensive, which is a considerable expense for beginners and will directly affect the enthusiasm of beginners to further learn and develop single-chip microcomputers. In addition, every time the source program is modified, the single-chip microcomputer chip must be removed from the target board, and then the updated target code is re-solidified into the single-chip microcomputer chip. In this way, the chip and circuit board will be physically damaged due to frequent plugging and unplugging of the single-chip microcomputer chip during debugging. The disadvantages of programming single-chip microcomputers with the help of a program burner are that the burning equipment is expensive, the burning operation is cumbersome, and it is not convenient to implement in-system programming (ISP). In order to overcome the above shortcomings and limitations, some new compatible products of 80C51 are designed with serial programming capabilities, that is, the hardware function of implementing "serial programming interface logic" is set inside the chip.
In recent years, ATMEL has continuously improved and launched the AT89S series of microcontrollers (including AT89S51, AT89LS51, AT89S52, AT89LS52, AT89S53, AT89LS53, AT89S8252, AT89LS8252.AT89S8253, AT891.58253 and other models), which have gradually replaced the original AT89 series and AT89C series microcontrollers. The AT89S series microcontrollers are designed with an additional "serial programming interface logic" hardware function based on the standard 80C51, supporting the in-system programming (ISP) of the microcontroller chip.
ISP is system online programming, which means that blank devices on the circuit board can be programmed to write the end-user code without removing the device from the circuit board. For the programmed devices, ISP can also be used to erase or reprogram them. The implementation of ISP is relatively simple. The usual practice is that the program memory inside the chip can be rewritten by the software of the host computer through the synchronous serial communication interface SPI. For the single-chip microcomputer, the data sent by the host computer can be received through SPI or other serial interfaces and written into the program memory. The advantage of ISP technology is that the single-chip microcomputer can be experimented and developed without a programmer, which not only saves the cost of single-chip microcomputer development, but also avoids the trouble of frequently plugging and unplugging chips during debugging. ISP technology is the future direction of single-chip microcomputer development.
2. ISP principle of AT89S series microcontroller
The AT89S series microcontrollers launched by ATMEL support ISP function. The AT89S52 microcontroller in the AT89S series has strong functions and high performance-price ratio. Therefore, this article uses the typical chip AT89S52 in the AT89S series microcontroller as an example to introduce the ISP principle of the AT89S series microcontroller.
The AT89S52 microcontroller has an online programming function, that is, when the RST pin is at a high level, the program download function is realized by setting or transmitting the data of the three pins P1.5/MOSI (serial data input terminal), P1.6/MISO (serial data output terminal), and P1.7/SCK (synchronous clock signal input terminal). The pin diagram of the AT89S52 microcontroller 40-pin dual in-line package (DIP40 for short) is shown in Figure 1, and the serial programming interface of the AT89S52 microcontroller is shown in Figure 2.
Figure 1 AT89S52 DIP40 pin diagram
Figure 2 AT89S52 serial programming interface circuit diagram
Previous article:Design and working principle of intelligent laboratory control system
Next article:Design of signal source system based on DBPL coded signal
Recommended ReadingLatest update time:2024-11-16 15:29
- Popular Resources
- Popular amplifiers
- Wireless Sensor Network Technology and Applications (Edited by Mou Si, Yin Hong, and Su Xing)
- Modern Electronic Technology Training Course (Edited by Yao Youfeng)
- Modern arc welding power supply and its control
- Small AC Servo Motor Control Circuit Design (by Masaru Ishijima; translated by Xue Liang and Zhu Jianjun, by Masaru Ishijima, Xue Liang, and Zhu Jianjun)
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
- How to achieve aperture tuning
- Black Gold's FPGA is really bad
- This amplifier is a bit figurative, isn't it?
- ad19.0.10 3D display problem
- LPC1114 temperature sensor DS18B20 program
- Why is there only one channel with data when using STM32's TIMER to capture DMA?
- Amazing! TI launches smart high-tech clothing to help curb teenage obesity
- EEWORLD University ---- TPS65218D0: User Programming of Multi-Rail Power Management IC (PMIC)
- DAPLink version upgraded to 0254
- The withstand voltage of film capacitors