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.

TM4C1294NCZAD: Configure GPIO PK4 as network port LED

Part Number: TM4C1294NCZAD

Dear team:

My customer wants to configure GPIO PK4 as the LED indicator of the network port, and it is required to flash quickly when there is data exchange.

But the indicator light he configured can only keep on constantly, not flashing quickly.

How can I modify the configuration?

Best regards

  • Hi Green,

      Please refer to the MR24 (EPHLEDCR) register on the LED blinking rate. 

    Also refer to MR37 (EPHYLEDCFG) register on how to use different LEDs for different functions.

    Below is an example code to configure PF0 and PF4 for LEDs. 

    GPIOPinConfigure(GPIO_PF0_EN0LED0);
    GPIOPinConfigure(GPIO_PF4_EN0LED1);
    GPIOPinTypeEthernetLED(GPIO_PORTF_BASE, GPIO_PIN_0 | GPIO_PIN_4);
    EMACPHYExtendedWrite(EMAC0_BASE, 0, 0x025, 0x80); // LEFT led link OK, RIGHT led blinking at RX/TX activity
    EMACPHYWrite(EMAC0_BASE, 0, 0x018, 0x0400); // 5Hz blink rate

    First LED shows LINK status and second LED shows Link OK and RX/TX activity. You can configure per your application requirements. 

  • Thank you for your detailed answer.