Status of the FEC

cancel
Showing results for 
Search instead for 
Did you mean: 

Status of the FEC

263 Views
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

Labels (1)
0 Kudos
1 Reply

115 Views
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 Kudos