Author Topic: Where to get LAN8720 or suitable replacement for ESP32 ethernet?  (Read 934 times)

0 Members and 1 Guest are viewing this topic.

Offline nardevTopic starter

  • Supporter
  • ****
  • Posts: 411
  • Country: ba
 |O I have been looking everywhere for LAN8720 default version and sadly, it's out of stock everywhere. Actually at Aliexpress some sellers are claiming to sell "new" by 1-5 chips but i'm pretty sure it's just scraped, already used chips.

1. Do you see it in stock anywhere? i need 100-500 od those

2. Is there any other Ethernet Phy replacement chip which would not require huge changes to be used as an eth interface for ESP32?

thnx  |O
 

Offline ajb

  • Super Contributor
  • ***
  • Posts: 2733
  • Country: us
Re: Where to get LAN8720 or suitable replacement for ESP32 ethernet?
« Reply #1 on: June 29, 2021, 03:21:36 pm »
I doubt you'll find a true drop-in replacement for the LAN8720, but it uses RMII, so just about any other RMII PHY should work.  That's the point of having a "Medium Independent Interface" between the MAC in the ESP32 and the PHY, it should work the same no matter what PHY or what medium the PHY connects to.  If the ESP32 supports MII then you have the option of using an MII PHY as well, but this will take four more pins (MII has four bit wide transmit and receive connections, RMII is only two bits in each direction but at twice the clock rate).

So just look for any other PHY that has RMII and any other features you care about.  All of the RMII signals (connections to the ESP32) will be the same, and all of the MDI signals (the ones that go through the magnetics to the wire) will be the same, although the way the magnetics are terminated might be different so do whatever the datasheet for the new PHY tells you to.  If the ESP32 uses the management interface (SMI, using the MDC and MDIO pins) then those will be the same as well.  You may need to configure the pin strapping on the new PHY to make it work the way you want, consult the datasheet and fit the appropriate pullup/pulldown resistors (and maybe leave footprints to change these in case you need to make an adjustment).
 
The following users thanked this post: nardev

Offline bson

  • Supporter
  • ****
  • Posts: 2457
  • Country: us
Re: Where to get LAN8720 or suitable replacement for ESP32 ethernet?
« Reply #2 on: June 29, 2021, 07:39:04 pm »
What is a "default version"?  Mouser has the LAN8720A by whatever quantity you want, cut tape or reel.
 

Offline nardevTopic starter

  • Supporter
  • ****
  • Posts: 411
  • Country: ba
Re: Where to get LAN8720 or suitable replacement for ESP32 ethernet?
« Reply #3 on: June 30, 2021, 01:44:30 am »
Try to order it. You will get "back order" option only :(
 

Offline bson

  • Supporter
  • ****
  • Posts: 2457
  • Country: us
Re: Where to get LAN8720 or suitable replacement for ESP32 ethernet?
« Reply #4 on: June 30, 2021, 07:58:15 pm »
Ah.  I see.

Are you using any of the extended registers?  Most configuration is standard, and it's not that hard to switch to a different PHY; interfaces are similar, and they mainly differ in advanced features and how to set up device-specific (extended) registers.  Even the extension mechanism is usually the same - one register to select an extended register, and another to access it.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf