1 mdio clock generator, 2 global phy detection and link state monitoring, 3 active phy monitoring – Texas Instruments TMS320C645x DSP User Manual

Page 39: 4 phy register user access, Diagram

Advertising
background image

www.ti.com

EMAC

control

module

Control

registers

and logic

PHY

monitoring

Peripheral

clock

MDIO

clock

generator

USERINT

MDIO

interface

polling

PHY

MDCLK

MDIO

LINKINT

Configuration bus

2.7.1.1

MDIO Clock Generator

2.7.1.2

Global PHY Detection and Link State Monitoring

2.7.1.3

Active PHY Monitoring

2.7.1.4

PHY Register User Access

EMAC Functional Architecture

Figure 12. MDIO Module Block Diagram

The MDIO clock generator controls the MDIO clock based on a divide-down of the peripheral clock
(CPUclk/6) in the EMAC control module. The MDIO clock is specified to run up to 2.5 MHz, although
typical operation would be 1.0 MHz. As the peripheral clock frequency is variable (CPUclk/6), the
application software or driver controls the divide-down amount.

The MDIO module enumerates all PHY devices in the system by continuously polling all 32 MDIO
addresses. The module tracks whether a PHY on a particular address has responded, and whether the
PHY currently has a link. This information allows the software application to quickly determine which
MDIO address the PHY is using, and if the system is using more than one PHY. The software application
can then quickly switch between PHYs based on their current link status.

Once a PHY candidate has been selected for use, the MDIO module transparently monitors its link state
by reading the PHY status register. The MDIO device stores link change events that may optionally
interrupt the CPU. Thus, the system can poll the link status of the PHY device without continuously
performing MDIO accesses. Up to two PHY devices can be actively monitored at any given time.

When the DSP must access the MDIO for configuration and negotiation, the PHY access module performs
the actual MDIO read or write operation independent of the CPU. Thus, the CPU can poll for completion
or receive an interrupt when the read or write operation has been performed. There are two user access
registers (USERACCESS0 and USERACCESS1), allowing the software to submit up to two access
requests simultaneously. The requests are processed sequentially.

SPRU975B – August 2006

Ethernet Media Access Controller (EMAC)/Management Data Input/Output (MDIO)

39

Submit Documentation Feedback

Advertising