Hardware manual

Microcomputer Technical Q&A
16
Q&A No.: QAH8S-015
Category: Instruction
Subject: Stack Pointer
Question
How should the stack pointer (SP: ER7) be initialized?
Answer
To reserve the stack after the end of on-chip RAM, for example, set the initial value of the stack
pointer as 1 greater than the last address of on-chip RAM.
H'FFFBFF
H'FFFC00
First stack
SP initial value
Used as stack
Not used as stack
On-chip RAM
Initial Set Value of Stack Pointer (Addresses Are for H8S/2655 Series)
Applicable Products
Applicability Series Applicability Series Applicability Series
Yes Entire H8S Series H8S/2655 H8S/2350
H8S/2355 H8S/2357 H8S/2345
H8S/2245 H8S/2148 H8S/2144
H8S/2138 H8S/2134 H8S/2128
H8S/2124