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.

INT0 interrupt of 18F452

Status
Not open for further replies.

Snitch

Junior Member level 3
Junior Member level 3
Joined
Jun 5, 2012
Messages
27
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Sri Lanka
Activity points
1,469
In the datasheet of 18F452, it says,

"There is no priority bit associated with INT0. It is always a high priority interrupt source".

Does that mean, if we enable INT1 or INT2 or both, if INT0 occurs whenever any of those interrupt routines(INT1 or INT2) are being executed, their execution will be stopped at that point and INT0 interrupt routine will take place?

I need two interrupt routines and I need one of them to have higher priority so that it can interrupt the other one. If I just use INT0 and INT1(or INT2), without writing any code to set priority, would I be able to accomplish the task?

Thanks in advance.
 

"Does that mean, if we enable INT1 or INT2 or both, if INT0 occurs whenever any of those interrupt routines(INT1 or INT2) are being executed, their execution will be stopped at that point and INT0 interrupt routine will take place?
Thanks in advance."
yes you are right.
"I need two interrupt routines and I need one of them to have higher priority so that it can interrupt the other one. If I just use INT0 and INT1(or INT2), without writing any code to set priority, would I be able to accomplish the task?"

yes you should do like that.:smile:
 
  • Like
Reactions: Snitch

    Snitch

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top