Hi,
We need to understand the triggering and monitoring thresholds for fast link down to make sure our custom ethercat cabling in this motion system that we are designing will be compliant and not "on the edge" or far below expected levels for a fast link down failure. We have already had problems with this with our existing custom cable. This is critical to our ethercat system performance. We will be turning fast link down off during critical windows of operation to reduce the chance of link loss to an absolute minimum, but we would like to leave it on most of the time so we are getting the maximum benefit of the functionality.
My questions are as follows:
1. Is there a PHY configuration permutation that enables us to actively monitor the Fast Link Down status flags (0x0F in management bus) but not have FLD automatically kill the link? This would be optimal for us. Or alternatively, do you only get access to the benefits of the flags in 0x0F when a link drop function is enabled/present?
2. Bit 1 of 0x0B references a signal to noise ratio detection mode that can trigger a FLD link drop. What is the actual SNR threshold that will trigger this flag? We would like to measure the performance of our old cable and the new cable we are designing to make sure it well exceeds the failure threshold of the this feature on the DP83826.
3. Bit 0 of 0x0B references a signal/energy loss detection mode that can trigger a FLD link drop. This feature is extremely vague for me. How is it detecting signal/energy loss and what is the electrical criteria that it is testing for on the signal to consider the FLD signal/energy loss failure mode? I need to be able to capture this problem on the scope, and and understand what issue with the cable design that is causing it so I can address it.
4. Does the "SNR level" bit flag in 0x0F get set to 1 for each occurrence of the SNR threshold crossing, or only set to 1 after 20 threshold crossings as described in the register description of 0x0B? When we were having the link drops, I want to understand if what we were seeing was 1 occurrence or 20+ occurrences of SNR threshold crossing.
Here is the background of the problem we had for context:
We are using a motor controller from a company that switched to the DP83826 for their Ethercat PHY's, and they used to use the KSZ8081. Their older motor controllers with the KSZ8081 have fast link down turned off and the newer ones with the DP83826 have it turned on. We were experiencing link drops and it was coming from a combination of fast link down being turned on combined with our custom cable having not correct specifications. The system actually runs reliably with no ethercat errors using the bad cable when we turn off Fast Link Down. We need to redesign our cable to still fit our application but also make sure it isn't going to trigger fast link down any more.
Specifically on the newer units with the DP83826, 0x0B (CR3 Register) on the management bus is set to 0x03.
Per the Datasheet here is the information for register 0x0B:
Fast Link Down Modes:
Bit 3 Drop the link based on RX Error count of the MII interface.
When a predefined number of 32 RX Error occurences in a 10us
interval is reached, the link will be dropped.
Bit 2 Drop the link based on MLT3 Error count (Violation of the MLT3
coding in the DSP output). When a predefined number of 20 MLT3
Error occurences in10us interval is reached, the link will be dropped.
Bit 1 Drop the link based on Low SNR Threshold. When a predefined
number of 20 Threshold crossing occurences in a 10us interval is
reached, the link will be dropped.
Bit 0 Drop the link based on Signal/Energy Loss indication. When
the Energy detector indicates Energy Loss, the link will be dropped.
Typical reaction time is 10us
C : Bit 0 default is 0
NC+ MII: Bit 0 is taken from STRAP in ENHANCED mode
NC + RMII: Bit 0 default is 0
The Fast Link Down function is an OR of all 5 options (bits [10] and
[3:0]), the designer can enable any combination of these conditions.
Also, 0x0F (Fast Link Down Status) was set to 0x03 on the system that was dropping link.
Fast Link Down Status:
Status Registers that latch high each time a given Fast Link Down
mode is activated and causes a link drop (assuming the modes were
enabled)
1h = Signal/Energy Lost
2h = SNR Level
4h = MLT3 Errors
8h = RX Errors
10h = Descrambler Loss Sync