Hello guys,
I am using PIC18f452 to count the number of times the pushbutton1 is pressed. I have used 2 push buttons , first is connected to Hardware interrupt (RB0/INT0) and second is connected to Simple GPIO. what i have done is that i have enabled and disabled the hardaware interrupt using second button, Now the issue is that when i start pressing button 1 before enabling the hardware interrupt, the INT0 pin tends to hold the signal and as soon as I press second button to enable the interrupt the controller due to that holded signal jumps to iNT0 ISR regardless of current state on INT0 Pin. But when i first enable the hardware interrupt and then give pulses on iNT0 pin then it works fine, So, Please tell me whats wrong when i give signal to INT0 first before enabling the INT0, Whats the issue ????