In any switching power supply design, the physical design of the PCB circuit board is the last link. If the design method is improper, the PCB may radiate too much electromagnetic interference and cause the power supply to work unstable. The following are the matters needing attention in each step Perform analysis.
1. The flow from schematic to PCB design
Establish component parameters -> input principle netlist -> design parameter settings -> manual layout -> manual wiring -> verify design -> review -> CAM output.
2. Parameter setting
The distance between adjacent wires must be able to meet electrical safety requirements, and in order to facilitate operation and production, the distance should be as wide as possible. The minimum spacing must be at least suitable for the voltage tolerated. When the wiring density is low, the spacing of the signal lines can be increased appropriately. For signal lines with a large gap between high and low levels, the spacing should be as short as possible and the spacing should be increased. Generally, Set the trace spacing to 8mil.
The distance between the edge of the inner hole of the pad and the edge of the printed board should be greater than 1mm, which can avoid the defects of the pad during processing. When the traces connected to the pads are thin, the connection between the pads and the traces should be designed into a drop shape. The advantage of this is that the pads are not easy to peel, but the traces and the pads are not easily disconnected.
3. Component layout
Practice has proved that even if the circuit schematic design is correct and the printed circuit board is not properly designed, it will adversely affect the reliability of electronic equipment.
For example, if the two thin parallel lines of the printed board are close together, it will cause the delay of the signal waveform and the reflection noise at the terminal of the transmission line. The performance drops, so when designing the printed circuit board, you should pay attention to adopting the correct method.
Each switching power supply has four current loops: ◆ Power switch AC loop ◆ Output rectifier AC loop ◆ Input signal source current loop ◆ Output load current loop input loop
The input capacitor is charged by an approximate DC current, and the filter capacitor mainly acts as a broadband energy storage; similarly, the output filter capacitor is also used to store high-frequency energy from the output rectifier, and at the same time eliminate the DC energy of the output load loop.
Therefore, the terminals of the input and output filter capacitors are very important. The input and output current loops should only be connected to the power supply from the terminals of the filter capacitor respectively; if the connection between the input/output loop and the power switch/rectifier loop cannot be connected to the capacitor The terminal is directly connected, and the AC energy will be radiated into the environment by the input or output filter capacitor.
The AC circuit of the power switch and the AC circuit of the rectifier contain high-amplitude trapezoidal currents. The harmonic components of these currents are very high. The frequency is much greater than the fundamental frequency of the switch. The peak amplitude can be as high as 5 times the amplitude of the continuous input/output DC current. The transition time is usually About 50ns.
These two loops are the most prone to electromagnetic interference, so these AC loops must be laid out before the other printed lines in the power supply. The three main components of each loop are filter capacitors, power switches or rectifiers, inductors or transformers. Place them next to each other and adjust the position of the components to make the current path between them as short as possible.
The best way to establish a switching power supply layout is similar to its electrical design. The best design process is as follows:
1. Place the transformer 2. Design the power switch current loop 3. Design the output rectifier current loop 4. Connect the control circuit to the AC power circuit
4. Design the input current source loop and input filter When designing the output load loop and output filter according to the functional unit of the circuit, the following principles should be met when laying out all the components of the circuit:
a. First, consider the PCB size. When the PCB size is too large, the printed lines will be long, the impedance will increase, the anti-noise ability will decrease, and the cost will increase; if the PCB size is too small, the heat dissipation will not be good, and adjacent lines will be easily disturbed. The best shape of the circuit board is rectangular, the aspect ratio is 3: 2 or 4: 3, the components located on the edge of the circuit board, generally not less than 2mm from the edge of the circuit board
b. When placing the device, consider future soldering, not too dense
c. Take the core component of each functional circuit as the center and lay out around it. The components should be arranged evenly, neatly and compactly on the PCB, minimize and shorten the leads and connections between the components, and the decoupling capacitor should be as close as possible to the VCC of the device
d. For circuits operating at high frequencies, the distribution parameters between components should be considered. Generally, the circuit should be arranged in parallel as much as possible. In this way, it is not only beautiful, but also easy to install and weld, and easy to mass produce
e. Arrange the position of each functional circuit unit according to the circuit flow, so that the layout is convenient for signal circulation, and the signal is kept in the same direction as possible
f. The first principle of the layout is to ensure the wiring rate, pay attention to the connection of the flying lines when moving the device, and put the devices with the connection relationship together
g. Reduce the loop area as much as possible to suppress the radiation interference of the switching power supply
5. Wiring
The switching power supply contains high-frequency signals. Any printed line on the PCB can function as an antenna. The length and width of the printed line will affect its impedance and inductance, thereby affecting the frequency response. Even printed lines that pass DC signals can couple to radio frequency signals from adjacent printed lines and cause circuit problems (and even radiate interfering signals again).
Therefore, all printed lines that pass AC current should be designed to be as short and wide as possible, which means that all components connected to the printed lines and other power lines must be placed very close.
The length of the printed line is proportional to its inductance and impedance, and the width is inversely proportional to the inductance and impedance of the printed line. The length reflects the wavelength of the printed line's response. The longer the length, the lower the frequency at which the printed line can send and receive electromagnetic waves, and it can radiate more radio frequency energy.
According to the size of the printed circuit board current, try to increase the width of the power line to reduce the loop resistance. At the same time, make the direction of the power line and the ground line consistent with the direction of the current, which helps to enhance the anti-noise ability.
Grounding is the bottom branch of the four current loops of the switching power supply. It plays an important role as a common reference point for the circuit, and it is an important method to control interference. Therefore, the placement of the grounding wire should be carefully considered in the layout. Mixing various groundings will cause unstable power supply operation.
6. Check
After the wiring design is completed, it is necessary to carefully check whether the wiring design conforms to the rules formulated by the designer, and at the same time, it is necessary to confirm whether the established rules meet the requirements of the printed board production process. Generally, check the lines and lines, the line and the component pads, and the lines. Whether the distance from the through hole, the component pad and the through hole, the through hole and the through hole is reasonable, and whether it meets the production requirements.
Whether the width of the power line and the ground line are appropriate, and whether there is a place to widen the ground line in the PCB. Note: Some errors can be ignored. For example, when a part of the outline of some connectors is placed outside the board frame, errors will occur when checking the spacing; in addition, each time the traces and vias are modified, the copper must be re-plated.
The review is based on the "PCB checklist", which includes design rules, layer definitions, line widths, spacing, pads, and via settings. It should also focus on reviewing the rationality of the device layout, the routing of power and ground networks, and high-speed clock networks. The wiring and shielding, the placement and connection of decoupling capacitors, etc.
7. Design output
Precautions for exporting Gerber files:
a. The layers that need to be output include wiring layer (bottom layer), silk screen layer (including top silk screen, bottom silk screen), solder mask (bottom solder mask), drilling layer (bottom layer), and a drilling file (NC Drill) )
b. When setting the Layer of the silk screen layer, do not select Part Type, select the top layer (bottom layer) and Outline, Text, Line of the silk screen layer
c. In PCB design, when setting the Layer of each layer, select the Board Outline. When setting the Layer of the silk screen layer, do not select Part Type, select the outline and text of the top layer (bottom layer) and the silk screen layer.