Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Hardware interrupt issue in PIC8f452

Status
Not open for further replies.

bilal shareef

Member level 1
Member level 1
Joined
Dec 11, 2010
Messages
36
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Visit site
Activity points
1,549
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 ????
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top