SPRAD72 February   2023 F29H850TU , F29H859TU-Q1 , TMS320F28388D , TMS320F28388S , TMS320F28P650DH , TMS320F28P650DK , TMS320F28P650SH , TMS320F28P650SK , TMS320F28P659DH-Q1 , TMS320F28P659DK-Q1 , TMS320F28P659SH-Q1

 

  1.   Abstract
  2.   Trademarks
  3. 1Introduction of SMI
  4. 2PHY Selection and Configuration for EtherCAT
  5. 3How to Read and Write to the PHY Register Using SMI of ESC
    1. 3.1 PHY Register Configuration for EtherCAT
    2. 3.2 Steps to Read or Write PHY Register in C2000 ESC
    3. 3.3 Using the Script to Debug Ethernet PHY Register in CCS
  6. 4Summary
  7. 5References

Introduction of SMI

Ethernet for Control Automation Technology (EtherCAT®) is an Ethernet-based fieldbus system, invented by Beckhoff® Automation and is standardized in IEC 61158. All the slave nodes connected to the bus interpret, process, and modify the addressed data on the fly (when needed basis), without having to buffer the frame inside the node. This real-time behavior, frame processing, and forwarding requirements are implemented by the EtherCAT slave controller hardware. EtherCAT does not require software interaction for data transmission inside the slaves. EtherCAT only defines the MAC layer while the higher layer protocols and stack are implemented in software on the microcontrollers connected to the ESC. The SMI in C2000 ESC is called PHY management interface used for communication with the Ethernet PHYs. See #GUID-E7718E96-EBB4-439E-B6C0-5E8B5C66323F for the connectivity of SMI.

GUID-D7F8AFB0-1099-4783-9BE7-A71871B6D6E1-low.gif Figure 1-1 PHY Management Interface Connectivity

MDIO must have a pullup resistor (4.7 kΩ recommended) externally. MCLK is driven rail-to-rail, idle value is HIGH.

The SMI includes the management clock (MDC) and the management input/output data pin (MDIO). MDC is sourced by the ESC, and can run at a maximum clock rate of 25 MHz. MDC is not expected to be continuous, and can be turned off by the ESC when the bus is idle.

MDIO is sourced by the ESC and by the PHY. The data on the MDIO pin is latched on the rising edge of the MDC. MDIO pin requires a pullup resistor, which pulls MDIO high during IDLE and turnaround.