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.

Interrupt Vector in microcontrollers

Status
Not open for further replies.

Avinash Dubey

Newbie level 2
Newbie level 2
Joined
May 2, 2014
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
16
Hi everybody,

I am confused about concept of interrupt vectors.
i am using a PIC microcontroller which have single interrupt vector ,so i can only write a single ISR routine.
Now i am writing multiple task based on different timers such as timer 0 ,timer 1,and timer 2, in same ISR function,so if it contains only one interrupt vector how does it handles multiple interupt by different sources.?????
Can any one clear my concept about interrupt handling and what does actually happen after an interrupt accour through data structure point of view,and what is the role of stack pointer in it.....

Thanks in advance for any answer or clarification
Avinash
 
Last edited:

You read the flag bits of the enabled interrupts to determine where the interrupt came from.
 

Hi,

As Spud said you have to check the Interrupt flags to see what invoked the ISR.

Also be aware that some chips have two interrupt vectors and that context saving is done for you on certain ones.

Have a look at this tutorial on how interrupts are set up and controlled.


Always better if you specify the chip and programming language you are using as there are so many variations.
 

Thanks excellent link provided ,i have understood the concept ...thanks a lot!!!!!!
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top