Status of the FEC

取消
显示结果 
搜索替代 
您的意思是: 

Status of the FEC

267 次查看
PEGE
Contributor I

Hello I need to know in which register are the status information's of the FEC are stored. After reset (5282 EVB) the FEC need some seconds to start. I want to wait till the fec is ready and start my routine. I watch the manual but I can't find information about a status register.

 

Regards PEGE

标签 (1)
0 项奖励
1 回复

119 次查看
TomE
Specialist I

According to "17.4.6 Ethernet Control Register (ECR)" in the Reference Manual, "The reset sequence takes approximately eight internal bus clock cycles after this bit is set.". So if you're seeing it take "some seconds" (millions of times longer) then it is probably a delay in whatever software you're running to initialise the FEC.

 

So you should be checking the software to see if it has a "ready function" or a "ready callback" to find when it is finished.

 

You delay might be due to the link taking a while to become active. The PHY might take a while to sync up with the remote. You should have some softwre that handles the FEC MMFR register. This is used to communicate with the PHY to see if it is ready and connected to a hub or switch. Likewise it might have a function you can call to find the current state.

 

Tom

 

0 项奖励