ARM Technical Support Knowledge Articles

How do I use the SETPEND and CLRPEND registers in Cortex-M3?

Applies to: Cortex-M3

Answer

If an interrupt occurs, but cannot currently be handled by the core because, say, a higher priority interrupt is currently being handled, the new interrupt is set to PENDING by hardware. The SETPEND registers allow software to both read the current PENDING status of all the interrupts and to force an interrupt to the PENDING state. This is the equivalent of software generating an interrupt that cannot currently be handled.

Similarly, the CLRPEND registers can be read by software to determine the PENDING state of the interrupts and written to clear a PENDING interrupt.

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