Stack Pointer (S)
The stack pointer is an 8-bit register, which is used to control the addressing of the variable-length stack.
The stack pointer is automatically incremented and decremented under the control of the MCU to
perform the stack manipulations. The stack allows simple implementation of nested subroutines and
multiple level interrupts. The stack pointer is initialized by the user’s firmware.
Memory Map
There is a zero page working RAM (0000H ~ 007FH), a stack area (0180H ~ 01FFH) and two special
function register areas (SFR, 00C0H ~ 00FFH and 0200H ~ 027FH) in MPC2F35. The locations 0100H
to 017FH and the locations 0000H to 007FH share the same memory block, so MPC2F35 has a 256
bytes on-chip SRAM (zero page working RAM and stack area) and an 8k bytes on-chip flash ROM,
which are addressed from 8000H to 9FFFH. The address mapping of MPC2F35 is shown as below.
Memory Map
0000H
007FH
0080H~00BFH
00C0H~00FFH
0100H
017FH
0180H
01FFH
0200H
027FH
Zero Page
Working RAM
-
SFR
-
RAM
Stack Area
SFR
7FFFH
8000H ~ 800FH
8010H
9FFFH
A000H
Interrupt Vector Area
Program
FFFFH
6
MPC2F35_USB Data Sheet
MEGAWIN