看datasheet里有这样的叙述:
硬件复位时:This will reset the device such that all registers will be reinitialized to default values and the hardware configuration values will be re-latched into the device (similar to the power-up/reset operation).
软件复位时:The software reset will reset the device such that all registers will be reset to default values and the hardware configuration values will be maintained. Software driver code must wait 3 ?s following a software reset before allowing further serial MII operations with the DP83848C
区别在于the hardware configuration values will be re-latched 和the hardware configuration values will be maintained 。
首先我不太明白all registers和the hardware configuration values 的区别。然后maintain是保持,re-latched从字面上看是重新锁存?
为什么不把软件复位和硬件复位做成效果一样的呢?还是因为软件复位和硬件复位有本质的区别?
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
if(!(ETH_WritePHYRegister(PHY_ADDRESS, PHY_BCR, PHY_Reset)))//失败
{
return 1;
}
/* Delay to assure PHY reset */
_eth_delay_(PHY_RESET_DELAY);
不知道是不是这个问题,现在板子没在手边,没法试。不知道软硬件复位效果一样不。望回复,多谢
一周热门 更多>