Analytical solution highlighting the advantages of single chip microcomputer control system

Publisher:asdfrewqppLatest update time:2012-07-02 Source: 21icKeywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

With the rapid development of electronic technology and microcomputers, the rapid development and widespread application of microcomputer control technology have been promoted. Small and medium-sized single-chip microcomputer control systems have been widely used in intelligent mechatronics products in industrial production and daily life. In the design and development process of single-chip microcomputer control systems, we must not only highlight the degree of automation and intelligence of the equipment, but also pay attention to the working stability of the control system, otherwise the superiority of the control system cannot be reflected.

1. Main causes and phenomena of system interference

Since the working environment of the single-chip control system application system is often harsh and complex, the reliability and safety of its application has become a very prominent issue. The single-chip control system application must run stably and reliably for a long time, otherwise it will lead to increased control errors, and in severe cases, the system will fail and even cause huge losses.

The main factors that affect the reliable and safe operation of the single-chip control system application are various electrical interferences from inside and outside the system, as well as system design, component selection, installation, manufacturing process and external environmental conditions. The interference consequences of these factors on the control system are mainly manifested in the following aspects.

(1) Increased data acquisition error. Interference invades the input channel of the analog signal of the measurement unit of the single-chip control system and is superimposed on the useful signal, which will increase the data acquisition error, especially when the sensor outputs a weak signal.

(2) Control state failure. The control signal output by the microcomputer often depends on the state input signals of certain conditions and the logical processing results of these signals. If these input state signals are disturbed and false state signals are introduced, the output control error will increase, or even control failure will occur.

(3) Data changes due to interference. In a single-chip microcomputer control system, since the RAM memory can be read/written, the data in the RAM may be tampered with under interference. In a single-chip microcomputer system, programs, tables, and constants are stored in the program memory to prevent these data from being damaged by interference, but the data in the internal RAM and external RAM may change due to external interference. Depending on the interference entry path and the nature of the interfered data, the system will be damaged in different ways. Some will cause data errors, some will cause control failures, some will change the program status, and some will change the working status of certain components (such as timers/counters, serial ports, etc.).

(4) Program operation is abnormal. The normal operation of the program counter in the single-chip control system is the key to the system maintaining the normal operation of the program. If the counter value changes due to external interference, the normal operation of the program will be disrupted. Since the counter value is random after interference, the program will be confused. Usually, the program will execute a series of meaningless instructions and finally enter a "dead loop", which will cause serious output confusion or system failure.

2. Analysis and methods of system reliability design

The reliability technology applied in the single-chip control system involves all aspects of the production process, not only related to design, manufacturing, inspection, installation, and maintenance, but also related to production management, quality monitoring system, and the professional level and quality of the users. Here we mainly analyze the most commonly used methods to improve system reliability from a technical perspective.

The internal factors that lead to unstable system operation are mainly the following three points:

(1) The performance and reliability of the components themselves. Components are the basic units that make up the system. The quality and stability of their characteristics directly affect the performance and reliability of the entire system. Therefore, in reliability design, the first task is to select components so that they meet the requirements in terms of long-term stability and accuracy level. With the development of microelectronics technology, the reliability of electronic components has been continuously improved. Now the actual failure rate of low-power transistors and small and medium-sized IC chips is about 10×10-9/h. This provides a good foundation for improving system performance and reliability.

(2) System structure design. This includes hardware circuit structure and operating software design. Circuit design requires that the layout of components or lines be reasonable to eliminate electromagnetic coupling and mutual interference between components. Optimized circuit design can also eliminate or weaken the impact of external interference on the entire system, such as decoupling circuits, balancing circuits, etc. At the same time, redundant structures can also be used, also known as fault-tolerant technology or fault masking technology. It is a design method that improves system reliability by increasing the number of parallel or spare units (including hardware units or software units) that perform the same function. When some components fail, it does not affect the operation of the entire system. To reduce external electromagnetic interference, electromagnetic compatibility design can be used, the purpose is to improve the adaptability of the single-chip microcomputer system in the electromagnetic environment, that is, to maintain the ability to complete the specified functions. Commonly used hardware measures for electromagnetic interference resistance include filtering technology, decoupling circuits, shielding technology, grounding technology, etc.

Software is the unique feature of microcomputer systems that distinguishes them from other general electronic devices. The reliability of system operation can be further improved by reasonably compiling software. Commonly used software measures are: First, information redundancy technology. For the application of single-chip microcomputer control systems, maintaining signal information and important data is the main aspect of improving reliability. In order to prevent information loss due to system failures and other reasons, important data or files are often multiplexed, and one or more "copies" are copied and stored in different spaces. Once a certain interval or a backup is destroyed, it is automatically re-copied from other parts to restore the information. Second, time redundancy technology. In order to improve the reliability of single-chip microcomputer control system applications, a certain operation or a certain program can be repeatedly executed, and the execution result can be compared with the previous result to confirm whether the system is working normally. Only when the two results are the same, it is recognized and the next step is performed.

If the two results are different, you can repeat the execution once again. When the third result is the same as one of the previous two, it is considered that the other result is caused by an accidental fault and should be eliminated. If the three results are different, it is preliminarily determined to be a permanent hardware fault and further inspection is required. This method is to exchange time for reliability, which is called time redundancy technology, also known as repeated detection technology. The third is fault automatic detection and diagnosis technology. For complex systems, in order to ensure that faulty devices or unit modules can be detected in time so that useful units can be replaced in time, it is necessary to conduct online testing and diagnosis of the system. There are two purposes for doing this: one is to determine the normality of the action or function; the other is to point out the fault location in time and shorten the maintenance time. The fourth is software reliability technology: the running software of the single-chip microcomputer control system is a specific reflection of the various functions to be implemented by the system. The main sign of software reliability is whether the software truly and accurately describes the various functions to be implemented. Therefore, the degree of understanding of the production process is directly related to the quality of software writing. The prerequisite for improving software reliability is that the designer has a deep understanding of the production process and makes the software easy to read, test and modify. The fifth is the fail-safe technology: some important systems, once a failure occurs, it is hoped that the entire system should be in a safe or insurance state. In addition, there are common digital filtering, program operation monitoring and fault automatic recovery technology.

(3) Installation and debugging. The installation and debugging of components and the entire system are important measures to ensure system operation and reliability. Although the components are strictly selected and the overall system design is reasonable, the expected effect cannot be achieved if the installation process is rough and the debugging is not strict.

The external factors that lead to unstable system operation refer to the unreliable factors in the system operation caused by external equipment or space conditions in the working environment of the single-chip microcomputer control system, which mainly include the following points: First, external electrical conditions, such as the stability of power supply voltage, the influence of strong electric and magnetic fields, etc.; second, external space conditions, such as temperature, humidity, air cleanliness, etc.; third, external mechanical conditions, such as vibration, impact, etc.

To ensure the reliable operation of the system, a good external environment must be created. For example: take shielding measures, stay away from equipment that generates strong electric field interference; strengthen ventilation to reduce ambient temperature; install tightly to prevent vibration, etc.

The selection of components is fundamental, reasonable installation and debugging is the basis, system design is the means, and the external environment is the guarantee. These are the basic principles followed by reliability design and run through the entire process of system design, installation, debugging, and operation. In order to achieve these principles, corresponding hardware or software measures must be taken, which is the fundamental task of reliability design.

During the development process of small and medium-sized single-chip microcomputer control systems, combined with the working environment in actual applications, the above-mentioned system anti-interference optimization design measures and methods can basically effectively improve the working stability of the single-chip microcomputer system, and fully demonstrate the superiority of the single-chip microcomputer control system in improving the automation performance and intelligence of electromechanical equipment without increasing the control cost.

Keywords:MCU Reference address:Analytical solution highlighting the advantages of single chip microcomputer control system

Previous article:Analytical solutions for issues such as single chip microcomputer output and input interface expansion
Next article:Various knowledge analysis solutions related to the single-chip monitoring chip X25043

Recommended ReadingLatest update time:2024-11-16 19:26

Design of digital controlled current source based on single chip microcomputer
1 Introduction Power supply technology, especially digital control power supply technology, is a very practical engineering technology, involving many disciplines such as electrical, electronic, system integration, control theory, and materials. The development of computer and communication technology has pr
[Power Management]
Design of digital controlled current source based on single chip microcomputer
51+PIC microcontroller compatible program 1602 LCD display welcome interface
//Mistake: In 51, RW (L command, H data) is directly soldered to ground //∴ lcd_enable() is missing; this function {lcdrs = 0; lcdrw = 0; lcden = 0; delay(5); lcden = 1;} //Without this function setting, it cannot be displayed #define PIC // Description, if it is 51, you can delete this sentence #define ww //Instruct
[Microcontroller]
51+PIC microcontroller compatible program 1602 LCD display welcome interface
Unveiling the AVR microcontroller high-performance portable instrument circuit - Circuit Diagram Daily Reading (75)
  With the development of computer technology and microelectronics technology, industrial instruments have gradually developed into intelligent instruments with microprocessor systems. Portable intelligent instruments are becoming more and more popular in today's life because of their convenience, easy operation, frie
[Microcontroller]
Unveiling the AVR microcontroller high-performance portable instrument circuit - Circuit Diagram Daily Reading (75)
Design of pH value detection and control instrument using C8051F020 microcontroller
introduction With the advancement of science and technology and the development of industrial and agricultural production, aquaculture, a traditional industry, is also developing in the direction of factoryization and intelligence. The design of water quality monitoring instruments is the key equipment for realizing f
[Microcontroller]
Design of pH value detection and control instrument using C8051F020 microcontroller
MSP430 series microcontroller issues
How to solder the MSP430 series microcontroller? First, apply tin paste (a solder material used on chip mounters , priced at 150 yuan/0.25KG) on the circuit board, then solder with a constant temperature soldering iron, or use a hot air soldering machine (about 500 yuan) to solder. How to ad
[Microcontroller]
STMicroelectronics launches long-range wireless microcontroller to improve connectivity energy efficiency in smart metering, smart buildings and industrial monitoring
The new STM32 system chip has low power consumption and supports multiple wireless communication protocols, simplifying the design of wireless systems for various purposes. China, November 24, 2023 - STMicroelectronics (ST;), a world-leading semiconductor company serving multiple electronic applications, has releas
[Embedded]
STMicroelectronics launches long-range wireless microcontroller to improve connectivity energy efficiency in smart metering, smart buildings and industrial monitoring
How to use MCU RAM
Any data on single-chip microcomputers will not fail to mention the issue of memory, but there is no basic explanation that can make people understand it at once. The privilege of being a rookie is also a half-knowledge. I think if I read the memory (mainly RAM) of 51 and make a summary and list it, I think it will def
[Microcontroller]
PIC microcontroller loop program example
Here we introduce a timing program to illustrate the application of loop programs on PIC microcontrollers. The author still takes the PIC16F84 microcontroller as an example to establish its timing source program list. The timer source program only needs to change the constant setting of one instruction to make the t
[Microcontroller]
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号