1 Introduction
Single-chip microcomputer is an important course for electronics and other related majors, and is widely used in practical engineering. Various types of single-chip microcomputer courses and related experiments and comprehensive designs are offered in major technical secondary schools across the country. In the course design, graduation design and college student electronic competitions of these majors, single-chip microcomputer is also a very important development tool.
With the rapid development of computer technology, the use of EDA software for circuit simulation and design has become a trend. Many colleges and universities have introduced EDA technology in the reform of circuit practice teaching and established EDA laboratories. Equipped with EWB, Pspice, Multisim, Protel, MaxPlus II, SystemView and other related software and supporting hardware. However, these devices are powerless to simulate single-chip microcomputers. The EDA software introduced in this article, Proteus, is very different. Its biggest feature is that it can simulate single-chip microcomputers.
At present, Proteus has been widely used around the world. Thousands of universities abroad, including Stanford and Cambridge, use Proteus as a teaching and experimental platform for electronic engineering. In recent years, it has also spread in China, and some universities are experiencing the unique functions brought by Proteus and applying for university plans [1].
2 Introduction to Proteus
Proteus software is an EDA tool software developed by Labcenter Electronics in the UK, with a history of nearly 20 years. The software integrates advanced schematic layout, mixed-mode SPICE circuit simulation, PCB design and automatic wiring to realize a complete electronic design system. It is a mixed circuit simulation tool, including analog circuit simulation, digital circuit simulation, simulation of microcontrollers and their peripheral circuits, etc.
Proteus software consists of two software, ISIS and ARES. ISIS is a convenient electronic system simulation platform software, and ARES is an advanced wiring editing software [2]. ISIS is an easy-to-use and powerful schematic drawing tool that integrates SPICE simulation models and has a huge library structure of more than 8,000 components. ARES can generate PCB layout from ISIS simulation schematics.
Proteus supports many common microcontrollers, such as PIC series, AVR series, 8051 series, etc.; it also supports the simulation of ARM, PLD and various peripheral chips, such as character LCD and RAM based on HD44780 chip; it has debugging functions such as single-step operation and breakpoint setting; it can be debugged in collaboration with common compilers such as Keil, IAR, Proton, etc.; it has virtual instruments such as DC ammeter/voltmeter, AC voltmeter/ammeter, oscilloscope logic analyzer, frequency meter, etc., which provide convenience for measurement records in simulation; it supports graphical analysis functions, with graphical methods such as frequency characteristics and Fourier analysis, which can draw simulation curves beautifully.
3 Proteus application examples
The following takes the "digital voltmeter" based on 51 single-chip microcomputer as an example to explain the process of using Proteus and Keil software to design and simulate single-chip microcomputer systems.
First, draw the circuit diagram with Proteus ISIS (note that the peripheral circuit of the minimum system of MCU can be omitted during simulation). And write the corresponding program with Keil C51, and generate a .hex file after compiling correctly. Secondly, "download" the generated .hex file to the 51 chip. The steps are as follows: right-click AT89C51, then left-click, and the property dialog box of the corresponding component will appear. As shown in Figure 1, select the .hex file to be added in the "Program File" item of the dialog box. Finally, click the Play button to see the circuit simulation results (as shown in Figure 2): Adjust the size of the sliding rheostat, and the corresponding voltage value will change linearly. The simulation results are completely correct.
Figure 2 Proteus circuit simulation effect diagram
In addition, Proteus can also be debugged with Keil. The steps for debugging are as follows:
(1) Copy the VDM51.dll file in the installation directory ProteusMODELS to the C51BIN directory in the Keil installation directory.
(2) Modify the Tools.ini file in the Keil installation directory, add TDRV5=BINVDM51.DLL ("PROTEUS 6 EMULATOR") in the C51 field and save. Note: You do not have to use TDRV5. You can just select a non-repeating value based on the original field. The name in quotation marks is arbitrary.
(3) Open Proteus, draw the corresponding circuit, and select "Use Remote Debug Monitor" in the "Debug" menu of Proteus.
(4) Enter Keil's Project menu Option for Target'Project Name'. In the drop-down menu on the upper right column of the Debug option, select Proteus Driver. Then enter Settings, set the machine IP to 127.0.0.1 and the port number to 8000.
(5) Debug in Keil and view the intuitive results in Proteus. This way you can debug the program just like using an emulator.
From the above examples, we can see that Proteus can be easily connected to the Keil C51 integrated development environment. After the program is compiled, the system simulation combining software and hardware can be performed immediately. Using Proteus simulation, only a few devices are needed to complete the design of single-chip microcomputer systems, ranging from small revolving lanterns and electronic clocks to large motor control systems, which has obvious economic advantages. For students, it is easy to use and can increase their interest in learning. Of course, it has some shortcomings. For example, some component models are not available in the simulation model device library, or some models cannot be simulated due to the lack of simulation files [3].
4 Conclusion
The advantages of using Proteus for single-chip microcomputer system design outweigh the disadvantages. It can solve the problems of insufficient hardware investment and equipment maintenance difficulties in single-chip microcomputer laboratories, overcome the limitations of fixed hardware circuits in experimental boxes and difficult changes in experimental content, and promote curriculum and teaching reforms, and are more conducive to the cultivation of talents.
In the single-chip microcomputer course design and the National College Student Electronic Design Competition, we used the Proteus development environment to train students. Without the need for hardware investment, students generally reflected that learning single-chip microcomputers is easier to accept and improve than simply learning book knowledge. Practice has proved that the efficiency of single-chip microcomputer system design can be greatly improved by using Proteus to simulate and develop the system successfully before actual production. Therefore, Proteus has a high value of promotion and utilization.
References
[1] Wang Ning. Single-chip microcomputer simulation method based on Proteus software [J]. Journal of Shandong Institute of Light Industry, 2007, 21(1): 24-27.
[2] Lin Zhiqi, Lang Jianjun, et al. Single-chip microcomputer visual software and hardware simulation based on Proteus [M]. Beijing: Beijing University of Aeronautics and Astronautics Press, 2006.
[3] Li Haikun. Application of Proteus in single-chip microcomputer course design [J]. Computer Knowledge and Technology, 2006, 12: 208.
Received date: November 14 Revised date: November 25
Author profile: Zong Jingjing (1981-), female, teaching assistant, master student, research direction: single-chip microcomputer and signal processing.
Previous article:A revolutionary design for PC keyboards
Next article:Design of intelligent control system for small car based on HCSl2
Recommended ReadingLatest update time:2024-11-16 16:23
- Popular Resources
- Popular amplifiers
- MCU C language programming and Proteus simulation technology (Xu Aijun)
- Single-chip microcomputer C language programming and simulation
- 100 Examples of Microcontroller C Language Applications (with CD-ROM, 3rd Edition) (Wang Huiliang, Wang Dongfeng, Dong Guanqiang)
- Single chip microcomputer control technology (Li Shuping, Wang Yan, Zhu Yu, Zhang Xiaoyun)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- KiCad 5.1.7 was officially released on September 30th
- C2000 Real-time Control MCU Application in Electric Vehicles
- Qorvo's Zhou Ting: Towards an ideal ultra-broadband provider
- "It's OK as long as it works, what else do you need?" ST Industry Summit 2019 answer sheet completed and sent a mouse disassembly diagram
- Smart electric car seesaw
- Ultrasonic drive circuit
- Help: How many lines are needed for SWD debugging of stm32f407?
- How to use STM32 to read Windows vector fonts
- Recruiting part-time DSP and other related professional lecturers or technical support personnel
- [CC1352P Review] TI-RTOS uartecho test