Quote Originally Posted by mark_s View Post
In addition to what others suggested. Are you using a transistor to buffer the pic
output from the relay coil? If not you may be exceeding the current capacity of
the output pin. This could cause heating and result in the pic resetting. Also inductive
voltage spikes can cause resets. A simple schematic would help of your relay connection.
Hi mark, thanks for the heads up on that, Yes I'm using a 2N2222 for the output to relay on open emitter, as well as a diode across the relay to stop it from chattering.