Datasheet

ENC28J60
DS39662E-page 22 . 2006-2012 Microchip Technology Inc.
3.3.4 PHSTAT REGISTERS
The PHSTAT1 and PHSTAT2 registers contain read-
only bits that show the current status of the PHY
module’s operations, particularly the conditions of the
communications link to the rest of the network.
The PHSTAT1 register (Register 3-5) contains the
LLSTAT bit; it clears and latches low if the physical
layer link has gone down since the last read of the
register. Periodic polling by the host controller can be
used to determine exactly when the link fails. It may be
particularly useful if the link change interrupt is not
used.
The PHSTAT1 register also contains a jabber status bit.
An Ethernet controller is said to be “jabbering” if it con-
tinuously transmits data without stopping and allowing
other nodes to share the medium. Generally, the jabber
condition indicates that the local controller may be
grossly violating the maximum packet size defined by
the IEEE specification. This bit latches high to indicate
that a jabber condition has occurred since the last read
of the register.
The PHSTAT2 register (Register 3-6) contains status
bits which report if the PHY module is linked to the
network and whether or not it is transmitting or
receiving.
3.3.5 PHID1 AND PHID2 REGISTERS
The PHID1 and PHID2 registers are read-only
registers. They hold constant data that helps identify
the Ethernet controller and may be useful for
debugging purposes. This includes:
The part number of the PHY module
(PPN5:PPN0)
The revision level of the PHY module
(PREV3:PREV0); and
The PHY identifier, as part of Microchip’s
corporate Organizationally Unique Identifier (OUI)
(OUI3:OUI24)
The PHY part number and revision are part of PHID2.
The upper two bytes of the PHY identifier are located in
PHID1, with the remainder in PHID2. The exact
locations within registers are shown in Table 3-3.
The 22 bits of the OUI contained in the PHY Identifier
(OUI3:OUI24, corresponding to PHID1<15:0> and
PHID2<15:10>) are concatenated with ‘00’ as the first
two digits (OUI1 and OUI2) to generate the entire OUI.
For convenience, this 24-bit string is usually interpreted
in hexadecimal; the resulting OUI for Microchip
Technology is 0004A3h.
Revision information is also stored in EREVID. This is
a read-only control register which contains a 5-bit
identifier for the specific silicon revision level of the
device. Details of this register are shown in Tabl e 3 -2 .