The hardware circuit design of a single-chip microcomputer application system includes two parts: one is system expansion, that is, when the functional units inside the single-chip microcomputer, such as ROM, RAM, I/O, timer/counter, interrupt system, etc., cannot meet the requirements of the application system, they must be expanded outside the chip, and appropriate chips must be selected and corresponding circuits designed. The second is system configuration, that is, peripheral devices such as keyboards, monitors, printers, A/D, D/A converters, etc. must be configured according to the system functional requirements, and appropriate interface circuits must be designed.
The expansion and configuration of the system should follow the following principles:
1. Choose typical circuits as much as possible and conform to the conventional usage of single-chip microcomputers to lay a good foundation for the standardization and modularization of hardware systems.
2. The configuration level of system expansion and peripheral equipment should fully meet the functional requirements of the application system and leave appropriate room for secondary development.
3. The hardware structure should be considered together with the application software solution. The hardware structure and software solution will have mutual influence. The consideration principle is: the functions that can be realized by software should be realized by software as much as possible to simplify the hardware structure. However, it must be noted that the hardware functions realized by software generally have a longer response time than hardware implementation and occupy CPU time.
4. The performance of related devices in the system should be matched as much as possible. For example, when a CMOS chip single chip is used to form a low-power system, all chips in the system should be low-power products as much as possible.
5. Reliability and anti-interference design are an indispensable part of hardware design, which includes chip, device selection, decoupling filtering, printed circuit board wiring, channel isolation, etc.
6. When there are many peripheral circuits of the microcontroller, its driving capability must be considered. When the driving capability is insufficient, the system will not work reliably. The bus load can be reduced by adding line drivers to enhance the driving capability or reducing the chip power consumption.
7. Try to design the hardware system in the direction of "single chip". The more system components there are, the stronger the mutual interference between the components, the greater the power consumption, and the inevitable reduction of system stability. As the functions integrated in the microcontroller become more and more powerful, a true system-on-chip SoC can be realized. For example, the μPSD32×× series products recently launched by ST integrate an 80C32 core, a large-capacity FLASH memory, SRAM, A/D, I/O, two serial ports, a watchdog, a power-on reset circuit, etc. on a single chip.
Practice of Common Methods for Hardware Anti-interference in Single-Chip Microcomputer Systems
The main factors that affect the reliable and safe operation of the MCU system mainly come from various electrical interferences inside and outside the system, and are affected by the system structure design, component selection, installation, and manufacturing process. These constitute the interference factors of the MCU system, which often cause the MCU system to malfunction, affecting product quality and output at the least, and causing accidents and major economic losses at the worst.
There are three basic elements that cause interference:
(1) Interference source. Refers to the components, equipment or signals that generate interference. It can be described in mathematical terms as follows: du/dt. The place where di/dt is large is the interference source. For example, lightning, relays, thyristors, motors, high-frequency clocks, etc. may all become interference sources.
(2) Propagation path. Refers to the path or medium through which interference propagates from the interference source to the sensitive device. Typical interference propagation paths are conduction through wires and radiation through space.
(3) Sensitive devices. Refers to objects that are easily interfered with, such as A/D, D/A converters, single-chip microcomputers, digital ICs, weak signal amplifiers, etc.
Classification of interference
1 Classification of interference
There are many types of interference, which can usually be classified according to the cause of the noise, the conduction method, the waveform characteristics, etc.
It can be divided into discharge noise, high-frequency oscillation noise and surge noise.
According to the conduction method: it can be divided into common mode noise and series mode noise.
According to the waveform: it can be divided into continuous sine wave, pulse voltage, pulse sequence and so on.
2 Interference coupling mode
The interference signal generated by the interference source affects the measurement and control system through a certain coupling channel. Therefore, it is necessary to look at the transmission method between the interference source and the interfered object. The coupling method of interference is nothing more than through wires, space, common lines, etc., which can be broken down into the following types:
(1) Direct coupling:
This is the most direct way and the most common way in the system. For example, the interference signal invades the system through the power line. For this form, the most effective way is to add a decoupling circuit. This can effectively suppress it.
(2) Common impedance coupling:
This is also a common coupling mode, which often occurs when the currents of two circuits have a common path. In order to prevent this coupling, it is usually necessary to consider it in circuit design, so that there is no common impedance between the interference source and the interfered object.
(3) Capacitive coupling:
Also known as electric field coupling or electrostatic coupling. It is the coupling caused by the existence of distributed capacitance.
(4) Electromagnetic induction coupling:
Also known as magnetic field coupling. It is the coupling caused by distributed electromagnetic induction.
(5) Leakage coupling:
This coupling is purely resistive and occurs when the insulation is poor.
Commonly used hardware anti-interference technology
In response to the three factors that cause interference, the following anti-interference measures are mainly adopted.
1. Suppress interference sources
Suppressing interference sources means reducing du/dt and di/dt of interference sources as much as possible. This is the most important and most important principle in anti-interference design, which often achieves twice the result with half the effort. Reducing du/dt of interference sources is mainly achieved by connecting capacitors in parallel at both ends of the interference source. Reducing di/dt of interference sources is achieved by connecting inductors or resistors in series with the interference source loop and adding freewheeling diodes.
Common measures to suppress interference sources are as follows:
(1) Add a freewheeling diode to the relay coil to eliminate the back electromotive force interference generated when the coil is disconnected. Adding only a freewheeling diode will delay the disconnection time of the relay. After adding a voltage regulator diode, the relay can operate more times per unit time.
(2) Connect a spark suppression circuit (usually an RC series circuit, with a resistor ranging from a few K to tens of K and a capacitor of 0.01uF) in parallel at both ends of the relay contact to reduce the impact of electric sparks.
(3) Add a filter circuit to the motor, and make sure the capacitor and inductor leads are as short as possible.
(4) Each IC on the circuit board should be connected in parallel with a 0.01μF~0.1μF high-frequency capacitor to reduce the impact of the IC on the power supply. Pay attention to the wiring of the high-frequency capacitor. The connection should be close to the power supply end and as thick and short as possible. Otherwise, it will increase the equivalent series resistance of the capacitor, which will affect the filtering effect. [page]
(5) Avoid 90-degree folds when wiring to reduce high-frequency noise emissions.
(6) An RC suppression circuit is connected in parallel at both ends of the thyristor to reduce the noise generated by the thyristor (this noise may cause the thyristor to break down if it is severe).
2. Cut off the interference propagation path
According to the propagation path of interference, it can be divided into two categories: conducted interference and radiated interference.
The so-called conducted interference refers to the interference transmitted to sensitive devices through wires. The frequency bands of high-frequency interference noise and useful signals are different. The transmission of high-frequency interference noise can be cut off by adding filters to the wires, and sometimes it can be solved by adding isolation optocouplers. Power supply noise is the most harmful and should be handled with special attention.
The so-called radiation interference refers to the interference that propagates to sensitive devices through space radiation. The general solution is to increase the distance between the interference source and the sensitive device, isolate them with a ground wire, and add a shield to the sensitive device.
Common measures to cut off interference propagation paths are as follows:
(1) Fully consider the impact of power supply on the microcontroller. If the power supply is well made, the anti-interference of the entire circuit will be solved by half.
Many microcontrollers are very sensitive to power supply noise. It is necessary to add a filter circuit or voltage stabilizer to the microcontroller power supply to reduce the interference of power supply noise on the microcontroller. For example, a π-shaped filter circuit can be formed by using magnetic beads and capacitors. Of course, when the conditions are not high, a 100Ω resistor can be used instead of a magnetic bead.
(2) If the I/O port of the microcontroller is used to control noisy devices such as motors, isolation should be added between the I/O port and the noise source (by adding a π-shaped filter circuit).
(3) Pay attention to the crystal oscillator wiring. The crystal oscillator and the microcontroller pins should be as close as possible, the clock area should be isolated with a ground wire, and the crystal oscillator housing should be grounded and fixed.
(4) The circuit board should be partitioned reasonably, such as strong and weak signals, digital and analog signals. Keep interference sources (such as motors and relays) and sensitive components (such as microcontrollers) as far away as possible.
(5) Use ground wire to isolate the digital area from the analog area. The digital ground and analog ground should be separated and finally connected to the power ground at one point. The same principle applies to A/D and D/A chip wiring.
(6) The ground wires of the microcontroller and high-power devices should be grounded separately to reduce mutual interference. High-power devices should be placed at the edge of the circuit board as much as possible.
(7) Using anti-interference components such as magnetic beads, magnetic rings, power filters, and shielding covers in key places such as microcontroller I/O ports, power lines, and circuit board connecting lines can significantly improve the anti-interference performance of the circuit.
3. Improve the anti-interference performance of sensitive devices
Improving the anti-interference performance of sensitive devices means minimizing the pickup of interference noise from the sensitive devices' side, and recovering from abnormal conditions as quickly as possible.
Common measures to improve the anti-interference performance of sensitive devices are as follows:
(1) When wiring, try to minimize the area of the loop to reduce induced noise.
(2) When wiring, the power line and ground line should be as thick as possible. In addition to reducing the voltage drop, it is more important to reduce the coupling noise.
(3) For the idle I/O ports of the microcontroller, do not leave them floating but connect them to ground or power. The idle terminals of other ICs should be connected to ground or power without changing the system logic.
(4) Using power supply monitoring and watchdog circuits on microcontrollers, such as IMP809, IMP706, IMP813, X5043, X5045, etc., can greatly improve the anti-interference performance of the entire circuit.
(5) Under the premise that the speed can meet the requirements, try to reduce the crystal oscillator of the microcontroller and choose a low-speed digital circuit. (6) IC devices should be directly soldered on the circuit board as much as possible, and IC sockets should be used less.
4 Other common anti-interference measures
Use inductor and capacitor filtering at the AC end to remove high-frequency and low-frequency interference pulses.
Transformer double isolation measures: capacitors are connected in series at the primary input end of the transformer, the shielding layer between the primary and secondary coils and the central point of the primary capacitor are connected to the ground, and the secondary outer shielding layer is connected to the printed circuit board ground. This is a key means of hardware anti-interference. A low-pass filter is added to the secondary to absorb the surge voltage generated by the transformer.
Adopt integrated DC regulated power supply: because it has over-current, over-voltage, over-heat and other protections.
The I/O ports are isolated by photoelectric, magnetic and relay, and the common ground is removed.
Use twisted pair cables for communication lines to eliminate parallel mutual inductance.
Optical fiber isolation is the most effective way to protect against lightning.
Use isolation amplifier or field conversion for A/D conversion: reduce errors.
The shell is connected to the ground to ensure personal safety and prevent external electromagnetic interference.
Add a reset voltage detection circuit to prevent the CPU from working due to insufficient reset, especially for devices with EEPROM, where insufficient reset will change the contents of the EEPROM.
Printed circuit board process anti-interference:
① Thicken the power cord, route and ground it properly, and separate the three buses to reduce mutual inductance oscillation.
② For main chips such as CPU, RAM, ROM, etc., connect electrolytic capacitors and ceramic capacitors between VCC and GND to remove high and low frequency interference signals.
③Independent system structure, reducing connectors and connections, improving reliability and reducing failure rate.
④ The integrated block has reliable contact with the socket, and a double-spring socket is used. It is best to solder the integrated block directly to the printed circuit board to prevent poor contact failure of the device.
⑤ If conditions permit, use a printed circuit board with more than four layers, with the middle two layers being the power supply and ground
Previous article:An efficient and fast algorithm for calculating square roots using a single chip microcomputer
Next article:Analysis of Anti-interference Performance of Single Chip Microcomputer
Recommended ReadingLatest update time:2024-11-16 15:51
- Popular Resources
- Popular amplifiers
- Wireless Sensor Network Technology and Applications (Edited by Mou Si, Yin Hong, and Su Xing)
- Modern Electronic Technology Training Course (Edited by Yao Youfeng)
- Modern arc welding power supply and its control
- Small AC Servo Motor Control Circuit Design (by Masaru Ishijima; translated by Xue Liang and Zhu Jianjun, by Masaru Ishijima, Xue Liang, and Zhu Jianjun)
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
- The problem of repeated declaration of global variables in embedded C programming
- UWB can use the frequency band in China,,,,
- What should I do if I have a colleague who is nagging and incompetent?
- A feasible solution to the problem that the USB-Blaster driver cannot be successfully installed during the Quartus II 9 software installation and configuration
- The SGM42507 is a full-bridge driver designed for small motors and electromagnets.
- EEWORLD University ---- HVI Series: Design Considerations for High Power Density and High Efficiency Adapters
- MSP430Ware use notes to initialize XT1
- Open source program for automatic generation of dq current lookup table for permanent magnet synchronous motor of electric vehicle based on weak magnetic field lookup method
- What are the causes of IGBT damage in variable frequency power supply?
- Design and Application of Serial Communication Interface between TMS320F24x and PC