Texas Instruments CC2650DK Benutzerhandbuch

Seite von 1570
Instruction Set Summary
2.5.2.21 Control Register (CONTROL)
Table 2-24. Control Register (CONTROL)
Address Offset
Reset
0x0000 0000
Physical Address
Instance
Description
The CONTROL register controls the stack used and the privilege level for software execution when the processor is in thread mode. This
register is accessible only in privileged mode.
Handler mode always uses MSP, so the processor ignores explicit writes to the ASP bit of the CONTROL register when in handler mode.
The exception entry and return mechanisms automatically update the CONTROL register based on the EXC_RETURN value (see
). In an OS environment, threads running in thread mode must use the process stack and the kernel and exception handlers must
use the main stack. By default, thread mode uses MSP. To switch the stack pointer used in thread mode to PSP, either use the MSR
instruction to set the ASP bit, as detailed in the Cortex™-M3 Instruction Set Technical User's Manual, or perform an exception return to
thread mode with the appropriate EXC_RETURN value, as shown in
Note: When changing the stack pointer, software must use an ISB instruction immediately after the MSR instruction, ensuring that
instructions after the ISB insturction executes use the new stack pointer. See the Cortex™-M3 Instruction Set Technical User's Manual.
Type
R/W
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10
9
8
7
6
5
4
3
2
1
0
RESERVED
ASP
TMPL
Bits
Field Name
Description
Type
Reset
31:2
RESERVED
Reserved
RO
0x0000 000
1
ASP
Active Stack Pointer
R/W
0
Value
Description
1
PSP is the current stack pointer.
0
MSP is the current stack pointer
In handler mode, this bit reads as zero and ignores writes. The
Cortex-M3 updates this bit automatically on exception return.
0
TMPL
Thread Mode Privilege Level
R/W
0
Value
Description
1
Unprivileged software can be executed in thread mode.
0
Only privileged software can be executed in thread mode.
2.6
Instruction Set Summary
The processor implements a version of the Thumb instruction set.
lists the supported
instructions.
NOTE:
In
:
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 in the Cortex™-M3 Instruction Set Technical User's Manual.
NOTE:
is copied from the Cortex™-M3 Instruction Set Technical User's Manual.
Changes made in the manual must be made in
47
SWCU117A – February 2015 – Revised March 2015
Copyright © 2015, Texas Instruments Incorporated