MC68HC908AP16CFA MOTOROLA [Motorola, Inc], MC68HC908AP16CFA Datasheet - Page 75

no-image

MC68HC908AP16CFA

Manufacturer Part Number
MC68HC908AP16CFA
Description
Microcontrollers
Manufacturer
MOTOROLA [Motorola, Inc]
Datasheet
6.3.2 Index Register
6.3.3 Stack Pointer
MC68HC908AP Family — Rev. 2.5
MOTOROLA
The 16-bit index register allows indexed addressing of a 64K-byte
memory space. H is the upper byte of the index register, and X is the
lower byte. H:X is the concatenated 16-bit index register.
In the indexed addressing modes, the CPU uses the contents of the
index register to determine the conditional address of the operand.
The index register can serve also as a temporary data storage location.
The stack pointer is a 16-bit register that contains the address of the next
location on the stack. During a reset, the stack pointer is preset to
$00FF. The reset stack pointer (RSP) instruction sets the least
significant byte to $FF and does not affect the most significant byte. The
stack pointer decrements as data is pushed onto the stack and
increments as data is pulled from the stack.
In the stack pointer 8-bit offset and 16-bit offset addressing modes, the
stack pointer can function as an index register to access data on the
stack. The CPU uses the contents of the stack pointer to determine the
conditional address of the operand.
Reset:
Reset:
Read:
Read:
Write:
Write:
Freescale Semiconductor, Inc.
For More Information On This Product,
X = Indeterminate
Bit
Bit
15
15
0
0
14
14
0
0
Go to: www.freescale.com
13
13
0
0
Figure 6-3. Index Register (H:X)
Figure 6-4. Stack Pointer (SP)
12
12
0
0
11
11
0
0
10
10
0
0
9
9
0
0
8
8
0
0
7
X
7
1
6
X
6
1
Central Processor Unit (CPU)
5
X
5
1
4
X
4
1
3
X
3
1
CPU Registers
2
X
2
1
Data Sheet
1
X
1
1
Bit
Bit
0
X
0
1
75

Related parts for MC68HC908AP16CFA