Freescale Semiconductor, Inc.
GENERAL RELEASE SPECIFICATION
3.2.4 Stack Pointer (SP)
The stack pointer contains the address of the next free location on the stack.
8
2
During an MCU reset or the reset stack pointer (RSP) instruction, the stack pointer
is set to location $00FF. The stack pointer is then decremented as data is pushed
onto the stack and incremented as data is pulled from the stack.
3
When accessing memory, the seven most significant bits are permanently set to
0000011. These seven bits are appended to the six least significant register bits to
produce an address within the range of $00FF to $00C0. Subroutines and
interrupts may use up to 64 (decimal) locations. If 64 locations are exceeded, the
stack pointer wraps around and loses the previously stored information. A
subroutine call occupies two locations on the stack; an interrupt uses five locations.
4
5
6
12
0
7
1
0
0
0
0
0
1
SP
7
8
3.2.5 Program Counter (PC)
9
The program counter is a 13-bit register that contains the address of the next byte
to be fetched.
10
11
12
13
14
A
12
0
PC
NOTE
The M68HC05 CPU core is capable of addressing a 64-Kbyte
memory map. For this implementation, however, the addressing
registers are limited to an 8-Kbyte memory map.
16
17
18
19
20
CENTRAL PROCESSING UNIT
MC68HC805P18
3-4
For More Information On This Product,
Go to: www.freescale.com