ARM Technical Support Knowledge Articles

USING REGISTERBANKS AND INTERRUPTS

Applies to: General Topics

Answer


Information in this article applies to:


QUESTION

I have several interrupt functions in my application. How should I assign registerbanks to these interrupt functions? Is the rule different when I use a real-time operating system like RTX-Tiny?

ANSWER

Several interrupt functions may share the same registerbank provided that they cannot interrupt each other.

The 8051, 251, and 166 based microcontrollers have priority driven interrupt systems. This implies that an interrupt function can only be interrupted by another interrupt function with a higher priority. In real applications this means that you can assign all interrupts with the same interrupt priority level to the same registerbank. This reduces the registerbanks and the memory required by your application.

There is no difference to this rule when you are using real-time operating systems like RTX-Tiny.

MORE INFORMATION

SEE ALSO

Article last edited on: 2005-07-15 10:11:08

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential