Sorry but another questions concerning PIC16F505.
When i drive my relay it seems my PIC reset's, because it goes to my programs beginning.
I already put my "master clear enable" to internal and external and nothing. What i can do in software without change my hardware.
I already had a similar problem in pic16F872 and i resolved putting a 10uF capacitor near my +5V.
There are other without changemy hardware?