Clear OPTION_REG bit 5.
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?
On software side, you can play with BOD_OFF / BOD_ON,
and also WDT_OFF / WDT_ON
I suggest that you go one by one so you will know which one works for you.
---------------------
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
I tried but i think it's not working.
But i'll try more... If you remember another way to do it???
Hi leonel, check what sayzer said here.Originally Posted by sayzer
When your relay pulls, in the input voltage drops and the PIC likely reboots due to brown out reset fuse set on, the capacitor helps supply that inrush current and prevents the brown out reset.
JS
Bookmarks