SAM3N00A Atmel Corporation, SAM3N00A Datasheet - Page 70

no-image

SAM3N00A

Manufacturer Part Number
SAM3N00A
Description
Manufacturer
Atmel Corporation
Datasheets
10.6.7.6
10.7
70
Fault handling
SAM3N
Exception return
If no higher priority exception occurs during exception entry, the processor starts executing the
exception handler and automatically changes the status of the corresponding pending interrupt
to active.
If another higher priority exception occurs during exception entry, the processor starts executing
the exception handler for this exception and does not change the pending status of the earlier
exception. This is the late arrival case.
Exception return occurs when the processor is in Handler mode and executes one of the follow-
ing instructions to load the EXC_RETURN value into the PC:
EXC_RETURN is the value loaded into the LR on exception entry. The exception mechanism
relies on this value to detect when the processor has completed an exception handler. The low-
est four bits of this value provide information on the return stack and processor mode.
10
The processor sets EXC_RETURN bits[31:4] to
it indicates to the processor that the exception is complete, and the processor initiates the
exception return sequence.
Table 10-10. Exception return behavior
Faults are a subset of the exceptions, see
ate a fault:
EXC_RETURN[3:0]
bXXX0
b0001
b0011
b01X1
b1001
b1101
b1X11
• a
• a
• an
shows the EXC_RETURN[3:0] values with a description of the exception return behavior.
POP
BX
– a bus error on:
– an instruction fetch or vector table load
– a data access
LDR
instruction with any register.
instruction that includes the PC
or
LDM
instruction with the PC as the destination.
Description
Reserved.
Return to Handler mode.
Exception return gets state from MSP.
Execution uses MSP after return.
Reserved.
Reserved.
Return to Thread mode.
Exception return gets state from MSP.
Execution uses MSP after return.
Return to Thread mode.
Exception return gets state from PSP.
Execution uses PSP after return.
Reserved.
“Exception model” on page
0xFFFFFFF
. When this value is loaded into the PC
63. The following gener-
11011A–ATARM–04-Oct-10
Table 10-

Related parts for SAM3N00A