Hi there I recently built a Pic16f84a controller for laundry machine.but every time a contactor makes and breakes the micro resets. tried a pi filter at the mains input but it didn't help.a simple glitch resets the micro. pls help. regarding the snubber diodes u asked there are the fools diode across each relay coil. like i stated i've no problem with the relays. they don't disturb my circuit.