Proteus is a multifunctional EDA software developed by labcentrelectronics company in UK. It has a powerful Isis intelligent schematic diagram input system, a very friendly man-machine interactive window interface, and rich operation menus and tools. In Isis editing area, it is convenient to complete the hardware design, software design, SCM source code level debugging and simulation.

Proteus has more than 30 component libraries, thousands of component simulation models, vivid dynamic component libraries and peripheral libraries. In particular, there are a variety of MCU type libraries from 8051 series 8-bit MCU to arm732 bit MCU. They are the basis of SCM system design and simulation.

Proteus has more than ten kinds of signal excitation sources and virtual instruments. There is also Proteus Advanced Chart simulation (ASF) for accurate measurement and analysis. They constitute a complete virtual laboratory of SCM system design and simulation.

Proteus also has a very convenient advanced wiring editing software (PCB) for printed circuit boards. In particular, it is pointed out that thousands of simulation models in Proteus are based on the data provided by manufacturers. Therefore, proteus design and simulation are very close to the reality.

At present, proteus has become a popular single-chip system design and simulation platform, which is used in various fields. Proteus is used to complete the development of a variety of products, such as: “microcomputer (single chip microcomputer) anti-theft alarm”, “pure water machine microcomputer control board”, “led Chinese character display”, “double single chip microcomputer control calendar countdown card” and so on. Practice has proved that Proteus is a flexible, efficient and correct design and simulation platform for the research and development of SCM application products, which significantly improves the research and development efficiency, shortens the research and development cycle, and saves the research and development cost.

Proteus reformed the research and development process of SCM application products

The traditional development process of single chip microcomputer system can be divided into three steps

① SCM system schematic design, selection, purchase of components and connectors, installation and electrical testing (referred to as hardware design);

② Carry out program design, debugging, assembly and compilation of single chip microcomputer system (software design for short);

③ SCM system online debugging, detection, real-time operation until completion (referred to as SCM system integrated debugging).

Proteus promotes the reform of SCM product development process. The SCM system development process with Proteus participation is generally divided into four steps

① On the Proteus platform, the circuit design of single-chip microcomputer system, the selection of components, connectors, connection circuit and electrical detection (Proteus circuit design for short) are carried out;

② Based on Proteus platform, the source program of MCU system is designed, edited, compiled and debugged. Finally, the object code file (. Hex) is generated;

③ On the Proteus platform, the object code file is loaded into the single-chip microcomputer system, and the real-time interaction and co simulation of the single-chip microcomputer system (proteus simulation for short) are realized;

④ After the simulation is correct, the actual MCU system circuit is installed, and the object code file (. Hex) is downloaded to the actual MCU to run and debug. In case of any problem, it can cooperate with Proteus design and Simulation for debugging until it runs successfully (referred to as actual product installation, operation and debugging). The author’s practice has proved that the actual system installed according to the Proteus simulation design, as long as the installation is correct, the components are correct, and the welding is reliable, it can basically pass smoothly.

The following takes the author’s “calendar countdown card controlled by dual single chip microcomputer” (hereinafter referred to as “countdown card”) as an example to discuss the development process and practical operation of Proteus in the research and development of single chip microcomputer application products. The “countdown sign” has been used in some middle schools as a warning sign for the countdown of the college entrance examination date. In order to simplify the discussion, this paper omits the lunar calendar, time and temperature and other parts. It consists of two AT89S51, DS1302 clock chips, 16 LED digital tubes and three dials for setting the initial value of countdown. Figure 1 shows its Proteus design and real-time simulation. On the right is the circuit controlled by two single chip microcomputers. In addition to the direct connection, the network label connection method provided by Proteus is also used for the circuit connection. The upper left part is the display part, and the lower left part is the three dials, the music warning horn and the three adjustment switches for setting the initial countdown. The crystal frequencies of U1 and U6 are set to 12Mhz and 6mhz respectively. The countdown card is easy to adjust, stable in performance and cost-effective.

Design of calendar countdown board based on Double MCU control

Figure 1 Proteus design and Simulation of countdown card

Proteus circuit design of “countdown card”

This is the first step in the product development process.

When Proteus is started, the Isis window for design and simulation will appear. Figure 2 shows the Isis interface of Proteus. Using mouse operation, very convenient. After the size of the drawing is designed and the file name is defined, the components needed for the design can be extracted from Proteus library according to the design needs and placed in Isis editing area for circuit connection and other circuit design. After the circuit is designed, the electrical testing tools provided by Proteus can be used to test the circuit. If there is an electrical error in the circuit, an information report will pop up. Electrical errors can be eliminated according to the report until success.


Design of calendar countdown board based on Double MCU control

Figure 2 Isis interface of “countdown” Proteus design

Proteus Software Design of countdown card

This is the second step in the product development process.

After Proteus has designed the hardware circuit, it is necessary to design the software of MCU. Because it is controlled by two single chip microcomputers, the software corresponding to U1 and U6 should be designed. Proteus provides the means to write the source program and compile to generate the object code file (HEX) in the Isis window interface. It can be realized by clicking the multi-level submenu of the menu item source in Isis. After writing the source program, you can left click the menu “source”, and left click the “build all” option in the pop-up submenu to compile the two source programs into their own object code files (wnl01.hex and CNTDAF.HEX )。 If there is an error in the source program, an error report will pop up. You can debug the error according to the report until the object code is generated. Figure 3 is the scene of editing source program in Isis. Only part of the program bars of two source programs are shown in the figure. Due to space relationship is not a complete procedure, if necessary, can send mail [email protected] Ask for.


Design of calendar countdown board based on Double MCU control

Figure 3 software design of Proteus of “countdown card”

Proteus simulation of “countdown card”

This is the third step in the product development process.

The first step is to load the object code and set the crystal frequency. Point the mouse at U1, right-click, and then left-click to pop up the “Edit component” dialog box as shown in Figure 4. Input its object code file “wnl01. Hex” in the “program file” box, input the crystal frequency of 12Mhz in the “clock frequency” box, and left click the “OK” button to complete the operation. Then point the mouse at U6, the same operation can be its object code file CNTDAF.HEX Load it into MCU U6. Then input the crystal frequency 6mhz in the “clock frequency” box.

Left click the simulation button to realize interactive and real-time simulation. The simulation fragment is shown in Figure 1.

In the simulation, the mouse can adjust the three dials to set the initial value of countdown time (the initial value in Figure 1 is set to “096”); the calendar can be corrected by adjusting the three buttons of “adjust calendar”, “adjust time” and “add one”.

When the countdown time value is reduced to 0, a warning music will sound in the horn.

Installation, operation and debugging of countdown brand

This is the fourth step in the product development process.

After the “countdown card” interactive real-time simulation is passed, you can go to Proteus pcbdesign to design PCB according to the design requirements, and pay attention to the scientific wiring in the design. Purchase components and connectors that meet the design requirements. Carefully install the actual “countdown card” hardware circuit. The object code file wnl01. Hex CNTDAF.HEX They are downloaded to the actual MCU U1 (AT89S51) and U6 (AT89S51) respectively, and are actually powered on.

Practice has proved that as long as the components are correct, the installation is correct and the welding is reliable, they can basically pass. So far, we have successfully completed the research and development of this single-chip microcomputer application product, saving labor, money and time.


Design of calendar countdown board based on Double MCU control

Figure 4 loading object code file and setting crystal frequency for U1

conclusion

Practice has proved that Proteus is a flexible, efficient and correct design and simulation platform for SCM application products, which reforms the R & D process of SCM application products and provides a complete virtual laboratory for the R & D of SCM application products.

Editor in charge: Tzh

Leave a Reply

Your email address will not be published. Required fields are marked *