![ARM Cortex-M4 Generic User Manual Download Page 224](http://html.mh-extra.com/html/arm/cortex-m4/cortex-m4_generic-user-manual_2973228224.webp)
Cortex-M4 Peripherals
ARM DUI 0553A
Copyright © 2010 ARM. All rights reserved.
4-8
ID121610
Non-Confidential
Find the IPR number and byte offset for interrupt
m
as follows:
•
the corresponding IPR number, see
n
is given by
n
=
m
DIV 4
•
the byte offset of the required Priority field in this register is
m
MOD 4, where:
—
byte offset 0 refers to register bits[7:0]
—
byte offset 1 refers to register bits[15:8]
—
byte offset 2 refers to register bits[23:16]
—
byte offset 3 refers to register bits[31:24].
4.2.8
Software Trigger Interrupt Register
Write to the STIR to generate an interrupt from software. See the register summary in
for the STIR attributes.
When the USERSETMPEND bit in the SCR is set to 1, unprivileged software can access the
STIR, see
Note
Only privileged software can enable unprivileged access to the STIR.
The bit assignments are:
4.2.9
Level-sensitive and pulse interrupts
A Cortex-M4 device can support both level-sensitive and pulse interrupts. Pulse interrupts are
also described as edge-triggered interrupts.
A level-sensitive interrupt is held asserted until the peripheral deasserts the interrupt signal.
Typically this happens because the ISR accesses the peripheral, causing it to clear the interrupt
request. A pulse interrupt is an interrupt signal sampled synchronously on the rising edge of the
processor clock. To ensure the NVIC detects the interrupt, the peripheral must assert the
interrupt signal for at least one clock cycle, during which the NVIC detects the pulse and latches
the interrupt.
When the processor enters the ISR, it automatically removes the pending state from the
interrupt, see
Hardware and software control of interrupts
. For a level-sensitive
interrupt, if the signal is not deasserted before the processor returns from the ISR, the interrupt
becomes pending again, and the processor must execute its ISR again. This means that the
peripheral can hold the interrupt signal asserted until it no longer requires servicing.
See the documentation supplied by your device vendor for details of which interrupts are
level-based and which are pulsed.
Table 4-10 STIR bit assignments
Bits
Field
Function
[31:9]
-
Reserved.
[8:0]
INTID
Interrupt ID of the interrupt to trigger, in
the range 0-239. For example, a value of
0x03
specifies interrupt IRQ3.
9
31
0
Reserved
INTID
8