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.
非常感谢你 Thomas Yang1,现在的使用MDIO初始化PHY芯片的问题是这样的:我用MDIO向PHY芯片寄存器用PHYREG_write函数写值时,
PHYREG_write( pd->regId, PHYREG_CONTROL, phyAddr, PHYREG_CONTROL_RESET );
PHYREG_waitResultsAck( pd->regId, &i, &ack );
函数的ack可以返回1,tmp1是写入寄存器的值。配置其他寄存器都是一样,但是我配置完后
使用PHYREG_read读状态寄存器的时候
PHYREG_read( pd->regId, PHYREG_STATUS, pd->phyAddr );
PHYREG_waitResultsAck( pd->regId, &tmp1, &ack );
返回值ack始终为0,而且tmp1的值始终为0xffff。都其他寄存器也是一样返回0xFFFF.
我向PHY的控制寄存器的Reset写1,按理说PHY芯片会自动复位清0,可为什么写完后的返回值还是写入的值呢?
还有MDIO的ACTIVE寄存器始终为0。我采用的是88E1111自协商模式。
帮忙分析分析,谢谢