We are using W5500 module for connectivity. Whenever we are switching AC Contactor, W5500 chip resets and all ip settings become 0. We get -3 error from socket function. We tried using multiple decoupling capacitors (100pF, 1nF, 0.1uF, 4,7uF) on Vcc and Rst pin, but the problem didn’t solve.
The waveform observed on the rst pin is as follow -
This is not that straightforward. When you measure anything with scope its wires may take up the noise and add it to what you see on the screen. First of all, I believe problem with supply is more important factor than something on the reset pin - you should ensure power supply and wires going to W5500 are not affected and continuously supply required current to the chip. Second, system as whole is properly grounded. You also say nothing about what that contactor does - what load does it turn on? Why there’s so much EMI? Maybe problem somewhere else (not in EMI at all), and any other electronic device like W5500 will fail in your conditions?
Thanks. There was similar case in the past, when we suspected chip’s circuit is influenced by the EMI, but we did not finish troubleshooting due to priorities change. See here. First of all I believe we must ensure that problem is in EMI. How close contactor is? If you move it away physically, does it help? If it is proven, then there’s a number of techniques to suppress differential mode noise, which, IMHO, most possible cause of the problems with contactor influencing transformer in the jack or TX/RX lines on the board - in other words, if reset happens, the first source of the issue I would consider is PHY. However I would first prove that W5500 actually resets, and in which its part - digital part of/and PHY part. For this you need to attach some kind of diagnostic output to the MCU driving the chip and cause it dumping all the registers on request (then you will be able to identify states of registers and thus what may have happened).
We have read all control register after getting -3 error. It can be clearly seen that all register values are set to default. So the entire chip is resetting.
Seems you are right. Take a look here. Here’s what I found on the internet (no ad intended, just read the theory). Two things are on my mind - grounding and shielding, to either devices - contactor or W5500 assembly. It would be wise to do them to W5500 because then it will be secured from other EMI sources. As I said before IMHO most susceptible parts of W5500 circuit are (analog) jack with magnetics and RX/TX wires.
Combination of 0.1uF and Ferrite Bead on reset line has considerably improved the situation. It is not solved 100% but frequency of occurrence has reduced majorly.
As per my understanding, it is a ground plane coupled EMI.
Is “Reset Line” the W5500’s “Reset Line”?
Every time the inductive load you mentioned is loaded, the surge power splashes too hard… It doesn’t look normal. I think we need to turn it on properly first. Isn’t the GND line firm?