In the electronic system PCB design, in order to avoid detours and save time, the anti-interference requirements should be fully considered and met, and anti-interference remedial measures should be avoided after the PCB design is completed. There are three basic elements that cause interference:
(1) Interference source refers to the component, equipment or signal that produces interference. It is described in mathematical language 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 sources of interference.
(2) Propagation path refers to the path or medium through which interference propagates from the interference source to the sensitive device. The typical interference propagation path is conduction through wires and radiation from space.
(3) Sensitive devices are those that are easily disturbed. Such as: A/D, D/A converter, single-chip microcomputer, digital IC, weak signal amplifier, etc.
The basic principles of anti-interference PCB layout design are: suppress interference sources, cut off interference propagation paths, and improve the anti-interference performance of sensitive devices. (Similar to the prevention of infectious diseases)
1 Suppress interference sources
Suppressing the interference source is to reduce the du/dt and di/dt of the interference source as much as possible. This is the most prioritized and most important principle in anti-interference PCB design, and it often has the effect of getting twice the result with half the effort. Reducing the du/dt of the interference source is mainly achieved by connecting capacitors in parallel at both ends of the interference source. Reducing the di/dt of the interference source is achieved by connecting inductance or resistance in series with the interference source loop and adding a freewheeling diode.
Common measures to suppress interference sources are as follows:
(1) The relay coil adds a freewheeling diode to eliminate the interference of back electromotive force generated when the coil is disconnected. Only adding a freewheeling diode will lag the off time of the relay. After adding a Zener diode, the relay can operate more times per unit time.
(2) Connect a spark suppression circuit in parallel at both ends of the relay contact (usually an RC series circuit, the resistance is generally selected from a few K to tens of K, and the capacitor is 0.01uF) to reduce the impact of electric sparks.
(3) Add a filter circuit to the motor, and note that the capacitor and inductance leads should be as short as possible.
(4) Each IC on the circuit board should be connected with a 0.01μF~0.1μF high frequency capacitor in parallel to reduce the impact of IC on the power supply. Pay attention to the wiring of high-frequency capacitors. The wiring should be close to the power supply terminal and as short as possible. Otherwise, the equivalent series resistance of the capacitor will be increased, which will affect the filtering effect.
(5) Avoid 90-degree fold lines when wiring to reduce high-frequency noise emission.
(6) Both ends of the thyristor are connected in parallel with an RC suppression circuit to reduce the noise generated by the thyristor (this noise may break down the thyristor).
According to the propagation path of interference, it can be divided into two types: conducted interference and radiated interference.
The so-called conducted interference refers to the interference that propagates to sensitive devices through wires. The frequency bands of high-frequency interference noise and useful signals are different, and the propagation of high-frequency interference noise can be cut off by adding a filter on the wire, and sometimes an isolation optocoupler can be added to solve it. Power supply noise is the most harmful, so pay special attention to handling. The so-called radiated 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 on the sensitive device.
Common measures to cut off the interference propagation path are as follows:
(1) Fully consider the impact of the power supply on the microcontroller. If the power supply is done well, the anti-interference of the whole circuit will be solved more than half. Many single-chip microcomputers are very sensitive to power supply noise, and a filter circuit or voltage regulator should be added to the power supply of the single-chip microcomputer to reduce the interference of power supply noise to the single-chip microcomputer. For example, magnetic beads and capacitors can be used to form a π-shaped filter circuit. Of course, 100Ω resistors can be used instead of magnetic beads when the conditions are not high.
(2) Pay attention to the crystal oscillator wiring. The crystal oscillator is as close as possible to the pins of the microcontroller, the clock area is isolated with a ground wire, and the crystal oscillator shell is grounded and fixed. This measure can solve many difficult problems.
(3) Reasonable division of the circuit board, such as strong and weak signals, digital and analog signals. Keep interference sources (such as motors, relays) away from sensitive components (such as single-chip microcomputers) as far as possible.
(4) Separate the digital area from the analog area with a ground wire, separate the digital ground from the analog ground, and finally connect it to the power ground at one point. The wiring of A/D and D/A chips is also based on this principle, and manufacturers have considered this requirement when assigning A/D and D/A chip pin arrangements.
(5) The ground wires of the single-chip microcomputer and high-power devices should be grounded separately to reduce mutual interference. Place high-power devices on the edge of the circuit board as much as possible.
(6) The use of anti-interference components such as magnetic beads, magnetic rings, power filters, and shields in key places such as the I/O port of the single-chip microcomputer, power cord, circuit board connection line, etc., can significantly improve the anti-interference performance of the circuit.
3Improve the anti-interference performance of sensitive devices
Improving the anti-interference performance of sensitive devices refers to the method of minimizing the pickup of interference noise from the side of sensitive devices and recovering from abnormal conditions as soon as possible.
Common measures to improve the anti-interference performance of sensitive devices are as follows:
(1) Minimize the loop loop area when wiring to reduce induced noise.
(2) When wiring, the power wire and ground wire should be as thick as possible. In addition to reducing the pressure drop, it is more important to reduce the coupling noise.
(3) For the idle I/O ports of the single-chip microcomputer, do not float, but should be grounded or connected to the power supply. The idle terminals of other ICs are grounded or connected to power without changing the system logic.
(4) The use of power supply monitoring and watchdog circuits for single-chip microcomputers, such as IMP809, IMP706, IMP813, X25043, X25045, etc., can greatly improve the anti-interference performance of the entire circuit.
(5) On the premise that the speed can meet the requirements, try to reduce the crystal oscillator of the single-chip microcomputer and select low-speed digital circuits.
(6) Generally, in the design of PCB factories, IC devices are directly soldered on the circuit board, and IC sockets are rarely used.