When it comes to anti-interference of MCU systems, which is more important, software or hardware?

Publisher:世界因你而精彩Latest update time:2021-06-30 Source: eefocusKeywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

While improving the anti-interference ability of hardware systems, software anti-interference is gaining more and more attention due to its flexible design, saving hardware resources and good reliability. The following takes the MCS-51 single-chip microcomputer system as an example to study the anti-interference method of microcomputer system software.

 

1. Research on software anti-interference methods

In engineering practice, the content of software anti-interference research is mainly: 1. Eliminating the noise of analog input signals (such as digital filtering technology); 2. Methods to get the program back on track when the program is running chaotically. This paper proposes several effective software anti-interference methods for the latter.

 

(1) Instruction redundancy

(2) Interception technology

 

2. Design of system fault handling and self-recovery program

Resetting the microcontroller system due to interference or after power failure is an abnormal reset. Fault diagnosis should be performed and the system should be able to automatically restore to the state before the abnormal reset.

 

(1) Identification of abnormal reset

(2) Programming for system self-recovery after abnormal reset

 

There are some other common methods for software anti-interference, such as digital filtering, RAM data protection and error correction. In engineering practice, several anti-interference methods are usually used together to complement each other to achieve better anti-interference effects. Fundamentally speaking, hardware anti-interference is active, while software anti-interference is passive. It is completely feasible to carefully analyze the interference source, combine hardware and software anti-interference, improve the system monitoring program, and design a stable and reliable single-chip microcomputer system.


Keywords:MCU Reference address:When it comes to anti-interference of MCU systems, which is more important, software or hardware?

Previous article:Precautions for defining variables in different memory spaces in 51 single-chip microcomputer programming
Next article:Understanding of the Segment Selection of the Single-Chip Microcomputer Digital Tube

Recommended ReadingLatest update time:2024-11-16 11:52

How to solve the problem of AVR microcontroller fuse bit locking
1. AVR MCU fuse bit locked simple and quick decryption method: Many AVR microcontroller beginners may easily make mistakes in the fuse bits when using AVR microcontrollers, causing the microcontroller to be locked. For example, after JTAGEN is set to 1, the JTAG of the microcontroller can no longer download programs i
[Microcontroller]
How to solve the problem of AVR microcontroller fuse bit locking
[MCU framework][bsp layer][cx32l003][bsp_crc] Hardware CRC configuration and use
The cyclic redundancy check (CRC) calculation unit obtains the CRC calculation result of any byte data based on a fixed generating polynomial. In applications, CRC technology is mainly used to verify the correctness and integrity of data transmission or data storage. This module algorithm complies with the definitio
[Microcontroller]
8051 series microcontroller internal resources
1. Timer/Counter The 8051 series of microcontrollers have at least two 16-bit internal timers/counters (T/C, Timer/Counter) and provide 3 timers. The two basic timers/counters are timer/counter 0 (T/C0 ) and timer/counter 1 (T/C1). They can be programmed as either timers or counters. If it counts the internal crystal
[Microcontroller]
8051 series microcontroller internal resources
Design of a vehicle virtual instrument data acquisition system based on single chip microcomputer
  1 Introduction   There are many bus technologies now. In terms of cost, RS-232/485 is lower than CAN; in terms of speed, industrial Ethernet and others are also good. Why is CAN the only one that is favored in automotive electronics?   In terms of cost, CAN is higher than UART and RS-232/485, but lower than Ether
[Microcontroller]
Design of a vehicle virtual instrument data acquisition system based on single chip microcomputer
STMicroelectronics Vice President talks about future general-purpose MCU planning
Recently, Ricardo De-Sa-Earp, Vice President of STMicroelectronics' Microcontroller and Digital IC (MDG) Product Division and General Manager of the Microcontroller Business Unit, took the opportunity of the STM32 Summit to introduce the future plans and development prospects of STM32 to the Chinese market. Ricardo
[Microcontroller]
STMicroelectronics Vice President talks about future general-purpose MCU planning
Classic explanation of single chip music performance program
About the single chip microcomputer music performance of "Only Mother is Good in the World" When a single-chip microcomputer plays a note, it periodically outputs a square wave of a specific frequency through the pin. This requires the single-chip microcomputer to output a low level in half a cycle and a high leve
[Microcontroller]
AVR MCU GCC Programming: Basic Operation of External Interrupts
#include avr/io.h #include avr/interrupt.h #include avr/signal.h int main(void) {  MCUCR |= (1 ISC11); //INT1 falling edge trigger  MCUCR |= ((1 ISC00) | (1 ISC01)); //INT0 rising edge trigger  GICR |= ((1 INT1) | (1 INT0)); //INT0, INT1 enable  sei(); //Global interrupt enable SREG.I  //When an interrupt occurs
[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号