Rainbow Electronics W90N745CDG User Manual
Page 130
W90N745CD/W90N745CDG
Publication Release Date: September 22, 2006
-
125
-
Revision
A2
MII Management Function Frame Format
In IEEE Std. 802.3 clause 22.2.4, the MII management function is defined. The MII management
function is used for the purpose of controlling the PHY and gathering status from the PHY. The MII
management frame format is shown as follow.
MANAGEMENT
FRAME
FIELDS
PRE ST OP PHYAD REGAD
TA
DATA
IDLE
READ 1…1 01 10 AAAAA
RRRRR
Z0
DDDDDDDDDDDDDDDD
Z
WRITE 1…1 01 01 AAAAA
RRRRR
10
DDDDDDDDDDDDDDDD
Z
MII Management Function Configure Sequence
READ
WRITE
1.
Set appropriate MDCCR.
2.
Set PHYAD and PHYRAD.
3.
Set Write to 1’b0
4. Set bit BUSY to 1’b1 to send a MII
management frame out.
5.
Wait BUSY to become 1’b0.
6.
Read data from MIID register.
7.
Finish the read command.
1.
Write data to MIID register
2.
Set appropriate MDCCR.
3.
Set PHYAD and PHYRAD.
4.
Set Write to 1’b1
5. Set bit BUSY to 1’b1 to send a MII
management frame out.
6.
Wait BUSY to become 1’b0.
7.
Finish the write command.