It can't be interrupt as you don't use any in your code.
As Joe said, check you hardware. Also make sure your config fuses are set for HS_OSC and LVP_OFF. Same goes for MCLR pin.
It can't be interrupt as you don't use any in your code.
As Joe said, check you hardware. Also make sure your config fuses are set for HS_OSC and LVP_OFF. Same goes for MCLR pin.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
If you're doing it on a breadboard, then things can go really bad. Some old breadboard can have such capacitance that may screw your OSC stability.
Keep wiring short and clean, ground the back plane (if any), and sprinkle few 0.1 uF+10uF tantalum all over will not hurt.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks