RMII interface with MII Management Bus

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

RMII interface with MII Management Bus

跳至解决方案
2,137 次查看
Jeinstei
Contributor II

Hi-

We have a Micrel chip that runs with an RMII interface with an MII management bus. Do the ReadMII/WriteMII/GetMIIResult methods work? They say that they only work in MII mode, but does this mean that they only work if the Management Bus is enabled?

Thanks,

Josh

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
1,720 次查看
LadislavVadkerti
NXP Employee
NXP Employee

Hi,

yes, they work in both modes, MII and RMII. Historically there was a third mode (currently hidden), which did not have a management bus. Without that mode the hint is confusing and it should be changed. And, of course, if you disable the management bus, the methods are also useless. Thank you for pointing out.

Ladislav

在原帖中查看解决方案

0 项奖励
回复
5 回复数
1,720 次查看
Jeinstei
Contributor II

Thanks for the help with this! I guess our Management Bus is having its own problems then; I'm going to have to look into this!

0 项奖励
回复
1,721 次查看
LadislavVadkerti
NXP Employee
NXP Employee

Hi,

yes, they work in both modes, MII and RMII. Historically there was a third mode (currently hidden), which did not have a management bus. Without that mode the hint is confusing and it should be changed. And, of course, if you disable the management bus, the methods are also useless. Thank you for pointing out.

Ladislav

0 项奖励
回复
1,720 次查看
Jeinstei
Contributor II

Ladislav-

There looks to be another problem though. ETHn_GetMIIResult() ALWAYS returns an ERR_OK accroding to the driver, meaning that ERR_BUSY is never returned. This means a manual delay has to be added on register reads.

0 项奖励
回复
1,720 次查看
LadislavVadkerti
NXP Employee
NXP Employee

If the OnMIIFinished event is enabled, it signalizes that the register value has been received. If you turn it off, the GetMIIResult will test the completion flag.

0 项奖励
回复
1,720 次查看
Jeinstei
Contributor II

Ah-HA! I see it now. Interesting. I appreciate the assistance!

0 项奖励
回复