Part Number:TM4C129XNCZAD
I am in the process of porting code that was originally written for a Stellaris processor over to a TM4C129X chip. I came across the following code in the board initialization:
/* Disable Ethernet */ if (SysCtlPeripheralPresent(SYSCTL_PERIPH_ETH)) { SysCtlPeripheralEnable(SYSCTL_PERIPH_ETH); SysCtlPeripheralReset(SYSCTL_PERIPH_ETH); EthernetInit(ETH_BASE); /* wait for 100ms - undocumented */ SysCtlDelay(SysCtlClockGet()/30); /* 3 cycles per loop count */ EthernetPHYWrite(ETH_BASE, PHY_MR0, 0x00000800); // Power down }
Is it really necessary to enable the Ethernet peripheral and explictly set its Power bit in the control register in order to save on power consumption? I would have thought that unless you enable the peripheral, it would not draw any power.
Regards,
Dave