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.
Hi Team,
My customer transplanted LwIP on TMS570LC4357. DP83640 was selected as the PHY chip on the Hal code Generator. He want to know the relationship between LwIP, EMAC, MDIO and PHY.
This process is that LwIP assembles the protocol data packet and sends it to EMAC and MDIO, and then the driver layer of EMAC and MDIO sends the data to the PHY, and the PHY finally converts the electrical signal and sends it out?
What are the specific functions of EMAC and MDIO? And what is their hardware connection on the actual board? How many wires are connected to each module?
--
Thanks & Regards
Yale
Hi Yale,
What are the specific functions of EMAC and MDIO? And what is their hardware connection on the actual board? How many wires are connected to each module?
The EMAC controls the flow of packet data from the system to the PHY. The MDIO module controls PHY configuration and status monitoring.
Host software uses the MDIO module to configure the auto-negotiation parameters of each PHY attached to the EMAC, retrieve the negotiation results, and configure required parameters in the EMAC module for correct operation.
As you can see there would be two communications between the controller and PHY, one is MII/RMII and other one is MDIO.
As i mentioned the MDIO will be used to configure the parameters of PHY module, e.g. Auto-negotiation. And where as MII/RMII will transmit actual ethernet packets to the PHY module .
--
Thanks & regards,
Jagadish.