|
SAM3S_14 Datasheet, PDF (62/1087 Pages) ATMEL Corporation – AT91SAM ARM-based Flash MCU | |||
|
◁ |
Table 11-9. Properties of the different exception types (Continued)
Exception
number (1)
IRQ
number (
1)
Exception
type
Priority
Vector address
or offset (2)
5
-11
Bus fault
Configurable
(3)
0x00000014
6
-10
Usage fault
Configurable
(3)
0x00000018
Activation
Synchronous when
precise,
asynchronous when
imprecise
Synchronous
7-10
-
11
-5
-
SVCall
-
Configurable
(3)
Reserved
0x0000002C
-
Synchronous
12-13
-
14
-2
-
PendSV
-
Configurable
(3)
Reserved
0x00000038
-
Asynchronous
15
-1
SysTick
Configurable
(3)
0x0000003C
Asynchronous
16 and
above
0 and
above (4)
Interrupt (IRQ)
Configurable 0x00000040 and
(5)
above (6)
Asynchronous
1.
To simplify the software layer, the CMSIS only uses IRQ numbers and therefore uses negative
values for exceptions other than interrupts. The IPSR returns the Exception number, see
âInterrupt Program Status Registerâ on page 46.
2.
See âVector tableâ on page 63 for more information.
3.
See âSystem Handler Priority Registersâ on page 171.
4.
See the âPeripheral Identifiersâ section of the datasheet.
5.
See âInterrupt Priority Registersâ on page 153.
6.
Increasing in steps of 4.
For an asynchronous exception, other than reset, the processor can execute another instruction between when the
exception is triggered and when the processor enters the exception handler.
Privileged software can disable the exceptions that Table 11-9 on page 61 shows as having configurable priority,
see:
⢠âSystem Handler Control and State Registerâ on page 174
⢠âInterrupt Clear-enable Registersâ on page 149.
For more information about hard faults, memory management faults, bus faults, and usage faults, see âFault han-
dlingâ on page 66.
11.5.3 Exception handlers
The processor handles exceptions using:
11.5.3.1 Interrupt Service Routines (ISRs)
Interrupts IRQ0 to IRQ34 are the exceptions handled by ISRs.
11.5.3.2 Fault handlers
Hard fault, memory management fault, usage fault, bus fault are fault exceptions handled by the fault handlers.
SAM3S [DATASHEET] 62
6500EâATARMâ11-Feb-13
|
▷ |