
GD32F10x User Manual
662
External
PHY
SMI
MDC
MDIO
SMI write operation
Applications need to write transmission data to the ENET_MAC_PHY_DATA register and
operate the ENET_MAC_PHY_CTL register as follows:
1)
Set the PHY device address and PHY register address, and set PW to 1, so that can
select write mode.
2)
Set PB bit to start transmission. In the process of transaction PB is always high until the
transfer is complete. Hardware will clear PB bit automatically.
The application can be aware of whether a transaction is complete or not through checking
PB bit. When PB is 1, it means the application should not change the PHY address register
contents and the PHY data register contents because of operation is running. Before writing
PB bit to 1, application must poll the PB bit until it is 0.
SMI read operation
Applications need to operate the ENET_MAC_PHY_CTL register as follows:
1)
Set the PHY device address and PHY register address and set PW to 0, so that can
select read mode.
2)
Set PB bit to start reception. In the process of transaction PB is always high until the
transfer is complete. Hardware will clear PB bit automatically.
The application can be aware of whether a transaction is complete or not through checking
PB bit. When PB is 1, it means the application should not change the PHY address register
contents and the PHY data register contents because of operation is running. Before writing
PB bit to 1, application must poll the PB bit until it is 0.
Note:
Because the PHY register address 16-31 register function is defined by each
manufacturer, access different PHY device’s this part should see according to the
manufacturer’s manual to adjust the parameters of applications. Details of catalog that
firmware library currently supports the PHY device can refer to firmware library related
instructions.
SMI clock selection
The SMI clock is generated by dividing application clock (AHB clock). In order to guarantee
the MDC clock frequency is no more than 2.5MHz, application should set appropriate division
factor according to the different AHB clock frequency. The following table lists the frequency
factor corresponding AHB clock selection.
Summary of Contents for GD32F10 Series
Page 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Page 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Page 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Page 427: ...GD32F10x User Manual 427 value ...
Page 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...