ISP brief introduction AT89S series microcontroller ISP principle analysis

Publisher:gamma13Latest update time:2018-04-12 Source: eefocusKeywords:ISP  MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

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.

ISP brief introduction AT89S series microcontroller ISP principle analysis


Figure 1 AT89S52 DIP40 pin diagram

ISP brief introduction AT89S series microcontroller ISP principle analysis


Figure 2 AT89S52 serial programming interface circuit diagram


Keywords:ISP  MCU Reference address:ISP brief introduction AT89S series microcontroller ISP principle analysis

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

STC12C5A60S2 MCU - Dual Serial Port Communication
The STC12C5A60S2 microcontroller is a powerful microcontroller. It has two full-duplex serial communication interfaces. The functions and operations of serial port 1 are the same as those of the traditional 51 microcontroller serial port. What is special is that there is an independent baud rate generator inside the S
[Microcontroller]
The single chip microcomputer controls the LED dot matrix to display the heart-shaped graphics and scroll
Question requirements: Display a heart-shaped graphic and keep scrolling Simulation circuit diagram: Simulation effect: C language program code: #include reg51.h #include intrins.h unsigned char  ldis = {0xFF,0xF3,0xE1,0xC1,0x83,0xC1,0xE1,0xF3}; unsigned char  hdis = {0x0,0x66,0x99,0x81,0x42,0x24,0x18,0x0}
[Microcontroller]
The single chip microcomputer controls the LED dot matrix to display the heart-shaped graphics and scroll
Bank and PC issues in PIC microcontrollers
Introduction: The bank and PC issues of PIC microcontrollers are often easy to cause errors when we look up tables and set up banks. The following editor will focus on the following two points. I hope it will be helpful to everyone. 1. BANK setting error: Let's look at a program first: include PORTDB EQU 20H … START
[Microcontroller]
What is the difference between 8-bit, 16-bit and 32-bit microcontrollers?
Does it refer to the width of the data processed by the CPU and the data length of the registers involved in the operation? If the bus width is the same as the data width processed by the CPU at one time, then this width is what is called the number of microcontroller bits. If the bus width is different from the w
[Microcontroller]
Simple Intelligent Robot Designed Based on AT89C51 Single Chip Microcomputer
introduction With the continuous development of microelectronics technology, the integration of microprocessor chips is getting higher and higher. Single-chip microcomputers can integrate CPU, memory, timer/counter, parallel and serial interface, watchdog, preamplifier, A/D converter, D/A converter and other circuit
[Industrial Control]
Simple Intelligent Robot Designed Based on AT89C51 Single Chip Microcomputer
MCU EEPROM page writing
When writing multiple bytes of data to EEPROM continuously, if you have to wait for several ms for each byte, the overall writing efficiency will be too low. Therefore, EEPROM manufacturers have come up with a solution to manage EEPROM in pages. The two models 24C01 and 24C02 have 8 bytes per page, while 24C04, 24C08,
[Microcontroller]
MCU EEPROM page writing
AVR microcontroller stopwatch Proteus simulation program TM1637 digital tube display
The microcontroller source program is as follows: /** *Copyright (c) 2018, 艁ukasz Marcin Podkalicki *December 13, 2009             *Simple timer (start/reset/stop) using one button and 7-segment display module based on TM1637.*             *Note that the internal clock used by this ATtiny13 project is not precise 
[Microcontroller]
AVR microcontroller stopwatch Proteus simulation program TM1637 digital tube display
Application of AT89C51 single chip microcomputer in the design of LED display screen control circuit
     LED display screen, also known as electronic display screen, is composed of LED dot matrix, which displays text, pictures, animations, and videos by turning on and off red or green lamp beads. The content can be changed at any time. It is usually composed of display module, control system and power supply system.
[Microcontroller]
Application of AT89C51 single chip microcomputer in the design of LED display screen control circuit
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号