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.

[PIC] Multiple interrupt handling

Status
Not open for further replies.

sangeo

Member level 2
Member level 2
Joined
Jun 2, 2013
Messages
44
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,647
HAI EVERY ONE

I AM WORKING WITH PIC 16F887,AND MICROC IDE,I HAVE A LITTLE DOUBT ..WHEN TIMER2 INTERRUPT OCCURS DURING THE EXECUTION OF PORTB INTERRUPT ,WHAT WILL HAPPEN? WHETHER PORTB EXICUTION STOP AND INTERRUPT VECTOR GOING TO TIMER2 INTERRUPT
NOR PORTB EXICUTION COMPLETES AND THEN INTERRUPT VECTOR GO TO TIMER2 INTERRUPT .ACTUALLY I TRIED TIMER2 INTERRUPT WROTE ABOVE PORTB INTERRUPT AND FOUND TIMER2 ISR EXICUITES DURING EXECUTION OF PORTB ISR.


check my program segment -http://obrazki.elektroda.pl/2119728000_1391104153.jpg
 

yes when timer2 interrupt occurs(here considering timer2 to be having higher priority) it is expected to leave whatever task it is doing & jump to it's respective isr routine.
isr execution depends on priority assigned the most prioritized will be preferred as in your case it will be execution of timer2 isr rather than portb isr.
if your portb program is not getting executed after there is interrupt that means you have not cleared timer you have used clear the timer then it may execute.
 
  • Like
Reactions: sangeo

    sangeo

    Points: 2
    Helpful Answer Positive Rating
okk yes I got it thanks..a lot Disha Karnataki
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top