Register 14: Stack Pointer (SP)
The
Stack Pointer (SP)
is register R13. In Thread mode, the function of this register changes
depending on the
ASP
bit in the
Control Register (CONTROL)
register. When the
ASP
bit is clear,
this register is the
Main Stack Pointer (MSP)
. When the
ASP
bit is set, this register is the
Process
Stack Pointer (PSP)
. On reset, the
ASP
bit is clear, and the processor loads the
MSP
with the value
from address 0x0000.0000. The
MSP
can only be accessed in privileged mode; the
PSP
can be
accessed in either privileged or unprivileged mode.
Stack Pointer (SP)
Type RW, reset -
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
SP
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
Type
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Reset
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
SP
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
Type
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Reset
Description
Reset
Type
Name
Bit/Field
This field is the address of the stack pointer.
-
RW
SP
31:0
89
June 18, 2014
Texas Instruments-Production Data
Tiva
™
TM4C1294NCPDT Microcontroller