Google it, they reduce noise on the power lines. It definitely looks like a reset problem somewhere along the line though, could try disabling all the non-essential PIC configs like LVP, Brownout, Watchdog etc... Infact, the Low voltage programming option often gives problems..
Your most likely resetting the PIC. Make sure you have pullups on the reset pin (or disable it) and just in case, put bypass caps on the power rails. Have fun!
I have the pull up on the reset pin,it's being pull by 10Kohm resistor.I don't have bypass caps on the power rails(Does power rail mean +5V and Gnd).I don't know how to add bypass caps on the power rails and what function do they perform.
Google it, they reduce noise on the power lines. It definitely looks like a reset problem somewhere along the line though, could try disabling all the non-essential PIC configs like LVP, Brownout, Watchdog etc... Infact, the Low voltage programming option often gives problems..
philwinder 4 years ago
Yes, I'll do that as you have mentioned and additionally I'll also add the decouple capacitors.
umery2k75 4 years ago
Your most likely resetting the PIC. Make sure you have pullups on the reset pin (or disable it) and just in case, put bypass caps on the power rails. Have fun!
philwinder 4 years ago
I have the pull up on the reset pin,it's being pull by 10Kohm resistor.I don't have bypass caps on the power rails(Does power rail mean +5V and Gnd).I don't know how to add bypass caps on the power rails and what function do they perform.
umery2k75 4 years ago