Figure 315. Mdio Timing And Frame Structure - Write Cycle - ST STM32F207 Series Reference Manual

Advanced arm-based 32-bit mcus
Hide thumbs Also See for STM32F207 Series:
Table of Contents

Advertisement

Ethernet (ETH): media access control (MAC) with DMA controller
For a write transaction, the MAC controller drives a <10> pattern during the TA field.
The PHY device must drive a high-impedance state for the 2 bits of TA.
Data: the data field is 16-bit. The first bit transmitted and received must be bit 15 of the
ETH_MIID register.
Idle: the MDIO line is driven in high-impedance state. All three-state drivers must be
disabled and the PHY's pull-up resistor keeps the line at logic one.
SMI write operation
When the application sets the MII Write and Busy bits (in
(ETH_MACMIIAR)), the SMI initiates a write operation into the PHY registers by transferring
the PHY address, the register address in PHY, and the write data (in
register
(ETH_MACMIIDR). The application should not change the MII Address register
contents or the MII Data register while the transaction is ongoing. Write operations to the MII
Address register or the MII Data register during this period are ignored (the Busy bit is high),
and the transaction is completed without any error. After the Write operation has completed,
the SMI indicates this by resetting the Busy bit.
Figure 315
MDC
MDIO
Preamble
SMI read operation
When the user sets the MII Busy bit in the Ethernet MAC MII address register
(ETH_MACMIIAR) with the MII Write bit at 0, the SMI initiates a read operation in the PHY
registers by transferring the PHY address and the register address in PHY. The application
should not change the MII Address register contents or the MII Data register while the
transaction is ongoing. Write operations to the MII Address register or MII Data register
during this period are ignored (the Busy bit is high) and the transaction is completed without
any error. After the read operation has completed, the SMI resets the Busy bit and then
updates the MII Data register with the data read from the PHY.
Figure 316
844/1381
shows the frame format for the write operation.

Figure 315. MDIO timing and frame structure - Write cycle

0 1
32 1's
0 1
A4 A3 A2 A1 A0 R4 R3
Start
OP
of
code
frame
shows the frame format for the read operation.
R2 R1 R0
Register address Turn
PHY address
Data to PHY
RM0033 Rev 9
Ethernet MAC MII address register
Ethernet MAC MII data
D15 D14
data
around
RM0033
D1 D0
ai15626

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F207 Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents