What is the role of the emulator? Why use a microcontroller emulator?

The concept of simulation

The concept of simulation is actually very widely used. The ultimate meaning is to use controllable means to imitate the real situation. In the design of embedded systems, the scope of simulation applications is mainly focused on the simulation of the program. For example, in the development process of the SCM, the design of the program is the most important, but also the most difficult and most simple, and the most primitive development process: Write the program to program the chip verification function. This method can be used for simple small systems. It is impossible to use this method in large systems.

The concept of simulator

An emulator reproduces the functionality of another system in a system. The difference from Computer Simulation is that the simulator is dedicated to mimicking the external behavior and behavior of the system rather than modeling the abstract model of the 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.

What is the role of the emulator? Why use a microcontroller emulator?

What is the role of the emulator?

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

What is the role of the emulator? Why use a microcontroller emulator?

Why use an emulator?

In conversations with some experienced engineers, we will find that a considerable number of engineers do not use or few simulators in development. Ask them, the answer to the question is "The simulator is not reliable" but how do they solve the problems encountered in program development? Through in-depth exchanges, we understand that they are developing programs in such a way:

(1) Establish a hardware platform that meets the requirements based on its own design, if the platform involves more complicated procedures. It is also necessary to build a man-machine exchange channel man-machine exchange channel may be a simple light-emitting diodes, tube buzzer, the complex may be the serial port communication port LCD display.

(2) Write one of the simplest program examples, such as just continuously blinking the LED. After the program is compiled, it is programmed into the SCM chip to verify that the hardware platform is working properly.

(3) After the hardware platform works normally, the lowest level driver is written. After each program change, the microcontroller chip is verified. If you encounter problems during program verification, you may need to add some debugging tools to your program. For example, sending some information to the HyperTerminal on the PC through the serial port is used to understand the running status of the program.

(4) The system framework program is written after the low-level driver is completed. Since this part does not involve the hardware part, users in the program can generally find the problem.

However, more investigations show that engineers using the above methods do not always think that the designed program is very large or complex. Because when doing simple projects, we can use a light-emitting diode to express the internal information: If the program is complex, it may require more information to indicate the internal state, which may require serial port to assist debugging; if the program is more complicated , More hardware, more real-time, then engineers will have to enhance the debugging means more, the serial port may not be able to meet, need to be similar to the function of breakpoints, because I want to know at a certain moment the internal state of the microcontroller is how?

If the user program is modified very frequently, it may take a lot of time to write the chip again and again. At this time, the user will want to download the program and run the device.

Here, you will see that as users demand more and more, the debugging device has become more and more like a general-purpose simulator. Therefore, our recommendation is: Do not circumvent the use of emulators because using emulators can increase your development speed.

However, it cannot be denied that there is a reason for users to evade the use of emulators. Because the simulator is also an electronic device, it is highly dependent on the designer's level. If an emulator designer lacks the level, it will cause great problems for the user of the emulator. Because the user of the emulator will not know exactly what the problem is with the program or where it is. With the complexity of electronic devices, design engineers are facing unprecedented pressure. You can imagine that users have discovered that there is a problem in the program. First of all, it is a question in their own system. It may be software or hardware. Because the user system is in the development stage, the user basically does not doubt the simulator. In this case, users will spend a lot of energy in their own system to find non-existent problems. If the user finally finds that the problem originates from the emulator and is verified by burning the chip, the emulator user may gradually give up the emulator later.

Users abandon the use of simulators and have a huge impact on users. Because it was forgoing to use an imperfectly designed simulator and abandoned the use of other well-designed simulators, the key was to abandon reasonable development methods. Therefore, our recommendation is: Do not avoid using the simulator but choose a good simulator.

What is the role of the emulator? Why use a microcontroller emulator?

How to choose a good simulator

1, buy emulator precautions

1. There are many types of emulators. It is necessary to determine which chip to use and which version of the software to use. The price of the emulator varies greatly.

2, what chips do you support, what computer system, to meet your requirements choose a cost-effective downloader on it

3. The operating systems supported by various emulators are different, and the number of supported operating systems is also different. The supported software versions are also different, and the supported chip types are also different.

2, according to the need to select the simulator

1, you use the operating system xp, win7, win8 and 32-bit, 64-bit.

2, according to your computer type to determine the development software version types, such as ccs2.x, ccs3.x, ccs4.x, ccs5.x and so on.

3. The types of dsp chips supported by various simulators are different. Some support many, and some support only a few.

4, a variety of simulator simulation and download speeds are different.

5, a variety of simulator prices are different, so need to choose a cost-effective emulator based on the above points on the line.

What is the role of the emulator? Why use a microcontroller emulator?

Lead Free Piezo Discs & Rods

Barium titanate lead-free piezoelectric ceramics are important basic materials for the development of modern science and technology, which was widely used in the manufacture of ultrasonic transducers, underwater acoustic transducers, electroacoustic transducers, ceramic filters, ceramic transformers, ceramic frequency discriminators, high voltage generators, infrared detectors, surface acoustic wave devices, electro-optic devices, ignition and detonation devices, and piezoelectric gyroscope and so on.

Application: military, ocean, fishery, scientific research, mine detection, daily life and other fields.

lead free element used in fishfinder

Piezo Disc,Piezo Rod,Lead Free Piezo Rods,Lead Free Piezo Discs

Zibo Yuhai Electronic Ceramic Co., Ltd. , https://www.yhpiezo.com