← Wiki · Component

Ethernet PHY (LAN8710A)

Wired 10/100 Ethernet for a microcontroller with a MAC, such as the classic ESP32. The LAN8710A turns the RMII signals into the cable's pairs through an RJ45 jack with magnetics.

What it does#

A microcontroller with an Ethernet MAC (the classic ESP32, not the ESP32-S3, -C3 or -C6) still needs a PHY: the chip that drives the cable. The MAC and the PHY talk over RMII: two data bits each way, a few control lines and one 50 MHz clock. The PHY drives the cable through magnetics, small transformers that isolate the board from the cable. A magjack is an RJ45 socket with the magnetics and LEDs built in.

Part What Notes
LAN8710A-EZC (QFN-32, 5 × 5 mm) 10/100 PHY, MII or RMII 3.3 V, internal 1.2 V core regulator
Bel SI-60062-F RJ45 magjack, tab down yellow and green LEDs, termination built in

The PHY draws about 48 mA, and its magnetics another 41 mA at 100 Mbit/s (100 mA at 10 Mbit/s), all from 3.3 V: plan the regulator for 150 mA more.

Example circuit: The LAN8710A in RMII mode. The header on the left goes to the MAC; REF_CLK is the 50 MHz clock. 3V3A is 3V3 through a ferrite and feeds the analog pins, the centre taps and the four 49.9 Ω resistors.
The LAN8710A in RMII mode. The header on the left goes to the MAC; REF_CLK is the 50 MHz clock. 3V3A is 3V3 through a ferrite and feeds the analog pins, the centre taps and the four 49.9 Ω resistors. Open the ethernet_rmii example from this page in SolderCanvas: “Insert into my schematic”.

Wiring#

  • REF_CLK, 50 MHz, into XTAL1/CLKIN; XTAL2 stays open. Either the MAC or a 50 MHz oscillator makes it; keep that track short.
  • RMII mode is a strap: RXD2/RMIISEL pulled up with 10 kΩ. Without it the PHY starts in MII mode and nothing works.
  • MODE pins (RXD0, RXD1, CRS_DV) pulled up with 10 kΩ: all speeds, auto-negotiation. The MAC’s inputs load these pins at reset, so the internal pull-ups alone are not enough.
  • TXD2 and TXD3 to GND, the other MII-only pins open.
  • RBIAS: 12.1 kΩ 1 % to GND, close to the pin.
  • VDDCR: 1 µF and 470 pF to GND. Nothing else connects to it.
  • The pad under the chip is GND: pin 33 in the symbol.
  • nINT needs a pull-up; PHY_RST should come from a GPIO so the firmware can reset the PHY.

The cable side#

Each of TXP, TXN, RXP and RXN has 49.9 Ω to the centre-tap supply (3V3A here), and the jack’s centre taps TCT and RCT go to the same supply with 100 nF to GND. Route TXP/TXN and RXP/RXN as pairs: side by side, the same length, no vias, and nothing else under them.

The jack’s LEDs: green (link) from LED1 to GND, yellow (100 Mbit/s) from 3V3A into LED2, each with 330 Ω. The LED wiring also sets two straps, so keep it this way round.

Pitfalls#

  • ESP32-S3, -C3, -C6 have no Ethernet MAC. They need an SPI Ethernet chip instead; this page is for the classic ESP32 and other chips with RMII.
  • QFN with a thermal pad: paste on the pad, and vias to the ground plane. Not a hand-soldering job.
  • The magjack has no LCSC number in the catalog yet, and its JLCPCB rotation is not checked: it is a through-hole part to solder by hand. The LAN8710A’s rotation is not checked either: look at the part in JLCPCB’s assembly preview.