1 Generation of EMC in Embedded Systems
The magnitude of electromagnetic interference generated by an embedded system and its ability to resist electromagnetic interference are closely related to the function of the system itself. Different embedded systems generate different electromagnetic interference and have different abilities to resist electromagnetic interference.
1.1 High-order harmonic interference
According to the Fourier series, any periodic signal S(t) is not a single waveform, but is composed of DC component, fundamental wave and harmonics. The harmonic frequency is very rich. The periodic signal S(t) can be expressed by formula (1):
DC component, when n=1, it indicates the fundamental wave of the signal, n=2, 3, 4, ..., it indicates the 2nd, 3rd, 4th, ... harmonics of the signal, where the fundamental wave is the main component of the signal. In many cases, the characteristics of the signal show fundamental wave characteristics. For example, in the power supply system, the AC signal is S(t)=380sin 2π50t, which means that the mains signal has a fundamental wave of n=1. The harmonic frequency of the signal increases continuously near the fundamental wave, and the amplitude decays rapidly. Theoretically, there is only a little impulse signal in the spectrum of sine and cosine signals. The harmonics generated by the sine signal itself are small, while other electromagnetic interferences are mixed in the sine signal, causing large harmonics in the system. The system should make use of the fundamental wave of the signal, and suppress and filter out the harmonics of the signal. The sine signal itself has poor suppression ability for external interference signals, which is prone to EMC , seriously interfering with the system operation and affecting the system stability.
1.2 The main frequency of the embedded system is too high, causing interference
With the development of electronic technology, CPU processing speed is getting faster and faster, data throughput is getting larger and larger, and the main frequency is getting higher and higher. The main frequency of the 8-bit 51 single-chip microcomputer system is 12MHz, the main frequency of the 16-bit Lingyang single-chip microcomputer system is 50MHz, and the main frequency of the Altera Cyclone series FPGA chip system can reach 200MHz. The main frequency of the embedded system with Inter PAX255, PAX270, and PAX310 as the core can reach 820MHz. If the CPU main frequency is too high, the signal change rate will be too fast, and places with large signal amplitudes are prone to interference. According to the Fourier Series and Euler Formula, the frequency spectrum of the square wave signal is the Sine signal. The Sine signal is a continuous signal with large harmonics, which can easily cause unstable system operation. 2 Anti-EMC technology for embedded system hardware
There are many factors that make embedded systems unstable and unreliable. Interference can come from the system itself or from other systems outside the system. Software processing can play a certain role in system interference, but it is difficult to support the situation of software without hardware, and the problem of system anti-interference is always difficult to solve. In order to increase system stability and reliability and reduce system CPU expenses in programmable systems, the following methods are often used:
2.1 Suppressing power supply harmonic interference
In programmable electronic systems, solving the power supply interference problem can solve more than half of the interference of the entire system. Many interferences come from the power supply. Excessive power supply interference will cause system instability. Pure sinusoidal signals will not have interference . The key sinusoidal signal is in a very noisy environment, and then the sinusoidal signal will have additional interference. For example: if the power cord is too long, parasitic interference will be generated on the power cord. You can add a small magnetic bead or magnetic ring filter to the power cord. If the requirements are not high, you can add a 100Ω resistor to attenuate the interference signal so that the interference signal has no effect on the system. For switching power supplies, the main reason is that the oscillator oscillation frequency is too high, causing harmonics, which not only affects the power supply but also the entire system. Switching power supplies are more efficient and are used in many places, but linear power supplies are still used in systems with higher requirements.
2.2 Select the CPU with the lowest frequency that can meet the system requirements
If the CPU main frequency is too high, the system clock will speed up, the frequency of the square wave generated by the system clock will increase, and the harmonics caused by the square wave will increase accordingly. From the Fourier Series and Euler Formula, it can be seen that the harmonic amplitude of a single square wave is much larger than that of a sine wave, and the harmonic frequency is much more complex. Therefore, the higher the system main frequency, the more complex the harmonics generated, which affects the stability of the system. However, with the development of electronic technology, the CPU main frequency is getting higher and higher, the electronic system is becoming more and more complex, the functions are constantly increasing, and the integration is constantly improving. But for the CPU, no matter where it is used, the system main frequency is sufficient.
2.3 Reduce signal attenuation, distortion and reflection during transmission
Modern integrated circuit manufacturing mainly uses CMOS technology, which has large input impedance, small output impedance, strong anti-interference ability, and is suitable for small signal amplification. The input current of CMOS integrated circuit is about 1 mA. The signal delay Td on the circuit board is related to the impedance of the circuit board lead. The greater the impedance, the greater the signal attenuation, the longer the signal delay, the greater the system heat, and the worse the system stability. In the process of high-speed system design, the PCB signal transmission delay Td should be considered to make the signal artificial delay Tr greater than the signal transmission delay.
2.4 Pay attention to PCB layout and high-frequency characteristics of components
The most important principle of PCB wiring is to keep the leads between components as short as possible, cross the signal lines as little as possible, and use as few vias as possible. The analog ground, digital ground, and high-frequency ground should be routed separately and then converged into one point. High-power devices, low-power devices, and devices with particularly large interference signals should be separated during layout. High-frequency components that are particularly sensitive to interference signals can be shielded with metal covers to avoid electromagnetic interference.
2.5 Use of decoupling capacitors
Generally, a decoupling ceramic capacitor should be placed next to the power supply pin of the system integrated circuit to the ground to filter out the parasitic interference generated by the power supply during transmission. The selection of decoupling capacitors is not strict, and generally it can be selected according to f=1/C. For the CPU control system, to filter out the parasitic interference of the 10-100 MHz power supply signal , the capacitor should be 0.01-0.1μF ceramic capacitor. In high-speed circuits with higher system requirements, a 1-10μF electrolytic capacitor can be used from the integrated circuit power supply to the ground to filter out the 1-10GHz harmonic interference of the power supply.
3 Anti-EMC technology for embedded system software
In order to enhance the stability and reliability of embedded systems, in addition to hardware anti-interference, embedded systems can also use certain anti-interference to make the system work more stable and reliable.
3.1 Information Redundancy Technology
To prevent interference, the system copies important data or files to multiple storage units. When data in one storage unit is damaged, the backup storage unit is immediately started to restore the data.
3.2 Time Redundancy Technology
In order to enhance system reliability, important areas are executed repeatedly and the results of the first and second executions are compared. If they are the same, they are considered correct. If they are different, there is a problem with the first or second execution or there is a problem with both executions, the program is executed a third and fourth time. If one of them is the same, it is considered correct.
3.3 Automatic detection and diagnosis technology
Automatic detection includes detection of embedded system RAM, ROM, flags, etc. When the computer is turned on, several units can be allocated in the RAM storage area to write different values such as 55H, AAH, EEH, etc. to the RAM storage units. When executing the program, the values of these storage units are read to see if they are equal to the values placed at the start-up, so as to determine the correctness of the program execution. ROM is used to store program or table values, and the number of binary numbers 0 and 1 in the ROM area is used to detect the correctness of the system program execution. During the execution of the program, different data results in the RAM area have different effects on the flags. For example, in the PSW of the 51 single-chip microcomputer, when a carry occurs when two data are added, the 7th bit CY in the PSW is set by hardware. Users can query the 7th bit in the PSW to determine the correctness of the program execution.
3.4 Software Trap Technology
Software trap technology means that the program memory in the embedded system is not necessarily used up. For example, if the embedded system program counter PC value is wrong due to interference, the program will jump to unused storage space, causing system errors or program runaway. The software trap is to put empty instructions and unconditional jump instructions in these unused program memories. When the program runs away and runs to the empty program memory, the embedded system believes that the system is interfered with and the program execution is wrong, and the system automatically resets.
4 Conclusion
In the program-controlled fountain control system with AC contactor, relay, and motor control, the STWD100 hardware watchdog is added. The system operates normally after 50 consecutive switches; it works continuously for 12 hours without interruption and interference from motors and welding machines . The system has no abnormal conditions such as freezing and program running away. The operation is stable and reliable, which solves the interference caused by the operation of relays, AC contactors and other devices, causing CPU malfunction and freezing and other unstable phenomena. In practice, attention should be paid to mastering the time interval for feeding the dog, which is generally best at 1 to 2ms. Without occupying CPU resources, the STWD100 hardware watchdog can improve the system's working stability and reliability to 100%, and can be widely used in control systems with strong interference such as relays and contactors .
Previous article:Using HFTA-16.0 to Establish ESD Protection for Bipolar Integrated Circuits
Next article:Network structure and design principles of DC power supply EMI filter
- Popular Resources
- Popular amplifiers
- Semantic Segmentation for Autonomous Driving: Model Evaluation, Dataset Generation, Viewpoint Comparison, and Real-time Performance
- Hardware Accelerators in Autonomous Driving
- Raspberry Pi Development in Action (2nd Edition) ([UK] Simon Monk)
- A common software/hardware approach for future advanced driver assistance systems
- MathWorks and NXP Collaborate to Launch Model-Based Design Toolbox for Battery Management Systems
- STMicroelectronics' advanced galvanically isolated gate driver STGAP3S provides flexible protection for IGBTs and SiC MOSFETs
- New diaphragm-free solid-state lithium battery technology is launched: the distance between the positive and negative electrodes is less than 0.000001 meters
- [“Source” Observe the Autumn Series] Application and testing of the next generation of semiconductor gallium oxide device photodetectors
- 采用自主设计封装,绝缘电阻显著提高!ROHM开发出更高电压xEV系统的SiC肖特基势垒二极管
- Will GaN replace SiC? PI's disruptive 1700V InnoMux2 is here to demonstrate
- From Isolation to the Third and a Half Generation: Understanding Naxinwei's Gate Driver IC in One Article
- The appeal of 48 V technology: importance, benefits and key factors in system-level applications
- Important breakthrough in recycling of used lithium-ion batteries
- 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
- Please recommend a development board
- Dr. MC is available for viewing. Can be discussed openly
- How to quickly write the output logic expression of CMOS logic gate circuit
- Recommendations for components encountered in peak sampling circuit design
- Follow and comment to win gifts! Micron 2022 Taipei International Computer Show Keynote Speech Highlights: Data Center Special
- Prize-winning quiz | How much do you know about Fujitsu's Ferroelectric Random Access Memory FRAM?
- Want to make an embedded machine learning wearable system
- Web front-end/back-end matters, non-technical issues!
- A large bounce occurs on the DC power supply
- "Let's practice together in 2021" + Work hard to become the horns of the ox in the Year of the Ox