MS51
Dec. 17, 2019
Page
41
of 316
Rev 1.01
M
S51
SE
RIES
TE
CHNICA
L REF
ERE
N
CE MA
NU
A
L
SP
– Stack Pointer
Regiser
Address
Reset Value
SP
81H, all pages
0000_0111b
7
6
5
4
3
2
1
0
SP[7:0]
R/W
Bit
Name
Description
7:0
SP[7:0]
Stack pointer
The Stack Pointer stores the scratch-pad RAM address where the stack begins. It is incremented
before data is stored during PUSH or CALL instructions. Note that the default value of SP is 07H.
This causes the stack to begin at location 08H.