SPRUII0F May 2019 – June 2024 TMS320F28384D , TMS320F28384D-Q1 , TMS320F28384S , TMS320F28384S-Q1 , TMS320F28386D , TMS320F28386D-Q1 , TMS320F28386S , TMS320F28386S-Q1 , TMS320F28388D , TMS320F28388S
There are four LED outputs from the ESC that can be routed out of GPIO to indicate different status of the ESC. Table 31-9 is the recommendation for applications on the usage, especially for the pin sensitive systems that can support this and still meet the intent. All the LED functions are routed to the peripheral pin mux and the user must configure the LEDs as per the available pins.
LED | Priority Order | Function | Recommendation | Usage Priority |
---|---|---|---|---|
RUN | 5 | Shows the status of ESC state machine with different blinking patterns. | In the case where color LEDs are not supported, then this needs to be supported. | Must |
ERR(1) | 4 | Indicates the Error in ESC operation. | In the case where color LEDs are not supported, then at least the Error status needs to be reported. | Must |
STATE | 2 | Combination of the RUN and ERR LED. | Not supported on this device. | - |
LINKACT0 (ESC_LED_LINK0_ACTIVE) | 3 | Link Active Status for link towards the master. | Link Status on master side (Port0) is important to know, if the ESC and network downstream is part of the network or not. The prior ESC loopbacks, if this node fails. The status on this LED eases the debug. | Desired |
LINKACT1 (ESC_LED_LINK1_ACTIVE) | 1 | Link Active status for link towards Network side. | The Link status on the network side (Port 1) is critical from continuity through the ESC point; hence, this is kept highest priority status reporting. | Must |
The PHY MII_LINK (ESC_PHYx_LINKSTATUS) indication is an indication from PHY and does not indicate if the established link meets the characteristics including auto-negotiation as required by EtherCAT. Hence, the indication may not be a true status indication; however, it is critical to shorten reaction time in the event of link loss that is crucial for redundancy operation. Using LINKACT LEDs (LED_LINKx_ACTIVE) for the status output and MII_LINK (ESC_PHYx_LINKSTATUS) for the status input is the best usage; however, using the LEDs are not practical to sacrifice 4 pins. The tradeoff of whether MII_LINK is used as a link status LED or LINKACT is used depends on link loss reaction time requirements and available number of GPIOs for the system.
The PHY MII_LINK (ESC_PHYx_LINKSTATUS) signal is an active-low signal input to the C2000 ESC. It is possible to use the GPxINV register to invert the signal's polarity before the signal enters the ESC, if the system hardware cannot provide the desired polarity for this signal.
The LINKACT LEDs (LED_LINKx_ACTIVE) is an output signal of the ESC intended to control an LED for link indication.
Link State | LINKACTx (LED_LINKx_ACTIVE) State | PHY MII_LINK (ESC_PHYx_LINKSTATUS) State |
---|---|---|
No Link | 0 (LOW) | 1 (HIGH) |
Link WITHOUT Activity | 1 (HIGH) | 0 (LOW) |
Link WITH Activity | Toggling / Blinking | 0 (LOW) |