An emulator reproduces the functionality of another system in a system. The difference from the computer simulation system (Computer SimulaTIon) is that the simulator is dedicated to imitating the external performance and behavior of the system, not the abstract model of the simulation system.
The emulator can replace the MCU in your target system to simulate its operation. The emulator runs the same as the actual target processor, but adds other features that allow you to observe the programs and data in the MCU through a desktop computer or other debug interface and control the MCU's operation.
The role of microcontroller simulatorThe SCM emulator is a development tool that replaces the SCM chip for hardware and software debugging in the electronic product development stage. With the integrated development environment using the emulator can be single-step tracking and debugging of the microcontroller program, you can also use breakpoints, full speed and other debugging tools, and observe the real-time data of various variables, RAM and registers, tracking the implementation of the program. At the same time, the hardware circuit can also be debugged in real time.
Using a microcontroller emulator can quickly find and eliminate logic errors in the program, greatly reducing the development cycle of the microcontroller. In the scene, only using the writer to write the MCU repeatedly, the method of developing by visually observing the results greatly increases the difficulty of debugging, prolongs the entire development cycle, and it is not easy to find many hidden errors in the program, especially for MCU development experience It is more difficult for beginners who are not rich. It can be seen that the development of single-chip microcomputer MCUs plays an important role. This article mainly shares with you the design details of the SST89C54/58 microcontroller emulator.
The Design of SST89C54/58 Single Chip Microcomputer EmulatorI. Overview
SST89C54/58 (89C54/58 for short) is a multi-purpose 51 series single chip microcomputer introduced by SST company in the United States. It integrates 20 kB/36 kB SuperFlash E'PROM program memory into BLOCK0 (16kB/32kB) and BLOCKl (4kB). Two pieces. Among them, BLOCKl can be mapped to the highest or lowest end of the 64kB memory space, and can be invisible to the program counter. Due to its unique storage architecture, the 89C54/58 is ideally suited for use as a microcontroller emulator.
Second, SST89C54/58 program storage structure
1, the memory structure
The 89C54/58 on-chip memory block BLOCK0 occupies the storage space from 0000H to 3FFFH/7FFFH, and BLOCK1 occupies the storage space from F000H to FFFFH. 89C54/58 storage structure shown in Figure 1.
When EA#=1, for the program counter, BLOCK0 is always visible for code access; BLOCK1 code access is achieved through the special function registers SFCM, SFCF, SFAL, SFAH, SFDT, and SFST. . When SFCF = 1, BLOCK1 is visible.
2. Re-mapping
89C54/58's memory re-mapping function makes the system interrupt vector area still available when programming BLOCK0 (normal 8051 series microcontrollers do not have this feature). The 89C54/58 provides four kinds of memory re-mapping methods. The size of the memory re-mapping quantity is controlled by MAP_ENCI:0) when MAP-
Third, based on SST89C58 microcontroller design
1. Introduction to design principle
The simulator circuit design is shown in Figure 2. U2 in the picture is the serial communication interface chip MAX232, U1 is 89C54/58. 89C54/58 supervisory procedure carries on the communication through the PC serial port and KEILC51, realizes the real-time simulation function.
2, simulator monitoring program
The 89C54/58 emulator monitoring program SoftlCE (Softwareln-CircuitEmulator) provided by SST can be loaded through the BSL (Boot-StrapLoader) provided by SST or through a third-party programmer supporting SST89C54/58.
3, simulator performance profile
The 89C54/58-based single-chip emulator has all the functions of the universal emulator except that it does not support serial port emulation. Combined with KEIL software, the simulation design of most SCM application systems can be completed.
Its specific performance is as follows:
(1) The Intel HEX format file can be downloaded.
(2) Support assembly and C51 source code debugging.
(3) Support online compilation.
(4) Supports the Step function.
(5) Supports StepOver function.
(6) Up to 10 fixed breakpoints and one temporary breakpoint can be set.
(7) Support reading and writing data storage.
(8) Support for reading and writing program memory.
(9) Supports reading and writing of special function registers.
(10) Supports read and write ports.
(11) With IAP (1n-ApplicaTIonProgramming) function.
4, KEIL software and settings
KEIL C51 is a Windows version of the 8051 series microcontroller development kit introduced by 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 embedded RTX51 real-time The operating system simplifies the design of complex multitasking real-time application systems. When working with the 89C54/58 emulator, set the following in the KEIL development environment:
(1) Create a project and select the SST microcontroller SST89C54/58.
(2) Select "OpTIons for, Target 1/" from the menu.
(3) In the "OpTIonsforTarget, Targetl" window, select KEILMonitor-51Driver, as shown in Figure 3.
(4) Double-click the Settings button in Figure 3, set the target parameters shown in Figure 4, you can compile the debug target program.
IV. Conclusion
In summary, due to the unique memory structure of the SST89C54/58, the 89C54/58 is used as a general-purpose 51-chip microcomputer. Only a small amount of peripheral circuits is required to complete the 51-series microcontroller emulator. Combined with powerful KEIL software, it provides a real-time simulation development environment for microcontroller engineers and can complete the design of most SCM application systems.
Capacitor For Electric Furnace
Capacitor for Electric Furnace, commonly referred to as capacitors, are capacitors, expressed in the letter C.Definition 1: a capacitor, as the name implies, is a "charging vessel", a device that holds charge.Capacitor.Capacitors are one of the most widely used electronic components in electronic equipment. They are widely used in the fields of interleaving, coupling, bypass, filtering, tuning circuit, energy conversion and control.Definition 2: a capacitor consisting of any two conductors (including wires) that are insulated from each other and are very close together.
Electronic Components Capacitors,High Voltage Capacitors,Low Frequency Capacitor,Water Pump Capacitor,Capacitor for Electric Furnace
YANGZHOU POSITIONING TECH CO., LTD. , https://www.pst-thyristor.com