Design of microcontroller emulator based on SST89C54/58

Publisher:eta17Latest update time:2006-08-09 Source: 现代电子技术 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1 Overview

  SST89C54/58 (referred to as 89C54/58) is a multi-purpose 51 series microcontroller launched by the American SST Company. It integrates a 20 kB/36 kB SuperFlashE'PROM program memory, which is divided into BLOCK0 (16kB/32kB) and BLOCKl ( 4kB) two pieces. Among them, BLOCKl can be mapped to the highest or lowest end of the 64kB storage space, and it can be invisible to the program counter. Due to its unique advantages in storage structure, 89C54/58 is very suitable for use as a microcontroller emulator.

2 Program storage structure of SST89C54/58

2.1 Memory structure

  The memory block BLOCK0 in the 89C54/58 chip occupies the storage space from 0000H to 3FFFH/7FFFH, and BLOCKl occupies the storage space from F000H to FFFFH. The 89C54/58 storage structure is shown in Figure 1.

  When EA#=1, BLOCK0 is always visible to the program counter and is used for code access; BLOCK1 code access is achieved through the special function registers SFCM, SFCF, SFAL, SFAH, SFDT and SFST. . When SFCF[7]=1, BLOCK1 is visible.

2.2 Memory remapping (Re-mapping)

  The memory remapping function of 89C54/58 makes the system interrupt vector area still available when programming BLOCK0 (ordinary 8051 series microcontrollers do not have this feature). 89C54/58 provides 4 memory remapping methods. The number of memory remapping is controlled by MAP_ENCl: 0). When MAP-


3 Design of microcontroller emulator based on SST89C58

3.1 Introduction to design principle

  The emulator circuit design is shown in Figure 2 Show. In the figure, U2 is the serial communication interface chip MAX232, and U1 is 89C54/58. The monitoring program of 89C54/58 communicates with KEILC51 through the PC serial port to realize the real-time simulation function.

3.2 Loading of the emulator monitoring program

  The 89C54/58 emulator monitoring program SoftlCE (Softwareln-CircuitEmulator) provided by SST can be loaded through the BSL (Boot-Strap Loader) provided by SST or through a third-party program that supports SST89C54/58 device writes.

3.3 Introduction to emulator performance

  The microcontroller emulator based on 89C54/58 has all the functions of a general emulator except that it does not support serial port emulation. Combined with KEIL software, the simulation design of most microcontroller application systems can be completed.

  Its specific performance is as follows:

(1) IntelHEX format files can be downloaded.
(2) Support assembly and C51 source code debugging.
(3) Support online assembly.
(4) Supports single-step (Step) function.
(5) Supports StepOver function.
(6) A maximum of 10 fixed breakpoints and one temporary breakpoint can be set.
(?)Supports reading and writing data memory.
(8) Support reading and writing program memory.
(9) Support reading and writing special function registers.
(10)Support reading and writing ports.
(11) With IAP (1n-Application Programming) function.

3.4 KEIL software and settings

  KEIL C51 is a Windows version of the 8051 series microcontroller development kit launched by the German KEIL company. It can be used to compile C source programs, assemble source programs, link and locate target files and libraries, create HEX files and debug target programs. , and is embedded with the RTX51 real-time operating system, which can simplify the design of complex multi-task real-time application systems. When cooperating with the 89C54/58 emulator, the settings in the KEIL development environment are as follows:

(1) Create a project and select the SST microcontroller SST89C54/58.
(2) Select "Options for, Target 1/ from the menu.
(3) In the "Options for Target, Targetl" window, select to use KEILMonitor-51Driver, as shown in Figure 3.
(4) Double-click the Settings key in Figure 3 to set the target The parameters are shown in Figure 4, and the target program can be compiled and debugged.

4 Conclusion

  In summary, due to the unique memory structure of SST89C54/58, in addition to being used as a general-purpose 51 microcontroller, 89C54/58 only needs to be equipped with a small number of peripherals The circuit can be made into a 51 series microcontroller simulator. Combined with the powerful KEIL software, it provides a real-time simulation development environment for microcontroller engineers and can complete the design of most microcontroller application systems. Detailed design information can be obtained from the SST company website www. sst.com download.

Reference address:Design of microcontroller emulator based on SST89C54/58

Previous article:Interface Design of 51XA Microcontroller and Graphic LCD Display
Next article:Hydrographic cableway testing system constructed using AT89 microcontroller

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

Japan-South Korea trade war may affect memory price fluctuations
Following the Toshiba power outage in mid-June, the Japanese government recently announced that it would begin to control the export of three key materials needed for the production of semiconductors, smartphones and panels to South Korea from July 4, causing downstream module manufacturers in the memory industry to i
[Embedded]
Japan-South Korea trade war may affect memory price fluctuations
IneageOS ROM abandons Android 9 Pie, and many mobile phones will no longer be updated
      Foreign media 9to5 Google reported that as one of the most popular third-party Android ROMs, LineageOS has become the first choice for geeks who want to extend the life of old hardware. However, the LineageOS project will completely abandon the Android 9 Pie build version, making it impossible for 24 models to r
[Mobile phone portable]
Xiaomi MIUI Go exposed: small memory phones can run smoothly
      On April 15, developer kacskrz discovered a new version of MIUI called "MIUI Go", which is used for entry-level phones with less than 4GB of memory.   According to XDA, MIUI Go will be applied to a new Xiaomi POCO device, named Xiaomi POCO C40, which is an entry-level phone built by Xiaomi for overseas markets.
[Mobile phone portable]
Xiaomi MIUI Go exposed: small memory phones can run smoothly
S3C2416 bare metal development series 4_external memory initialization and code migration
It is impossible for the processor to have a large internal memory, and only a small piece of SRAM is reserved for chip startup. For example, the internal SRAM of S3C2416 is only 64k, of which 8k is used as SteppingStone to do some basic initialization and further guide the user's code startup. The user's code is ofte
[Microcontroller]
S3C2416 bare metal development series 4_external memory initialization and code migration
Innodisk's DRAM memory products pass compatibility certification
Recently, Innodisk, a world-renowned leading industrial storage manufacturer, announced that its DRAM memory module DDR4 product series has passed the compatibility certification of Haiguang CPU7000, 5000, and 3000 series products.       Haiguang certification   At the same time, Innodisk  DRAM  memory module DDR
[Embedded]
Innodisk's DRAM memory products pass compatibility certification
Qt for MCUs 2.6 released for microcontrollers: reducing ROM and other performance requirements, introducing Quick Ultralite new API
According to news on November 13, Qt for MCUs has now launched the official version 2.6. This version is based on "performance improvement" and claims to be able to improve the performance of related microcontrollers. MCU chips are microcontrollers, and Qt for MCUs is an embedded framework designed for these microcont
[Semiconductor design/manufacturing]
Xiaomi Redmi K30U parameters revealed: Dimensity 1000+, 12GB RAM
Recently, Redmi K30 Ultra obtained network access permission, model number is M2006J10C. At present, the core parameters of Redmi K30 Ultra have been announced by the Ministry of Industry and Information Technology, and there is no suspense. The website of the Ministry of Industry and Information Technology shows that
[Mobile phone portable]
In the era of big computing power, how to break the memory wall
In recent years, artificial intelligence applications have been experiencing a round of rapid development and popularization, and advanced large model technologies such as ChatGPT have played a key role in this process. The demand for computing power from these models continues to rise, spurring continuous innovation
[Network Communication]
In the era of big computing power, how to break the memory wall
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号