Hello, i'm using the PIC16F876 and have problems when the PIC is booting up, he can execute the program excellent but the next time he isn't executing, the program written into, it at all, what's the problem and how can i solve this?
You'll have to give more information.
1. Is it that the program runs ok the first time and then never again until you re program it.
2. Or is it the program runs once and then stops until it is reset or powered down.
Other things to note are are you using a bootloader (allows you to program the chip in situ) or are you programming the chip from scratch. Also are what language/compiler are you using ?.
It is possible for the F87x series to alter the program memory durng program execution. Perhaps you have a piece of rogue code there that is reprogramming the program memory.
Another possibllity is the bootloader (if used) is corrupt.
Another possibility is that you haven't disabled or used the interrupt vector correctly.
Another possiblity is a bad chip, have you tried another ?.