Parallel port realizes ISP function of AT89S series microcontroller

Publisher:delta14Latest update time:2012-04-23 Source: OFweek Keywords:AT89S  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 based on the standard 80C51 and have an additional hardware function to implement the "serial programming interface logic" to support 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 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 development direction of single-chip microcomputers.

    2 AT89S series MCU ISP principle

    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 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

  • Keywords:AT89S  ISP  MCU Reference address:Parallel port realizes ISP function of AT89S series microcontroller

    Previous article:Design of temperature measurement experiment based on MSP430 single chip microcomputer
    Next article:Briefly describe the design and implementation of remote power safety measurement and control system

    Recommended ReadingLatest update time:2024-11-16 22:51

    Making every bit of MCU just right is a science
      According to data from market research firm IC Insights, global microcontroller (MCU) revenue is expected to grow by 9% in 2019 to $20.4 billion, and will grow at a high compound annual growth rate of 7.2% in the next five years. Faced with the endless application demands, how should MCU manufacturers take the init
    [Embedded]
    Making every bit of MCU just right is a science
    AVR MCU Features and Development Compilation Environment
    Editing and compiling software: WinAVR Simulation debugging software: AVR Stdio Download software: MuCodeISP The AVR microcontroller has a power-on reset function, and the minimum system does not require a reset circuit. The push and pull current capabilities of the AVR microcontroller IO port can reach 30mA, while
    [Microcontroller]
    Analysis of the differences between ARM and MCU
         1. Software     This is probably the biggest difference. The operating system was introduced. Why was the operating system introduced? What are the benefits?     1) Convenience. This is mainly reflected in the later development, that is, developing applications directly on the operating system. Unlike a single-ch
    [Microcontroller]
    IC decryption of MCU arithmetic instructions
      Summary of MCU arithmetic instructions, MCU addition instructions without carry bit   ADD A,#DATA ;Example: ADD A,#10H   ADD A, direct; Example: ADD A, 10H   ADD A,Rn; Example: ADD A,R7   ADD A,@Ri ; Example: ADD A,@R0   Purpose: Add the value in A to the value after it, and the final result is returned to
    [Microcontroller]
    MCS-51 microcontroller command system (1)
    Command system overview Instructions are instructions and commands used by the computer to control a specific action performed by various functional components. The set of instructions that a computer can recognize and execute is its instruction system. An instruction set is a set of codes that controls a computer t
    [Microcontroller]
    Design of Solar Energy Environmental Parameters Tester Based on AT89S52 Single Chip Microcomputer
    introduction In order to ensure that the solar power generation system can work normally, it is necessary to measure the various environmental parameters of the solar power generation system so as to effectively control its operation. This paper introduces a solar parameter tester based on a single-chip microco
    [Test Measurement]
    Design of Solar Energy Environmental Parameters Tester Based on AT89S52 Single Chip Microcomputer
    Counter based on STC51 microcontroller
    Design requirements:# Write a driver for the matrix keyboard Press the corresponding keys respectively. The digital tube will accumulate the corresponding values ​​of the keyboard and display Design Overview: According to the design requirements, the required single-chip microcomputer
    [Microcontroller]
    Counter based on STC51 microcontroller
    Design of light intensity detection circuit for milk composition detector based on single chip microcomputer
    1 Introduction Milk is becoming more and more common in people's daily life and diet. Real-time, fast and accurate detection of milk ingredients is of great significance to improving milk quality and realizing the automated management of dairy production process. There are many methods to detect milk ingredient
    [Test Measurement]
    Design of light intensity detection circuit for milk composition detector based on single chip microcomputer
    Latest Power Management Articles
    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号