This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TM4C1294NCPDT: How to read EMACLEDCFG register?

Part Number: TM4C1294NCPDT

Dear all

Just come across the for Ethernet LED(MR37) configuration and would like to read/write this register, however, it reads all 0xFFFF, all others like ID1(MR2), ID2(MR3) etc are read correct use. Further trace found the MII address of MR37 cannot fit in 5 bits MII address register, and causes an overflow. Is something wrong here?

anyone noticed this? 

Regards!

Ping

  • Hi Ping,

    Seem to think Tivaware now supports LED function call to access MR37 but not always that easy long ago.

    I then added several specific defines for the few MR37 LED configurations that overlap PWM generators GPIO ports but think Tivaware defines may exist by now.

    Hope this code below helps you.

    #define EMAC_PHY_LED0LNK_LED1ACTY           0x00000010
    #define EMAC_PHY_LED0LNK_LED2ACTY           0x00000100
    
    
    MAP_EMACPHYExtendedWrite(EMAC0_BASE, 0, EPHY_LEDCFG, EMAC_PHY_LED0LNK_LED1ACTY);
    MAP_EMACPHYExtendedWrite(EMAC0_BASE, 0, EPHY_LEDCR, EPHY_LEDCR_BLINKRATE_5HZ);

  • Sorry for earlier posting strange hex defines MR37, not sure how LED's were working but they do and have for some time.