I have tried enabling external loopback by writing 0x3010 to register 0x16. But there is no output from the PHY. What are the proper steps to enable the external loopback shown in this picture:
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I have tried enabling external loopback by writing 0x3010 to register 0x16. But there is no output from the PHY. What are the proper steps to enable the external loopback shown in this picture:
Hi Michael,
I'm more than happy to assist with your query. First could you help me understand what you are trying to debug using the loopback modes?
From the register write you provided, Reg 0x16 = 3010, PRBS Generator is enabled and so is Reverse loopback. The PRBS Generator sends packets out of the MDI side (cable side) by default and Reverse Loopback takes data received from the cable and sends it back through the cable. These two modes are not compatible with each other.
Regards,
Alvaro
Thanks Alvaro,
I want to use external loopback where the local PHY sends data to the remote PHY. The remote PHY is configured to echo that data back to the local PHY. I then want the local PHY to confirm the data matches what was sent.
Hi Michael,
Thanks for clarifying. In your case the DP83826 is the local PHY, there is no need to use a loopback mode then (Reg 0x16 = 3000). The BIST generator will send data through the cable where the remote PHY will receive and echo back (remote PHY is in Reverse Loopback). The errors can be checked in Register 0x1B of the local PHY.
Regards,
Alvaro
Thanks Alvaro,
I am still having some trouble. I have tried writing 0x2100 to register 0x00 and 0x3100 to 0x16. I read back:
Reg: 0x16 data: 0x3b00
Reg: 0x1b data: 0x7d
The error count is always 0 regardless of whether the external loopback adapter is connected. Why doesn't it detect errors when the loopback is missing?
Hi Michael!
So I went into lab to check PRBS functionality on our DP83826EVM, here's what I found.
Regards,
Alvaro