Can I Use GPIO16 as REF_CLK for LAN8720 with ESP32 DevKit V1 if GPIO0 is Unavailable?
Hello everyone,
I am currently working on a setup with a LAN8720 and an ESP32 DevKit V1 module.
ESP32:
3 Replies
LAN8720 Connection Table:
However, when connecting, I realize that my board does not have a GPIO0 pin.
What can I replace it with and how?
Can I use GPIO16? Because when reading some documentation, I found this:
"REF_CLK can only be selected from GPIO0, GPIO16, or GPIO17."
But will it recognize it automatically, or will it need to be configured?
Hi @Camila_99$$ , Use GPIO16 or GPIO17 instead of GPIO0 for REF_CLK. Set the correct pin in your code with
phy_config.clock_mode = ETH_CLOCK_GPIO16_OUT
or ETH_CLOCK_GPIO17_OUT
to ensure proper configuration; it won't recognize automatically.Okk thanks Wafa , I was worried about the configuration part, so this really helps. I’ll give it a try with GPIO16