Library Ethernet code
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2007-10-04 12:28 AM
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 12:39 AM
Posted on May 17, 2011 at 09:39
Hi everyone.this is the part code of the ENET_Init(u32 operatingmode)
void ENET_Init (u32 operatingmode) { u32 i; vu32 regValue; ENET_MACConfig *MAC_Config; ENET_MACConfig config; ... ... /* Put the PHY in reset mode */ ENET_MIIWriteReg(0x0,MAC_MII_REG_XCR, 0x8000); /* Delay to assure PHY reset */ for(i=0; i { regValue = (u32) i; } ... .... } it means that the address of the PHY is 0x0;but the data which I read from PR20-XMC is 0xaa(PAD4:0 10101).when I think the address of the PHY is 0x00,I also can read ID of PHY(STE100P)and the ID is right.So what I wonder is that what is the address of PHY ,how to define ?In my evaluation board the Mf4:0 is 10111.I appreciate your help. Best Regards sunshanOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 12:39 AM
Posted on May 17, 2011 at 09:39
Follow up question:
what is the proper amount of delay to assure that PHY has been reset? The datasheet is not clear on this point. Any help from ST would be appreciated. -Jeremy [ This message was edited by: jsarao on 04-10-2007 02:10 ]