Datasheet
81
SAM3X / SAM3A [DATASHEET]
Atmel-11057C-ATARM-SAM3X-SAM3A-Datasheet_23-Mar-15
10.8.2.2 Wakeup from WFE
The processor wakes up if:
it detects an exception with sufficient priority to cause exception entry
In addition, if the SEVONPEND bit in the SCR is set to 1, any new pending interrupt triggers an event and wakes
up the processor, even if the interrupt is disabled or has insufficient priority to cause exception entry. For more
information about the SCR see “System Control Register” on page 174.
10.8.3 Power management programming hints
ANSI C cannot directly generate the WFI and WFE instructions. The CMSIS provides the following intrinsic
functions for these instructions:
void __WFE(void) // Wait for Event
void __WFE(void) // Wait for Interrupt
10.9 Instruction set summary
The processor implements a version of the Thumb instruction set. Table 10-13 lists the supported instructions.
In Table 10-13:
angle brackets, <>, enclose alternative forms of the operand
braces, {}, enclose optional operands
the Operands column is not exhaustive
Op2 is a flexible second operand that can be either a register or a constant
most instructions can use an optional condition code suffix.
For more information on the instructions and operands, see the instruction descriptions.
Table 10-13. Cortex-M3 instructions
Mnemonic Operands Brief description Flags Page
ADC, ADCS {Rd,} Rn, Op2 Add with Carry N,Z,C,V page 110
ADD, ADDS {Rd,} Rn, Op2 Add N,Z,C,V page 110
ADD, ADDW {Rd,} Rn, #imm12 Add N,Z,C,V page 110
ADR Rd, label Load PC-relative address - page 95
AND, ANDS {Rd,} Rn, Op2 Logical AND N,Z,C page 113
ASR, ASRS Rd, Rm, <Rs|#n> Arithmetic Shift Right N,Z,C page 114
B label Branch - page 134
BFC Rd, #lsb, #width Bit Field Clear - page 130
BFI Rd, Rn, #lsb, #width Bit Field Insert - page 130
BIC, BICS
{Rd,}
Rn, Op2
Bit Clear N,Z,C page 113
BKPT #imm Breakpoint - page 142
BL label Branch with Link - page 134
BLX Rm Branch indirect with Link - page 134
BX Rm Branch indirect - page 134
CBNZ Rn, label Compare and Branch if Non Zero - page 136
CBZ Rn, label Compare and Branch if Zero - page 136
CLREX - Clear Exclusive - page 108










