SPRUI30H November 2015 – May 2024 DRA745 , DRA746 , DRA750 , DRA756
Table 24-915 shows the read format and Table 24-916 shows the write format of the 32-bit MII Management interface frames.
Pre-amble | Start Delimiter | Operation Code | PHY Address | Register Address | Turnaround | Data |
---|---|---|---|---|---|---|
FFFF FFFFh | 01 | 10 | AAAAA | RRRRR | Z0 | DDDD.DDDD.DDDD.DDDD |
Pre-amble | Start Delimiter | Operation Code | PHY Address | Register Address | Turnaround | Data |
---|---|---|---|---|---|---|
FFFF FFFFh | 01 | 01 | AAAAA | RRRRR | 10 | DDDD.DDDD.DDDD.DDDD |
The default or idle state of the two wire serial interface is a logic one. All tri-state drivers should be disabled and the PHY's pull-up resistor will pull the MDIO line to a logic 1. Prior to initiating any other transaction, the station management entity shall send a preamble sequence of 32 contiguous logic 1 bits on the MDIO line with 32 corresponding cycles on MDCLK to provide the PHY with a pattern that it can use to establish synchronization. A PHY shall observe a sequence of 32 contiguous logic one bits on MDIO with 32 corresponding MDCLK cycles before it responds to any other transaction.
Preamble
The start of a frame is indicated by a preamble, which consists of a sequence of 32 contiguous bits all of which are a 1. This sequence provides the PHY a pattern to use to establish synchronization.
Start Delimiter
The preamble is followed by the start delimiter which is indicated by a 01 pattern. The pattern assures transitions from the default logic 1 state to logic 0, and back to logic 1.
Operation Code
The operation code for a read is 10, while the operation code for a write is a 01.
PHY Address
The PHY address is 5 bits allowing 32 unique values. The first bit transmitted is the MSB of the PHY address.
Register Address
The Register address is 5 bits allowing 32 registers to be addressed within each PHY. Refer to the 10/100 PHY address map for addresses of individual registers.
Turnaround
An idle bit time during which no device actively drives the MDIO signal shall be inserted between the register address field and the data field of a read frame in order to avoid contention. During a read frame, the PHY shall drive a zero bit onto MDIO for the first bit time following the idle bit and preceding the Data field. During a write frame, this field shall consist of a one bit followed by a zero bit.
Data
The Data field is 16 bits. The first bit transmitted and received is the MSB of the data word.