0
\$\begingroup\$

I have the following setup on a custom PCB. The WT32-ETH01 module can be normally booted into download/flash mode by holding the IO0 to the GND during the start. The IO0 is also used as a clock between the ESP32 and the LAN8720A ethernet PHY chip on the same module.

I had the IO0 trace leading from the WT32-ETH01 across the entire board to the boot button. Everything worked except it made a huge antenna for the 50MHz frequency, which was a problem during EMC testing.

I hoped to overcome this issue by "isolating" the frequency physically near the WT32-ETH01 module with this simple circuit. However, the 50MHz signal leading from LAN8720A ended up partially sinking into the Q1 MOSFET even in its fully closed state. I suppose that as a result of this, the communication between ESP32 and LAN8720A is not working. Though I am not entirely sure as the signal should be ok for clock purposes even with the Q1 connected (see measurements).

I never dealt with such a high frequency, maybe someone can give me a lead here?

Below are also the results of measurements on IO0.

schematic

simulate this circuit – Schematic created using CircuitLab

IO0 not connected to the isolation circuit:

IO0 not connected to the isolation circuit

IO0 connected to the isolation circuit:

enter image description here

IO0 connected to the isolation circuit and boot button pressed:

enter image description here

\$\endgroup\$
5
  • 2
    \$\begingroup\$ Is Q2's gate floating? If it is then expect anything such as accidental turn on of Q2. Isn't there any resistor across the gate and VDD (3.3V) or gate and GND? \$\endgroup\$ Commented Jan 18, 2023 at 14:33
  • 2
    \$\begingroup\$ The schematic doesn't seem to be correct even with your last edit. Boot button is still in series i.e. the gate is still floating. \$\endgroup\$ Commented Jan 18, 2023 at 14:40
  • 3
    \$\begingroup\$ R7 seems to have no point or use. \$\endgroup\$
    – Andy aka
    Commented Jan 18, 2023 at 14:41
  • \$\begingroup\$ A small enough capacitor from 3.3V to ground, across R1 and Q1, perhaps? \$\endgroup\$
    – KristoferA
    Commented Jan 18, 2023 at 14:44
  • \$\begingroup\$ Sorry for the confusion, I made the last edit in a hurry. Schematic corrected. \$\endgroup\$
    – Marek
    Commented Jan 18, 2023 at 14:57

1 Answer 1

0
\$\begingroup\$

Consider the capacitance of AO3400A. Roughly speaking, Crss forms a capacitive divider between drain and gate. At 50MHz, this is 64Ω, plenty to carry the signal through wires and radiate.

It also severely loads the signal even when off. It's not clear if the waveform is actually as slow as shown (is that a 100MHz scope?) but this massive transistor isn't doing any favors.

Solution? Use a modest size transistor.

You can't really buy signal MOSFETs anymore. RUM001L02T2CL is the last one I looked up with a fairly small junction; you will still need filtering to pass EMI (or better layout, or probably a wide range of other options).

Even better: use an analog switch. The logic input is well isolated from the switch path, and probably won't need filtering. Better still, an SPDT switch (AKA 2:1 mux/demux) can switch between input and GND so no signals are shorted out in the process.

Better still, just solve it with digital logic, it's a digital signal to begin with, right?

schematic

simulate this circuit – Schematic created using CircuitLab

A 74LVC1G08 will do trivially.

Note: it's not clear to me if this signal is routed onboard a module. I can't find a "WT32-ETH01" schematic offhand. So I'm going to assume this is connected by the user and so can be wired as above. If not, an analog switch or MOSFET shorting to GND, with some RC filtering to the gate if MOS, is the next closest thing.

\$\endgroup\$
1
  • \$\begingroup\$ This was very helpful, thank you,. The Crss of the AO3400A was indeed the problem. I tried to replace the MOSFETs with an AO3160 and it works perfectly. However, thanks to your suggestion, I will be replacing the entire isolation circuit with SN74LVC1G66DBVT analog switch. \$\endgroup\$
    – Marek
    Commented Feb 9, 2023 at 10:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.