MC68HC908JG16FA MOTOROLA [Motorola, Inc], MC68HC908JG16FA Datasheet - Page 76

no-image

MC68HC908JG16FA

Manufacturer Part Number
MC68HC908JG16FA
Description
Microcontrollers
Manufacturer
MOTOROLA [Motorola, Inc]
Datasheet
Central Processor Unit (CPU)
6.4.2 Index Register
6.4.3 Stack Pointer
Technical Data
76
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:
Write:
Read:
Write:
Freescale Semiconductor, Inc.
For More Information On This Product,
X = Indeterminate
Bit
15
Bit
15
0
0
14
14
Central Processor Unit (CPU)
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
MC68HC908JG16
5
X
5
1
4
X
4
1
3
X
3
1
MOTOROLA
2
X
2
1
Rev. 1.0
1
X
1
1
Bit
Bit
0
X
0
1

Related parts for MC68HC908JG16FA