h8s-2172 Renesas Electronics Corporation., h8s-2172 Datasheet - Page 92

no-image

h8s-2172

Manufacturer Part Number
h8s-2172
Description
Renesas 16-bit Single-chip Microcomputer H8s Family H8s-2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
4.6
Figure 4.2 shows the stack after completion of trap instruction exception handling and interrupt
exception handling.
4.7
When accessing word data or longword data, this LSI assumes that the lowest address bit is 0. The
stack should always be accessed in words or longwords, and the value of the stack pointer (SP:
ER7) should always be kept even.
Use the following instructions to save registers:
Use the following instructions to restore registers:
Setting SP to an odd value may lead to a malfunction. Figure 4.3 shows an operation example
when the SP value is odd.
Rev. 2.00, 03/04, page 60 of 534
PUSH.W
PUSH.L
POP.W
POP.L
Stack Status after Exception Handling
Usage Note
Rn
Rn
ERn
ERn
Figure 4.2 Stack Status after Exception Handling
(or
(or
(or
(or
MOV.W Rn, @-SP
MOV.W @SP+, Rn
MOV.L ERn, @-SP
MOV.L @SP+, ERn
SP
(24 bits)
CCR
PC
)
)
)
)

Related parts for h8s-2172