This example code uses M030G I2C to receive operation command and SPI to emulate serial management interface (MDC/MDIO) waveform for controlling Ethernet PHY.
Most of the NuMicro Family does not support MDIO master interface for PHY device configuration. This example code provides the solution that can be widely used in the NuMicro Family for accessing Ethernet PHY.
This example code requires additional external hardware modules, including a I2C master and an Ethernet PHY. A I2C master sends Write or Read command to trigger SPI to emulate Write or Read waveform. The part number of Ethernet PHY is IP101GR made by IC+.