I have compiled a simple program of serial port on CCS compiler.This sends the data on the serial port.I'm using Hyper Terminal for monitoring the data sent by PIC.Now I don't have consistency of getting same result every time.
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..
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.
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!
Yes, I'll do that as you have mentioned and additionally I'll also add the decouple capacitors.
umery2k75 4 years ago
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
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
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