Specifications

RX62N Group Ethernet Transmit and Receive Settings
3.3 17BDescription of Physical Layer Transceiver (PHY) Auto-Negotiation Settings
phy.c
This file contains declarations for the function that initializes the physical layer transceiver (PHY) (phy_init
function) and the function that obtains the auto-negotiation result (phy_set_autonegotiate function). Figure 3.9
shows the processing sequence of the phy_init function and figure 3.10 of the phy_set_autonegotiate function.
Figures 3.11 to 3.16 show the processing sequences of the MII/RMII register read function (_phy_read function)
and MII/RMII register write function (_phy_write function), which are executed within the phy_init function and
phy_set_autonegotiate function, and their lower level functions.
Start
Write to MII/RMII register 0
_phy_write()
PHY initialization function
phy_init
End
Write 0x8000 to MII/RMII register 0 to reset the PHY.
Read MII/RMII register 0
_phy_read()
Read MII/RMII register 0.
PHY reset not complete and
no timeout occurred?
Timeout occurred?
Return R_PHY_ERROR Return R_PHY_OK
Yes
No
No
Yes
Check the following two points:
• Bit 15 in MII/RMII register 0, to determine if the reset completed
• Wait counter value does not exceed the maximum value
(PHY_RESET_WAIT), indicating that no timeout has occurred.
PHY_RESET_WAIT is defined in phy.h.
Figure 3.9 Processing Sequence of Physical Layer Transceiver (PHY) Initialization Function
R01AN0629EJ0101 Rev.1.01 Page 10 of 52
Mar 31, 2011