Datasheet

EPHYREGCTL[15:14] = 0x1: A read/write to EPHYADDAR operates on the register within the
extended register set selected (pointed to) by the value in the address register. The address
register contents (pointer) remain unchanged.
EPHYREGCTL[15:14] = 0x2: A read/write to EPHYADDAR operates on the register within the
extended register set selected (pointed to) by the value in the address register. After that access
is complete, for both reads and writes, the value in the address register is incremented.
EPHYREGCTL[15:14] = 0x3: A read/write to EPHYADDAR operates on the register within the
extended register set selected (pointed to) by the value in the address register. After that access
is complete, for write accesses only, the value in the address register is incremented. For read
accesses, the value of the address register remains unchanged.
The following sections describe how to perform operations on the extended register set using the
EPHYREGCTL and EPHYADDAR registers.
Write to PHY Registers
The following describes the steps to write to a PHY register.
1. Check the MIIB bit in the EMACMIIADDR register to identify if the MII interface is busy. When
the MIIB bit is 0, the MII interface is available to write to the PHY registers.
2. Write the data to be written to the PHY register in the EMACMIIDATA register.
3. Initiate write by programming the EMACMIIADDR register fields as follows:
PLA: Physical Layer Address of the PHY. The integrated PHY's address is 0x0. The values
0x1 to 0x1F are available for external PHYs.
MII: Address of the PHY register to be written.
CR: Clock Reference for the MDIO interface.
MIIW: Write Initiation. This bit is set to 1 to indicate that a write operation is to be executed.
MIIB: MII Busy. This bit is set to 1 to indicate that the MII is now busy with a write operation.
The EMAC clears this bit when the write has been transmitted.
Write to Extended PHY Registers
The following describes the steps to write to an extended PHY register.
1. Check the MIIB bit in the EMACMIIADDR register to identify if the MII interface is busy. When
the MIIB bit is 0, the MII interface is available to write to the PHY registers.
2. The EMACMIIDATA register should be written with the value to be passed into the
EPHYREGCTL register. The EPHYREGCTL register is used for extended PHY register accesses.
The DEVAD field of the EPHYREGCTL register identifies the device address, which is 0x1F, for
the integrated PHY. The FUNC field of the EPHYREGCTL register should be set to 0x0 to indicate
a write to an extended register address.
3. Initiate write by programming the EMACMIIADDR register fields as follows:
PLA: Physical Layer Address of the PHY. The integrated PHY's address is 0x0. The values
0x1 to 0x1F are available for external PHYs.
December 13, 20131652
Texas Instruments-Advance Information
Ethernet Controller