The following is an introduction to the PCB circuit board design of the Ethernet interface circuit:
The network interfaces used today are all Ethernet interfaces, and most processors currently support Ethernet ports. At present, Ethernet mainly includes three interfaces of 10M, 10/100M, and 1000M according to the rate. 10M applications have been very few, and they are basically replaced by 10/100M. At present, the Ethernet interface type of our products mainly adopts the twisted pair RJ45 interface, and it is basically used in the industrial control field. Due to the particularity of the industrial control field, we are quite sophisticated in the selection of Ethernet devices and PCB design. From the perspective of hardware, the Ethernet interface circuit is mainly composed of MAC (MediaAccess Controlleroler) control and physical layer interface (PhysicalLayer, PHY). Most processors include Ethernet MAC control, but do not provide a physical layer interface, so an external physical chip is needed to provide an Ethernet access channel. Faced with such a complicated interface circuit, I believe all hardware engineers want to know how the hardware circuit is implemented on the PCB circuit board.
PCB design is basically layout and wiring according to this block diagram. Below we will use this block diagram to explain in detail the main points of the layout and wiring of the Ethernet interface circuit.
1. The reference circuit PCB design layout and wiring diagram of the network port transformer not integrated in the network port connector. The following figure 2 introduces the points that need to be paid attention to the layout and wiring of the Ethernet circuit.
a) The distance between the RJ45 and the transformer should be as short as possible. The crystal oscillator should be far away from the interface, PCB edge and other high-frequency devices, traces or magnetic components. The distance between the PHY layer chip and the transformer should be as short as possible, but sometimes for Considering the overall layout, this may be more difficult to satisfy, but the maximum distance between them is about 10~12cm. The principle of device layout is to usually place them according to the signal flow direction, and do not go around;
b) The power filter of the PHY layer chip is designed according to the requirements of the chip. Usually, a decoupling capacitor is placed on each power terminal. They can provide a low impedance path for the signal to reduce the resonance between the power supply and the ground plane, in order to make the capacitor Play the role of decoupling and bypass, so it is necessary to ensure that the loop area composed of capacitors, traces, vias, and pads of decoupling and bypass capacitors is as small as possible, and the lead inductance is as small as possible;
C) The filter capacitor from the center tap of the chip side of the PHY layer of the network port transformer to the ground should be as close as possible to the transformer pin to ensure the shortest lead and the smallest distributed inductance;
D) The common mode resistance and high voltage capacitor on the interface side of the network port transformer are placed close to the center tap, and the wiring is short and thick (≥15mil);
E) Both sides of the transformer need to be grounded: that is, the RJ45 connector and the secondary coil of the transformer use a separate isolated ground, the isolation area is more than 100mil, and there is no power supply and ground layer under this isolation area. This segmentation process is to achieve the isolation between the primary and the secondary, and the interference from the control source is coupled to the secondary through the reference plane;
F) The power line of the indicator light and the drive signal line are routed adjacent to each other to minimize the loop area. The indicator light and the differential line should be separated as necessary, and the two should be kept at a sufficient distance. If there is space, it can be separated by GND;
G) The resistors and capacitors used to connect GND and PGND need to be placed in the ground segmentation area.
2. Ethernet signal lines are in the form of differential pairs (Rx±, Tx±). Differential lines have strong common-mode rejection and strong anti-interference ability. However, if the wiring is improper, it will bring serious signal integrity. Sexual issues. Let's introduce the processing points of the differential line one by one:
A) Give priority to drawing Rx±, Tx± differential pairs, try to keep the differential pairs parallel, equal length, and short distance, and avoid vias and crosses. Due to factors such as pin distribution, vias, and wiring space, the length of the differential line is likely to be mismatched, the timing will be shifted, and common mode interference will be introduced, which will reduce signal quality. Therefore, it is necessary to compensate for the mismatch of the differential pair to make the line length match. The length difference is usually controlled within 5mil. The compensation principle is where the length difference is compensated;
B) When the speed requirement is high, the impedance control of Rx±, Tx± differential pair is required, usually the impedance is controlled at 100Ω±10%;
C) Differential signal termination resistance (49.9Ω, some PHY layer chips may not) must be placed close to the Rx± and Tx± pins of the PHY layer chip, which can better eliminate signal reflection in the communication cable;
D) The filter capacitors on the differential pair must be placed symmetrically, otherwise the differential mode may be converted to common mode, causing common mode noise, and there must be no stubs when routing, so as to have good suppression of high frequency noise.
Ethernet signal lines are in the form of differential pairs (Rx±, Tx±). Differential lines have strong common-mode rejection and strong anti-interference ability. However, if the wiring is improper, it will cause serious signal integrity problems.
3. The PCB layout and wiring of the Ethernet circuit where the transformer is integrated in the connector is much simpler than that of the non-integrated Ethernet circuit.
The Ethernet layout and wiring must be roughly these. Good PCB design layout and wiring can not only ensure the circuit performance, but also improve the circuit performance. The author's level is limited. Please correct me if you are short of it.