Content originally posted in LPCWare by kenjia@sannet.ne.jp on Sat Sep 04 18:07:34 MST 2010
Hi All,
I could not initialize a interface LAN7820A on LPC1768 Xpresso Board.
SW cannot recognize 7820 registers.
For DP83848C, followings are definition for base address.[INDENT] #define DP83848C_DEF_ADR 0x0100
#define DP83848C_ID 0x20005C90
[/INDENT]I'm using follows for 7820 same as 83848.[INDENT] #define LAN8720_DEF_ADR 0x0100
#define LAN8720_ID 0x0007C0F0
[/INDENT]I tried to use also below.[INDENT] #define LAN8720_DEF_ADR 0x0100
[/INDENT]For reset action and wait for reset completion, it always return us=0xffff.[INDENT] /* Put the PHY in reset mode */
// PHY_REG_BMCR=0, MCFG_RES_MII=0x8000
prvWritePHY( PHY_REG_BMCR, MCFG_RES_MII );
/* Wait for hardware reset to end. */
for( x = 0; x < 100; x++ ){[INDENT] vTaskDelay( emacSHORT_DELAY * 5 ); // FreeRTOS delay
us = prvReadPHY( PHY_REG_BMCR, &lDummy );
if( !( us & MCFG_RES_MII ) ){[INDENT] /* Reset complete */
break;
[/INDENT]}
[/INDENT]}
[/INDENT]Does anyone already success Ethernet control?
Thank you for your support in advance.
Best regards,
Kenji