Keil™, An ARM® Company

Technical Support

ARTX: INTERRUPT LOCK OUT TIME


Information in this article applies to:

  • ARTX-ARM any Version
  • ARTX-166 any Version

QUESTION

How long does the Advanced RTX disable interrupts?

ANSWER

The RTOS configurations for the various platforms are slightly different.

  • ARTX-166 for the C16x/XC16x/ST10 devices never disables interrupts. This means the maximum interrupt lockout time is within an ATOMIC #4 sequence.  This is dependent on the CPU frequency, but is typically less than 1 µSec.

  • ARTX-ARM disables interrupts using a SWI (software interrupt handler). Running on Philips LPC2000 devices at 60MHz, the interrupt lock out time for IRQ interrupts is less than 1.8 µSec. ARTX-ARM never disables FIQ interrupts, however FIQ interrupt service routines cannot call isr_ RTOS functions.


    Some ARTX-ARM configuration files (for example for the STR71x) need to disable IRQ interrupts for a longer period of time (see below).

Interrupt Disable on STR71x

The STMicroelectronic STR71x interrupts behaves differently than the behavior of other ARM devices.

On standard ARM devices, the interrupt pending bit is masked by the interrupt enable bit before it is applied to the interrupt logic.

On STR71x ARM devices the enable bit is just a gate for the pending bit and just allows the pending bit to be set. If, after the pending bit is set, the enable bit is cleared the interrupt is still active. The only way to block a pending interrupt is to clear the global IRQ enable bit. This solution is implemented in the ARTX-ARM specific configuration file for the STR71x device (Keil\ARM\Startup\ST\ARTX_Conf_STR71x.C).

The behavior of the STR71x devices acknowledges that interrupts are blocked for a relatively long time (which depends also on the number of running tasks). For 10 running tasks and a CPU speed of 48MHz, the IRQ disable time will be about 20 µSec. If you need interrupt response times faster than that, you should use FIQ interrupts which are never disabled.

MORE INFORMATION

Last Reviewed: Thursday, January 11, 2007


Did this article provide the answer you needed?
 
Yes
No
Not Sure