![ST ST802RT1A Скачать руководство пользователя страница 48](http://html1.mh-extra.com/html/st/st802rt1a/st802rt1a_operation-manual_1356154048.webp)
Device operation
ST802RT1A, ST802RT1B
48/58
Doc ID 17049 Rev 1
7.22 Far-end-fault
For 100Base-FX mode (which does not support auto-negotiation), the ST802RT1x
implements the IEEE 802.3 standard far-end-fault mechanism for the indication and
detection of remote error conditions. If the far-end-fault is enabled, a PHY transmits the far-
end-fault indication whenever a receive channel failure is detected. Each PHY also
continuously monitors the receive channel when a valid signal is present.
When its link partner is indicating a remote error, the PHY forces its link monitor into the link
fail state and sets the remote fault bit in the status register. The far-end-fault is on by default
in 100BaseFX, off by default in 100Base-TX and 10Base-T modes, and may be controlled
by software and reset.
7.23
MII management interface
Internal register access is guaranteed through the MII management interface, as specified
in the IEEE 802.3u standard, Clause 22.
This serial interface consists of a Management Data Clock (MDC) pin and a Management
Data I/O (MDIO) pin. The MDC pin is always driven by the station management entity (STA)
while the MDIO pin can be driven by either the STA or the PHY, depending on the operation
in progress. The logic value on the MDIO pin is sampled on the rising edge of the MDC clock
signal.
The MDIO pin has an internal pull-up used to keep the line to logic 1 when not driven.
Register read/write operations are performed, sending on the MII Management interface
frames in the format shown in
Table 33
.
Both read/write frames start with a preamble (PRE) composed of 32 consecutive logic 1s on
the MDIO pin and corresponding 32 clock cycles on the MDC pin. The management frame
preamble can be suppressed, as described in
Section 7.13
.
The preamble is followed by a 2-bit start of frame (ST), consisting of a transition to logic 0
and then back to logic 1, after which the operation code (OP) is transmitted to distinguish
between read and write operations.
After the operation code, the PHY address (PHYAD) and register address (REGAD) are
sent, each composed of 5 bits which have to be sent MSB first.
The turn-around (TA) is a 2-bit time spacing placed between the register address and the
data field inserted to avoid contention during a read transaction. In a write operation, the
STA drives a logic 1 during the first bit time and a logic 0 during the second one. In a read
operation, both STA and PHY are in high impedance during the first bit time and then the
PHY drives 0 during the second one.
The data field contains the 16 bits to write to, or read from, the specified register and is
followed by at least one IDLE bit which closes the frame.
Table 33.
Management frame format
PRE
ST
OP
PHYAD
REGAD
TA
DATA
IDLE
READ
1…1
01
10
AAAAA
RRRRR
Z0
D…D
Z
WRITE
1…1
01
01
AAAAA
RRRRR
10
D…D
Z