Keil Logo Arm Logo

Discussion Forum

nesting interrupts

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
asdf asdf
Posted
26-Dec-2007 10:04 GMT
Toolset
ARM
New! nesting interrupts

Hi all,

I have tried to use 3 vectorized interrupts at the same time for LPC2468.

These are timer1, adc and uart1.

But after a while timer interrupt stops.

I declared all interrupt priorities as highest_priority.

IENABLE and IDISABLE macros are leaved the same as in NXP's sample code.

But timer1 interrupt gets broken.

What is the problem ?

Does not Keil manage "nesting-interrupts" ?

Thank you.

Kemal

Read-Only
Author
Robert Teufel
Posted
31-Dec-2007 10:44 GMT
Toolset
ARM
New! RE: nesting interrupts

ARM7 or more specific the ARM interrupt controller does not really support nesting interrupts, at least not more than 2 levels. There is IRQ and there is FIQ. The VIC (Vectored interrupt controller) handles priorities of interrupts that are waiting to be handled. Once one interrupt has finished, the highest priority of the waiting interrupts will be handled but it will not interrupt the previous interrupt service routine. An example how to really nest interrupts can be found on the NXP website. It requires some software overhead though and can not be part of a tool chain like the KEIL MDK but is your responsibility to implement.
http://www.standardics.nxp.com/support/documents/microcontrollers/pdf/an10381.pdf
title: AN10381 Nesting of Interrupts in the LPC2000

Hope that helps, Robert

Next Thread | Thread List | Previous Thread Start a Thread | Settings

arm-logo-small

Keil logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.