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?
Power to PCB is through 12V, 7AH SMF Battery. It can easily source the current. There is no AC supply given to our PCB.
No load is connected to contactor. We are just powering contactor coil (230VAC). Contactor coils are powered on-off manually through a switch. So contactor is electrically and physical not connected to our PCB.
We have multiple chips on board such as stm32 microcontroller, RTC, EEPROM, LCD, etc But none of the chip are getting influenced by contactor switching.
We get -3 return error from socket function which is meant for ip configuration is 0. In runtime IP configuration can become 0 only in 1 case when w5500 resets. So we are assuming that w5500 is getting reset.
Apart from contactor switching, PCB and connectivity is very stable.
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).
If the contactor switching connection is away from PCB then problem doesn’t occur. If the switching point is within 20cm radius of PCB then problem occurs. Frequency of problem increases as the distance reduces. So radiated EMI must be the problem.
We shall share diagnostic output of all common registers tomorrow for further analyses.
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?