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.

[参考译文] DP83867IS:环回模式的寄存器设置

Guru**** 2747375 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/interface-group/interface/f/interface-forum/780348/dp83867is-register-settings-for-loopback-modes

器件型号:DP83867IS

我正在尝试使用此 PHY 的近端回送模式来证明我的代码。  我有以下资源:  

SNLS504B 2017年3月 数据表
SNLA246A 04/2016 故障排除指南

我使用故障排除指南中的寄存器设置、但 PHY 不会进入环回。

设置 MII 回送、数字回送和模拟回送的寄存器写入序列是什么?

我想不知道寄存器0xFE 的作用是什么、我是否需要设置该寄存器。  故障排除指南完全没有提到该寄存器、但数据表没有提到。

谢谢、
ED

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好!

    应使用寄存器0x00进行 MII 回送。


    所有其他环回都应使用寄存器 e BOSCH (寄存器地址0x16)进行配置

    在寄存器0x00FE 上、让我检查并返回。

    此致、
    GET
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    Geet、
    我现在可以进入寄存器 FE、我发现有一个"扩展寄存器集"、并使用寄存器0x0d 和0x0E 进行访问、如下所示。

    对于环回模式、答案如下:

    //为 MII 回送设置 PHY
    PhyWrite (0、0x4140);
    PhyWrite (0x16、0);
    PhyWrite (0x0d、0x1f);
    PhyWrite (0x0E、0xFE);
    PhyWrite (0x0d、0x401f);
    PhyWrite (0x0E、0xe720);
    PhyWrite (0x1f、0x4000);

    //为数字回送设置 PHY
    PhyWrite (0、0x140);
    PhyWrite (0x16、4);
    PhyWrite (0x0d、0x1f);
    PhyWrite (0x0E、0xFE);
    PhyWrite (0x0d、0x401f);
    PhyWrite (0x0E、0xe720);
    PhyWrite (0x1f、0x4000);

    //为模拟回路设置 PHY
    PhyWrite (0、0x140);
    PhyWrite (0x16、8);
    PhyWrite (0x0d、0x1f);
    PhyWrite (0x0E、0xFE);
    PhyWrite (0x0d、0x401f);
    PhyWrite (0x0E、0xe720);
    PhyWrite (0x1f、0x4000);

    这适用于 Xilinx 评估板型号 KCU116。

    顺便说一下、我发现在使用模拟环回模式时、如果 eth 电缆连接到链路伙伴、您需要将其移除。 如果不是、您会收到大量损坏的数据包等

    感谢你们回来了…
    ED