Professional PCB manufacturing and assembly
Building 6, Zone 3, Yuekang Road,Bao'an District, Shenzhen, China
+86-13923401642Mon.-Sat.08:00-20:00
PCB Design
PCB Design
PCB Anti interference Design of Single Chip Microcomputer
31Dec
Jeff 0 Comments

PCB Anti interference Design of Single Chip Microcomputer

In the design of electronic system, in order to reduce detours and save time, the requirements for anti-interference of PCB shall be fully considered and met, and the remedial measures for anti-interference of PCB shall be avoided after completion. There are three basic elements to form interference:

(1) Interference source refers to the component, equipment or signal that generates interference. It is described in mathematical language as follows: du/dt, where di/dt is large, is the interference source. For example, lightning, relay, silicon controlled rectifier, motor, high-frequency clock, etc. may become interference sources.

(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 conducted through wires and radiated from space.

(3) Sensitive devices refer to objects that are easy to be interfered with. Such as: A/D, D/A converter, microcontroller, digital IC, weak signal amplifier, etc.

The basic principle of anti-interference design of PCB is to restrain the interference source, cut off the interference propagation path, and improve the anti-interference performance of PCB of sensitive devices.

1 Suppress interference sources

pcba

Suppressing interference sources is to reduce du/dt, di/dt of interference sources as much as possible. This is the most priority and important principle in the anti-interference design of PCB, which can often achieve twice the result with half the effort. The du/dt of the interference source is reduced mainly by paralleling capacitors at both ends of the interference source. The di/dt of the interference source is reduced by adding inductance or resistance in series and freewheeling diode in the interference source circuit.

Common measures to suppress interference sources are as follows:

(1) The relay coil is added with a freewheeling diode to eliminate the back EMF interference generated when the coil is disconnected. Only adding freewheeling diode will delay the disconnection time of the relay, and the relay can act more times in a unit time after adding voltage stabilizing diode.

(2) Connect the spark suppression circuit at both ends of the relay contact in parallel (generally RC series circuit, with a resistance of K to tens of K and a capacitance of 0.01uF) to reduce the impact of electric spark.

(3) Add a filter circuit to the motor, and pay attention to the capacitor and inductor leads should be as short as possible.

(4) Each IC on the circuit board shall be connected to 0.01 in parallel μ F~0.1 μ F High frequency capacitor to reduce the influence of IC on power supply. Pay attention to the wiring of high-frequency capacitor. The wiring should be close to the power 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 polyline during wiring to reduce high-frequency noise emission.

(6) The RC suppression circuit is connected at both ends of the thyristor in parallel to reduce the noise generated by the thyristor (when the noise is serious, the thyristor may be broken down).

According to the propagation path of interference, it can be divided into conducted interference and radiated interference.

The so-called conducted interference refers to the interference transmitted to the sensitive device through the wire. The frequency band of high-frequency interference noise is different from that of useful signal. The transmission of high-frequency interference noise can be cut off by adding a filter on the wire. Sometimes, isolation optocouplers can be added to solve this problem. Power supply noise is the most harmful, so special attention should be paid to handling. The so-called radiation interference refers to the interference transmitted 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.

2 Common measures to cut off interference propagation path are as follows:

(1) Fully consider the influence of power supply on MCU. If the power supply is well done, the anti-interference of the PCB of the whole circuit is solved by more than half. Many single chip computers are very sensitive to power supply noise. To reduce the interference of power supply noise to PCB single chip computers, filter circuits or voltage regulators should be added to the power supply of single chip computers. For example, magnetic beads and capacitors can be used to form a π - shaped filter circuit. Of course, 100 Ω resistors can also be used to replace magnetic beads when conditions are not demanding.

(2) If the I/O port of the single chip microcomputer is used to control noise devices such as motors, isolation shall be added between the I/O port and the noise source (π filtering circuit shall be added). To control noise devices such as motor, isolation shall be added between I/O port and noise source (π filtering circuit shall be added).

(3) Pay attention to crystal oscillator wiring. The crystal oscillator shall be as close as possible to the pin of the microcontroller, and the clock area shall be isolated by the ground wire. The crystal oscillator shell shall be grounded and fixed. This measure can solve many difficult problems.

(4) The circuit board shall be reasonably partitioned, such as strong and weak signals, digital and analog signals. As far as possible, keep the interference sources (such as motors and relays) away from PCB sensitive elements (such as SCM).

(5) The digital area shall be isolated from the analog area with a ground wire. The digital ground shall be separated from the analog ground, and finally connected to the power supply ground at one point. The wiring of A/D and D/A chips is also based on this principle. The manufacturer has considered this requirement when allocating the pin arrangement of A/D and D/A chips.

(6) The ground wires of MCU and PCB high-power devices should be grounded separately to reduce mutual interference. High power devices shall be placed on the edge of the circuit board as far as possible.

(7) The use of PCB anti-interference components such as magnetic beads, magnetic rings, power filters, and shielding covers at the I/O port of the microcontroller, power lines, circuit board connecting lines and other key places can significantly improve the PCB anti-interference performance of the circuit.

PCB design

3. Improve the anti-interference performance of PCB of sensitive devices

Improving the anti-interference performance of PCB of sensitive devices refers to the method of minimizing the pickup of interference noise from the sensitive devices and recovering from abnormal state as soon as possible.

Common measures to improve the anti-interference performance of sensitive device PCB are as follows:

(1) During wiring, the area of the loop shall be minimized to reduce the induced noise.

(2) When wiring, the power line and ground wire 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 port of the microcontroller, do not hang in the air, but ground or connect to the power supply. The idle terminals of other ICs are grounded or connected to the power supply without changing the system logic.

(4) The use of power supply monitoring and watchdog circuits for the single chip microcomputer, such as IMP809, IMP706, IMP813, X25043, X25045, can greatly improve the anti-interference performance of the PCB of the entire circuit.

(5) On the premise that the speed can meet the requirements, the crystal oscillator of the single chip microcomputer shall be reduced as far as possible and the low-speed digital circuit shall be selected.

(6) IC devices shall be directly welded to the circuit board as much as possible, and IC sockets shall be used less.

PCB software:

1. I am used to clearing the unused code space to "0", because this is equivalent to NOP, which can be returned when the program runs;

2. Add several NOPs before the jump instruction, with the same purpose as 1;

3. When there is no hardware WatchDog, software can be used to simulate the WatchDog to monitor the operation of the program;

4. When dealing with the parameter adjustment or setting of external devices, the parameters can be re sent regularly to prevent the external devices from making errors due to interference, so that the external devices can recover correctly as soon as possible;

5. For anti-interference of PCB in communication, data check bit can be added, and the strategy of 2 out of 3 or 3 out of 5 can be adopted;

6. When there are communication lines, such as I ^ 2C, three wire system, etc., in practice, we find that the data line, CLK line and INH line are normally set to high, and their PCB anti-interference effect is better than low.

Hardware:

1. The part line of ground wire and power line must be important!

2. Decoupling of lines;

3. Separation of digital and analog ground;

4. Each digital element needs 104 capacitors between the ground and the power supply;

5. In relay applications, especially when there is a large current, to prevent the interference of relay contact sparks on the circuit, a 104 and a diode can be connected between relay coils, and a 472 capacitor can be indirectly connected between the contact and the normal starting point. The effect is good!

6. To prevent crosstalk of I/O ports, I/O ports can be isolated by diode isolation, gate circuit isolation, optocoupler isolation, electromagnetic isolation, etc;

7. Of course, the anti-interference of multilayer PCB is certainly better than that of single panel, but the cost is several times higher.

8. It is more effective to select a device with strong anti-interference capability on PCB than any other method. I think this should be the most important. Because it is difficult to make up for the inherent shortcomings of devices with external methods, but PCB with strong anti-interference ability is often more expensive, and PCB with poor anti-interference ability is cheaper, just as Taiwan's Dongdong is cheap but its performance is greatly reduced! It mainly depends on your application occasions!

Printed circuit board (PC8) is the support of circuit components and devices in electronic products. It provides the electrical connection between circuit components and devices. With the rapid development of electrical technology, the density of PGB is getting higher and higher. The quality of PCB design has a great impact on the anti-interference ability of PCB. Therefore, the general principles of PCB design and the requirements of PCB anti-interference design must be followed when designing PCB.

Just upload Gerber files, BOM files and design files, and the KINGFORD team will provide a complete quotation within 24h.