Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 14th June 2008, 08:35 AM   (permalink)
Default ARM7, interrupts

hi,

I have a doubt on interrupts of ARM7 core.
When there are two interrupts simultaneously occuring, then how the interrupts are serviced?

thanks
beenuseren is offline   Reply With Quote
Old 14th June 2008, 05:45 PM   (permalink)
Default

Quote:
Originally Posted by beenuseren View Post
hi,

I have a doubt on interrupts of ARM7 core.
When there are two interrupts simultaneously occuring, then how the interrupts are serviced?

thanks
You don't say which ARM7, there are several companies making them. I would think that all give you the option of deciding which interrupts have priority.

I'm a bit familiar with some of the Phillips chips. This is from page 13 of the preliminary data sheet for the LPC2138

Quote:
The VIC accepts all of the interrupt request inputs and categorizes them as FIQ, vectored
IRQ, and non-vectored IRQ as defined by programmable settings. The programmable
assignment scheme means that priorities of interrupts from the various peripherals can be
dynamically assigned and adjusted.
(VIC = vectored interrupt controller)

There is a lot more info which follows, but you should get familiar with the data sheet for your controller.
BeeBop is offline   Reply With Quote
Old 14th June 2008, 07:10 PM   (permalink)
Default

In very general terms, even with no assumption about priorities, the decision about which one to service is irrelevant. Whichever one goes first the other one must wait until the first one is complete, then take its turn. In some processors it is possible to allow nested interrupts. This should be avoided until you are really comfortable with the hardware and the system you are trying this on, and have a good reason for wanting to do it.

Under the assumption that interrupt processing time plus interrupt latency time is very much less than the interrupt arrival rate, then processing never falls behind. This is probably the most important reason why interrupt routines should be short and fast. It is almost always a mistake to perform lengthy and non-deterministic amounts of processing in an interrupt routine.
__________________
We never have time to do it right; but we always have time to do it over.

Last edited by Papabravo; 14th June 2008 at 07:13 PM.
Papabravo is offline   Reply With Quote
Old 19th June 2008, 10:12 AM   (permalink)
Default

Thanks for the info provided
beenuseren is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
PIC Interrupts UTMonkey Micro Controllers 5 17th December 2007 07:55 PM
Please help me with my Interrupts Wilko Micro Controllers 7 18th November 2007 06:23 AM
Interrupts.... asp1987 Micro Controllers 4 1st October 2007 11:33 AM
Development tools for ARM7 Halo Micro Controllers 2 12th April 2007 08:49 PM
Interrupts or not interrupts ? That is the question ! ZERS Micro Controllers 9 1st March 2005 07:25 PM



All times are GMT. The time now is 11:44 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.