I am programming PIC18F4520, and using picos18 for multitasking. I need to control buttons with PORTB. I am using interrupts, but I am facing a problem.
Out of nowhere (while I am not pressing buttons), my interrupt handler executes. My pic handles many interrupts.
What could be the reason??