This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Energy detect mode DP83848C

Hello

I am writing a Network application on the STM32f107 which communicates through the DP83848C PHY from TI. For that I am using Keil software packs: RTX, MDK-pro network component, and the PHY driver (also from Keil). This means that the configuration of the DP83848C is done by the network component itself and not by me. Is there a way for me to override the configurations? I've tried to write to the PHY's registers to get it into energy detect mode but this doesn't seem to work...

... includes

uint16_t reg;

extern ARM_DRIVER_ETH_PHY Driver_ETH_PHY0;
extern ARM_DRIVER_ETH_MAC Driver_ETH_MAC0;

int main (void) {
        ARM_DRIVER_ETH_PHY* PHYdrv = &Driver_ETH_PHY0;
        ARM_DRIVER_ETH_MAC* MACdrv = &Driver_ETH_MAC0;

  config();
        net_initialize     ();
        MACdrv->PHY_Write(0x01, 0x1D, 0xE000);
        MACdrv->PHY_Read(0x01, 0x00, ®);
        reg |= 0x2100;
        reg &= 0xEFFF;
        MACdrv->PHY_Write(0x01, 0x00, reg);
        MACdrv->PHY_Read(0x01, 0x19, ®);
        reg |= 0x8000;
        MACdrv->PHY_Write(0x01, 0x19, reg);


  while(1) {
    net_main                    ();
    osThreadYield ();
  }
}