Why Your Network Card May Not Function Properly?

Introduction

The proper operation of the network card is crucial for the system’s network functionality. This article delves into the issues of network card failure due to insufficient reset time, interpreting the reset requirements of different network card chips, circuit design, and key points for driver compatibility, providing engineers with reference for network card design and debugging to help ensure network system stability.

ZLG Zhiyuan Electronics has served a large number of customers since designing ARM core boards, a significant portion of which involves debugging network card circuits and drivers for clients. There are issues with circuit design, driver software, and system network configuration. Sometimes, solving a problem is not simply about hardware or drivers; it requires a multifaceted approach. Looking solely at hardware, aside from schematic design, there are also PCB wiring issues. Below are several practical cases that illustrate aspects of hardware design, PCB wiring, and driver compatibility:

  1. Insufficient PHY reset time leading to abnormal network card operation;

  2. MDIO source end lacking a 22Ω terminating resistor, causing signal reflection and abnormal network card operation;

  3. Poor PCB routing leading to abnormal network card operation.

Why Your Network Card May Not Function Properly? Insufficient reset time leading to abnormal network card operation
One customer selected Zhiyuan Electronics’ core board to design a new product, pairing it with their commonly used Ethernet PHY chip LAN8720, but it did not work properly, prompting them to seek our assistance for debugging. Upon understanding, it was found that the customer’s original network card reset was controlled by the CPU, but in the new design, they referenced our development board and changed to an RC delay reset. However, the customer did not pay attention to the reset time requirements of the network card chip during the design.
1. Detailed Analysis

The LAN8720 requires a reset time of no less than 100us (see Figure 1), while the DP83848 used on the reference board requires a reset time of 1us (see Figure 2). Thus, the RC delay parameters used are very small. The parameters for the DP83848 were directly copied onto the LAN8720 circuit, resulting in a reset time that far exceeds the device’s requirements, causing the network card to fail to operate normally.

Why Your Network Card May Not Function Properly?

Figure 1 LAN8720 reset time requirements

Why Your Network Card May Not Function Properly?

Figure 2 DP83848 reset time requirements

Figure 3 shows the network card circuit used by the customer.

Why Your Network Card May Not Function Properly?

Figure 3 Circuit diagram of the LAN7820 used by the customer

From the circuit diagram, it can be seen that the RC reset circuit has R=10KΩ, C=12pF, and the charging time t = RC: (10^6*12*10^-12) = 12*10^-6 = 12us.

Reset time T = K*R1*C1 (K equals 3~5), multiplying by the K constant, the reset time is still less than 100us, failing to meet the LAN8720 reset time requirements.

It is essential to strictly design the reset circuit according to the reset time requirements of the network card chip to ensure that the network card chip can reset normally.

2. Common Network Card Reset Times

The reset time requirements for different network card chips vary greatly, ranging from microseconds to milliseconds. Below is a summary of some common network card reset time requirements.

  • LAN8720: starting at 100us, see Figure 4.

Why Your Network Card May Not Function Properly?
Why Your Network Card May Not Function Properly?
Figure 4 LAN8720 reset timing and time parameters
  • DP83848: starting at 1us, see Figure 5.
Why Your Network Card May Not Function Properly?
Why Your Network Card May Not Function Properly?
Figure 5 DP83848 reset timing and time parameters
  • Yutai Micro TY8512/YT8531, starting at 10ms, see Figure 6.

Why Your Network Card May Not Function Properly?
Why Your Network Card May Not Function Properly?
Figure 6 TY8512 and YT8531 reset time requirements
  • ICPlus: IP101G, starting at 10ms, see Figure 7.

Why Your Network Card May Not Function Properly?
Why Your Network Card May Not Function Properly?
Figure 7 IP101G reset time and timing

In summary, in general design, it is recommended to use the GPIO of the main control chip to control the reset of the PHY chip, and to parallel the RC circuit near the PHY chip to enhance stability; if the main control chip’s IO resources are tight, an RC delay reset can be used, but it is essential to calculate the required reset time accurately and leave sufficient margin.

  • Moreover, even if the reset time requirements specified in this manual are met, it does not guarantee normal operation. If the design uses the MAC to provide a reference clock to the PHY, the main control’s reference clock may default to input mode, requiring the driver to be loaded and the software configured to output mode. Therefore, it is also necessary to ensure that the Ethernet driver is fully loaded before the reset is released, and these times must be factored into the design of the RC reset parameters.

  • In fact, not only network card chips but also other chips with reset pins need to consider the reset time requirements during circuit design to ensure that the circuit meets the conditions for normal operation.

Follow us for the next issue where we will continue discussing “Analysis of Network Card Freezing Caused by MDIO Signal Reflection”.
Why Your Network Card May Not Function Properly?
  • AM335x Upgrade Option

  • 2 Gigabit Ethernet

  • 3 CAN FD Channels

  • Supports GPMC

Reference price: starting at 319 yuan

Why Your Network Card May Not Function Properly?

Long press to purchase

Why Your Network Card May Not Function Properly?
Why Your Network Card May Not Function Properly?
Why Your Network Card May Not Function Properly?
Why Your Network Card May Not Function Properly?
Why Your Network Card May Not Function Properly?
Why Your Network Card May Not Function Properly?
Why Your Network Card May Not Function Properly?
Why Your Network Card May Not Function Properly?
Why Your Network Card May Not Function Properly?

Leave a Comment