ARM Lecture 3
ARM Lecture 3
Interrupts are used with exceptions from the external peripherals. In other words
interrupt is nothing but an exception external to the processor core.
The NVIC controls the interrupts as well as the system exceptions. The NVIC can be
accessed in the System Control Space (SCS) address range, which is memory
location 0xE000E000. Most of the interrupt control/status registers are accessible
only in privileged mode, except the Software Trigger Interrupt register (STIR),
which can be set up to be accessible in user mode.
SysTick Timer Processor Core
NMI
Peripherals NVIC
System
Exceptions
IRQn
1. Enable .
.
2. Clear Enable .
.
4. Clear Pending .
.
5. Active status 0xE000E300 IABR0
6. Priority level .
.
.
0xE000E280 CLRPEND0
.
.
.
0xE000E200 SETPEND0
.
.
.
ICER0
0xE000E180
.
.
.
0xE000E100 ISER0
Note
If a pending interrupt is enabled, the NVIC activates the interrupt based on its
priority. If an interrupt is not enabled, asserting its interrupt signal changes the
interrupt state to pending, but the NVIC never activates the interrupt, regardless of
its priority.
Note
Writing 1 to an ICPR bit does not affect the active state of the corresponding
interrupt.
Note
Writing 1 to the ISPR bit corresponding to an interrupt that is pending:
– has no effect.
Writing 1 to the ISPR bit corresponding to a disabled interrupt:
– sets the state of that interrupt to pending.
Note
A bit reads as 1 if the status of the corresponding interrupt is active or active and
pending.
Note
A bit reads as 1 if the status of the corresponding interrupt is active or active and
pending.
1- Define Number of Groups and Number of Sub Priorities
1- Assign a priority for each interrupt
www.imtschool.com
ww.facebook.com/imaketechnologyschool/