English
Language : 

MC68HC705C8A Datasheet, PDF (44/222 Pages) Motorola, Inc – HCMOS Microcontroller Unit
Central Processor Unit (CPU)
3.3.3 Stack Pointer
The stack pointer (SP) shown in Figure 3-4 is a 13-bit register that
contains the address of the next free location on the stack. During a
reset or after the reset stack pointer (RSP) instruction, the stack pointer
initializes to $00FF. The address in the stack pointer decrements as data
is pushed onto the stack and increments as data is pulled from the stack.
The seven most significant bits of the stack pointer are fixed
permanently at 0000011, so the stack pointer produces addresses from
$00C0 to $00FF. If subroutines and interrupts use more than 64 stack
locations, the stack pointer wraps around to address $00FF and begins
writing over the previously stored data. A subroutine uses two stack
locations. An interrupt uses five locations.
Bit 12 11 10 9
8
7
6
5
4
3
2
1 Bit 0
Read: 0
0
0
0
0
1
1
Write:
Reset: 0
0
0
0
0
1
1
1
1
1
1
1
1
= Unimplemented
Figure 3-4. Stack Pointer (SP)
3.3.4 Program Counter
The program counter (PC) shown in Figure 3-5 is a 13-bit register that
contains the address of the next instruction or operand to be fetched.
Normally, the address in the program counter automatically increments
to the next sequential memory location every time an instruction or
operand is fetched. Jump, branch, and interrupt operations load the
program counter with an address other than that of the next sequential
location.
Bit 12 11 10 9
8
7
6
5
4
3
2
1 Bit 0
Read:
Write:
Reset:
Loaded with reset vector from $1FFE and $1FFF
Figure 3-5. Program Counter (PC)
Technical Data
44
Central Processor Unit (CPU)
MC68HC705C8A — Rev. 2.0
MOTOROLA