XC2200 Derivatives
System Units (Vol. 1 of 2)
Central Processing Unit (CPU)
User’s Manual
4-53
V2.1, 2008-08
CPUSV2_X, V2.2
Note: SPSEG and SP can be updated via any instruction capable of modifying a 16-bit
SFR. Due to the internal instruction pipeline, a write operation to SPSG or SP
stalls the instruction flow until the register is really updated. The instruction
immediately following the instruction updating SPSG or SP can use the new value.
Extreme care should be taken when changing the contents of the stack pointer
registers. Improper changes may result in erroneous system behavior.
SP
Stack Pointer Register
SFR (FE12
H
/09
H
)
Reset Value: FC00
H
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
sp
0
rwh
r
Field
Bits
Type
Description
sp
[15:1]
rwh
Modifiable Portion of Register SP
Specifies the top of the system stack.
SPSEG
Stack Pointer Segment
SFR (FF0C
H
/86
H
)
Reset Value: 0000
H
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
-
-
-
-
-
-
-
-
SPSEGNR
-
-
-
-
-
-
-
-
rw
Field
Bits
Type
Description
SPSEGNR
[7:0]
rw
Stack Pointer Segment Number
Specifies the segment where the stack is located.