Basic Rules of Component Layout
1. Layout according to the circuit module, the related circuit that realizes the same function is called a module, the components in the circuit module should adopt the principle of nearest concentration, and the digital circuit and the analog circuit should be separated at the same time;
2. Components, devices, screws and other mounting holes shall not be mounted within 1.27mm around non-mounting holes such as positioning holes and standard holes. Components shall not be mounted within 3.5mm (for M2.5) and 4mm (for M3) around mounting holes;
3. Avoid laying vias below components such as horizontally mounted resistors, inductors (plug-ins), and electrolytic capacitors to avoid short circuits between the vias and the component shell after wave soldering;
4. The distance between the outside of the component and the edge of the board is 5mm;
5. The distance between the outside of the pad of the mounted component and the outside of the adjacent component is greater than 2mm;
6. Metal shell components and metal parts (shielding boxes, etc.) cannot touch other components, and cannot be close to printed lines and pads, and the spacing should be greater than 2mm. The size of the positioning holes, fastener installation holes, elliptical holes and other square holes in the plate is greater than 3mm from the edge of the plate;
7. The heating element should not be close to the wire and the thermal element; the high-heating element should be evenly distributed;
8. The power socket should be arranged around the printed board as much as possible, and the bus bar terminals connected to the power socket should be arranged on the same side. Special care should be taken not to arrange power sockets and other soldered connectors between the connectors, in order to facilitate the soldering of these sockets and connectors, and the design and tying of power cables. The arrangement spacing of power sockets and welding connectors should be considered to facilitate the insertion and removal of power plugs;
9. Arrangement of other components:
All IC components are unilaterally aligned, the polarity of polar components is clearly marked, and the polarity marking on the same printed board should not be more than two directions. When two directions appear, the two directions are perpendicular to each other;
10. The wiring on the board should be properly dense. When the difference in density is too large, it should be filled with mesh copper foil, and the mesh should be greater than 8mil (or 0.2mm);
11. There should be no through-holes on the patch pads, so as to avoid the loss of solder paste and cause the components to be soldered. Important signal lines are not allowed to pass between the socket pins;
12. The patch is unilaterally aligned, the character direction is the same, and the packaging direction is the same;
13. For devices with polarity, the direction of polarity marking on the same board should be as consistent as possible.

Component Wiring Rules
1. In the area where the wiring area is ≤1mm from the edge of the PCB, and within 1mm around the mounting hole, wiring is prohibited;
2. The power line should be as wide as possible and should not be less than 18mil; the signal line width should not be less than 12mil; the cpu input and output lines should not be less than 10mil (or 8mil); the line spacing should not be less than 10mil;
3. The normal via hole is not less than 30mil;
4. Dual in-line: pad 60mil, aperture 40mil;
1/4W resistor: 51*55mil (0805 surface mount); when in-line, the pad is 62mil, and the aperture is 42mil;
Electrodeless capacitor: 51*55mil (0805 surface mount); when plugged directly, the pad is 50mil, and the aperture is 28mil;
5. Note that the power wire and the ground wire should be as radial as possible, and the signal wire should not be looped.

How to Improve Anti-interference Ability and Electromagnetic Compatibility?
How to improve anti-interference ability and electromagnetic compatibility when developing electronic products with processors?
1. The following systems should pay special attention to anti-electromagnetic interference:
(1) The microcontroller clock frequency is particularly high, and the bus cycle is particularly fast.
(2) The system contains high-power, high-current drive circuits, such as spark-generating relays, high-current switches, etc.
(3) A system with a weak analog signal circuit and a high-precision A/D conversion circuit.
2. To increase the anti-electromagnetic interference capability of the system, take the following measures:
(1) Use a low-frequency microcontroller
Selecting a microcontroller with a low external clock frequency can effectively reduce noise and improve the anti-interference ability of the system. Square waves and sine waves of the same frequency, the high frequency components in the square wave are much more than the sine wave. Although the amplitude of the high-frequency component of the square wave is smaller than that of the fundamental wave, the higher the frequency, the easier it is to emit and become a noise source. The most influential high-frequency noise generated by the microcontroller is about 3 times the clock frequency.
(2) Reduce distortion in signal transmission
Microcontrollers are mainly manufactured using high-speed CMOS technology. The static input current of the signal input terminal is about 1mA, the input capacitance is about 10PF, the input impedance is quite high, and the output terminal of the high-speed CMOS circuit has a considerable load capacity, that is, a considerable output value. The reflection problem is very serious when the long line is led to the input end with a relatively high input impedance, which will cause signal distortion and increase the system noise. When Tpd>Tr, it becomes a transmission line problem, and problems such as signal reflection and impedance matching must be considered.
The delay time of the signal on the printed circuit board is related to the characteristic impedance of the lead, that is, related to the dielectric constant of the printed circuit board material. It can be roughly considered that the transmission speed of the signal on the printed board leads is about 1/3 to 1/2 of the speed of light. The Tr (standard delay time) of commonly used logic telephone elements in systems composed of microcontrollers is between 3 and 18 ns.
On the printed circuit board, the signal passes through a 7W resistor and a 25cm long lead, and the on-line delay time is roughly between 4 and 20ns. That is to say, the shorter the signal leads on the printed circuit, the better, and the longest should not exceed 25cm. And the number of vias should be as small as possible, preferably no more than 2.
When the rise time of the signal is faster than the delay time of the signal, it is processed according to fast electronics. At this time, the impedance matching of the transmission line should be considered. For the signal transmission between the integrated blocks on a printed circuit board, it is necessary to avoid the situation of Td>Trd. The larger the printed circuit board, the less the speed of the system can be too fast.
Summarize a rule of printed circuit board design with the following conclusions:
Signals are transmitted on the printed board with a delay time no greater than the nominal delay time of the device used.
(3) Reduce the mutual interference between signal lines
A step signal with a rise time of Tr at point A is transmitted to terminal B through lead AB. The delay time of the signal on the AB line is Td. At point D, due to the forward transmission of the signal at point A, the reflection of the signal after reaching point B and the delay of the AB line, a page pulse signal with a width of Tr will be induced after Td time. At point C, due to the transmission and reflection of the signal on AB, a positive pulse signal with a width of twice the delay time of the signal on the AB line, that is, 2Td, will be induced. This is the cross-interference between signals. The strength of the interfering signal is related to the di/at of the signal at point C, and is related to the distance between lines. When the two signal lines are not very long, what is actually seen on AB is the superposition of two pulses.
Microcontrollers manufactured by CMOS process have high input impedance, high noise, and high noise tolerance. The digital circuit is superimposed with 100~200mv noise and does not affect its work. If the AB line in the figure is an analog signal, this kind of interference becomes intolerable. For example, if the printed circuit board is a four-layer board, one of which is a large-area ground, or a double-sided board, when the reverse side of the signal line is a large-area ground, the cross-interference between such signals will become smaller. The reason is that the large area of ground reduces the characteristic impedance of the signal line, and the reflection of the signal at the D terminal is greatly reduced. The characteristic impedance is inversely proportional to the square of the dielectric constant of the medium between the signal line and the ground, and is proportional to the natural logarithm of the thickness of the medium. If the AB line is an analog signal, to avoid the interference of the digital circuit signal line CD to AB, there should be a large area of ground below the AB line, and the distance from the AB line to the CD line should be greater than 2~3 times the distance between the AB line and the ground. Partial shielding can be used, and ground wires are arranged on the left and right sides of the lead on the side with the lead junction.
(4) Reduce the noise from the power supply
While supplying energy to the system, the power supply also adds its noise to the power supply being supplied. The reset line, interrupt line, and other control lines of the microcontroller in the circuit are most susceptible to interference from external noise. Strong disturbances on the grid enter the circuit through the power supply, and even in battery-powered systems, the battery itself has high-frequency noise. Analog signals in analog circuits are more resistant to interference from power sources.
(5) Pay attention to the high-frequency characteristics of printed circuit boards and components
In the case of high frequency, the distributed inductance and capacitance of the leads, vias, resistors, capacitors, and connectors on the printed circuit board cannot be ignored. The distributed inductance of the capacitor cannot be ignored, and the distributed capacitance of the inductor cannot be ignored. The resistance will reflect the high-frequency signal, and the distributed capacitance of the lead will work. When the length is greater than 1/20 of the corresponding wavelength of the noise frequency, an antenna effect will occur, and the noise will be emitted through the lead.
The vias of the printed circuit board cause a capacitance of about 0.6pf.
The packaging material of an integrated circuit itself introduces 2~6pf capacitance.
A connector on a circuit board has a distributed inductance of 520nH. A double row straight 24-pin integrated circuit holder, which introduces a distributed inductance of 4~18nH.
These small distribution parameters are negligible for this line of microcontroller systems at lower frequencies; special attention must be paid to high-speed systems.
(6) Component layout should be reasonably partitioned
The position of the components arranged on the printed circuit board should fully consider the problem of anti-electromagnetic interference. One of the principles is that the leads between the components should be as short as possible. In the layout, the analog signal part, the high-speed digital circuit part, and the noise source part (such as relays, high-current switches, etc.) should be reasonably separated to minimize the signal coupling between them.
Handle the Grounding Wire
On a printed circuit board, the power and ground wires are the most important. To overcome electromagnetic interference, the most important means is grounding.
For the double-sided panel, the ground wire layout is very particular. By adopting the single-point grounding method, the power supply and the ground are connected to the printed circuit board from both ends of the power supply, with one contact for the power supply and one contact for the ground. On the printed circuit board, there must be multiple return ground wires, and these will be gathered on the contact of the return power supply, which is the so-called single-point grounding. The so-called separation of analog ground, digital ground, and high-power device ground means that the wiring is separated, and finally all of them are brought together to this grounding point. When connecting to signals other than the printed circuit board, shielded cables are usually used. For high frequency and digital signals, the shielded cable is grounded at both ends. Shielded cables for low-frequency analog signals should be grounded at one end.
Circuits that are very sensitive to noise and interference or circuits that are particularly high-frequency noise should be shielded with a metal cover.
(7) Make good use of decoupling capacitors
A good high frequency decoupling capacitor can remove high frequency components up to 1GHZ. Ceramic chip capacitors or multilayer ceramic capacitors have better high-frequency characteristics. When designing a printed circuit board, a decoupling capacitor should be added between the power supply of each integrated circuit and the ground. The decoupling capacitor has two functions: on the one hand, it is the energy storage capacitor of the integrated circuit, which provides and absorbs the charging and discharging energy of the integrated circuit at the moment of opening and closing the door; on the other hand, it bypasses the high-frequency noise of the device. A typical decoupling capacitor in a digital circuit is a 0.1uf decoupling capacitor with a distributed inductance of 5nH, and its parallel resonance frequency is about 7MHz, which means that it has a good decoupling effect for noise below 10MHz, and has a good decoupling effect for noise above 40MHz. Noise hardly works.
1uf, 10uf capacitors, the parallel resonance frequency is above 20MHz, and the effect of removing high-frequency noise is better. Where the power goes to the board and a 1uf or 10uf de-high frequency capacitor is often advantageous, even battery powered systems require this.
Every 10 pieces of integrated circuits should be added with a charge and discharge capacitor, or a storage and discharge capacitor, and the size of the capacitor can be 10uf. It is best not to use electrolytic capacitors. Electrolytic capacitors are rolled up with two layers of Pu film. This rolled structure behaves as inductance at high frequencies. It is best to use bile capacitors or polycarbonate capacitors.
The selection of the decoupling capacitor value is not strict, it can be calculated according to C=1/f; that is, 10MHz is 0.1uf, and for the system composed of a microcontroller, it can be between 0.1 and 0.01uf.
3. Experience in reducing noise and electromagnetic interference.
(1) High-speed chips are not needed if low-speed chips can be used, and high-speed chips are used in key places.
(2) A resistor can be used in series to reduce the transition rate of the upper and lower edges of the control circuit.
(3) Try to provide some form of damping for relays, etc.
(4) Use the lowest frequency clock that meets the system requirements.
(5) The clock generator is as close as possible to the device using the clock. The quartz crystal oscillator case should be grounded.
(6) Circle the clock area with a ground wire, and keep the clock wire as short as possible.
(7) The I/O drive circuit should be as close as possible to the edge of the printed board, so that it can leave the printed board as soon as possible. The signal entering the printed board should be filtered, and the signal from the high-noise area should also be filtered. At the same time, the method of serial terminal resistance should be used to reduce the signal reflection.
(8) The useless end of the MCD should be connected to high, or grounded, or defined as an output end. The end of the integrated circuit that should be connected to the power supply ground should be connected, and should not be left floating.
(9) Do not float the input terminal of the gate circuit that is not in use. The positive input terminal of the operational amplifier that is not in use is grounded, and the negative input terminal is connected to the output terminal.
(10) The printed board should use 45 fold lines instead of 90 fold lines as much as possible to reduce the external emission and coupling of high-frequency signals.
(11) The printed board is divided according to frequency and current switching characteristics, and the distance between noise components and non-noise components should be farther.
(12) Use single-point power supply and single-point grounding for single-sided and double-sided boards, and the power line and ground line should be as thick as possible. If the economy can afford it, use a multi-layer board to reduce the capacitive inductance of the power supply and ground.
(13) Clock, bus, and chip select signals should be kept away from I/O lines and connectors.
(14) The analog voltage input line and the reference voltage terminal should be kept as far away as possible from the digital circuit signal line, especially the clock.
(15) For A/D devices, the digital part and the analog part would rather be unified rather than exchanged.
(16) The clock line perpendicular to the I/O line has less interference than the parallel I/O line, and the clock component pins are far away from the I/O cable.
(17) The component pins should be as short as possible, and the decoupling capacitor pins should be as short as possible.
(18) The key lines should be as thick as possible, and protective ground should be added on both sides. High-speed lines should be short and straight.
(19) The line sensitive to noise should not be parallel to the high-current, high-speed switching line.
(20) Do not route wires under the quartz crystal and under the devices that are sensitive to noise.
(21) For weak signal circuits, do not form current loops around low-frequency circuits.
(22) Do not form a loop for any signal. If it is unavoidable, make the loop area as small as possible.
(23) One decoupling capacitor per integrated circuit. A small high frequency bypass capacitor should be added beside each electrolytic capacitor.
(24) Use large-capacity tantalum capacitors or polycooled capacitors instead of electrolytic capacitors as circuit charge and discharge energy storage capacitors. When using tubular capacitors, the case should be grounded.
About Wonderful

Shenzhen Wonderful Technology Co., Ltd. is China’s top model and small batch circuit board manufacturer.
The company targets precision circuit board samples and small batches as the main target market. Since its establishment, it has adhered to the development concept of good quality and important reputation.
Invest huge sums of money to introduce advanced equipment, strictly regulate the operating standards and QC standards for incoming and outgoing materials, to ensure that the shipped products reach Seiko quality.
The self-developed ERP management system can realize the whole process of paperless operations such as online ordering, online payment, online production progress query, online logistics tracking, and online statistical report production, which greatly improves work efficiency.
It ensures that each order can be shipped quickly. After more than ten years of development, the company’s products and services have been well received by the market.
As well as the opening of an electronic component mall, integrated circuits, semiconductors, resistors, capacitors and other products are sold.
The company’s scale is developing rapidly, and the sample and small batch shipment capacity reaches 500 models/day.
The products are widely used in communications, medical equipment, industrial control products, aviation, military products, testing instruments,Automotive, computers and other peripheral products.
We will continue to pay attention to customers, with efficient delivery speed and perfect after-sales service, to become the most trusted brand supplier in the PCB industry.
Wonderful PCB You can send us your requirements first. Click here to contact us.
You can click our component store. Please click here to contact us.




