h8s-2138 Renesas Electronics Corporation., h8s-2138 Datasheet - Page 154
h8s-2138
Manufacturer Part Number
h8s-2138
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
1.H8S-2138.pdf
(1061 pages)
- Current page: 154 of 1061
- Download datasheet (6Mb)
Section 4 Exception Handling
4.6
When accessing word data or longword data, the H8S/2138 Group or H8S/2134 Group chip
assumes that the lowest address bit is 0. The stack should always be accessed by word transfer
instruction or longword transfer instruction, 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.6 shows an example of what
happens when the SP value is odd.
Rev. 4.00 Jun 06, 2006 page 100 of 1004
REJ09B0301-0400
Legend:
CCR: Condition-code register
PC:
R1L: General register R1L
SP:
Note: This diagram illustrates an example in which the interrupt control mode is 0, in advanced
SP
PUSH.W
PUSH.L
POP.W
POP.L
Stack pointer
Program counter
mode.
Notes on Use of the Stack
SP set to H'FFFEFF
TRAP instruction executed
Rn
ERn
Rn
ERn
Figure 4.6 Operation When SP Value Is Odd
(or MOV.W Rn, @-SP)
(or MOV.L ERn, @-SP)
(or MOV.W @SP+, Rn)
(or MOV.L @SP+, ERn)
SP
Data saved above SP
CCR
PC
MOV.B R1L, @–ER7
SP
Contents of CCR lost
R1L
PC
H'FFEFFA
H'FFEFFB
H'FFEFFC
H'FFEFFD
H'FFEFFF
Related parts for h8s-2138
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2100 Series
Manufacturer:
Renesas Electronics Corporation.
Datasheet:
Part Number:
Description:
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2100 Series
Manufacturer:
Renesas Electronics Corporation.
Datasheet:
Part Number:
Description:
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2100 Series
Manufacturer:
Renesas Electronics Corporation.
Datasheet:
Part Number:
Description:
Renesas 16-bit Single-chip Microcomputer H8s Family / H8s/2100 Series
Manufacturer:
Renesas Electronics Corporation.
Datasheet:
Part Number:
Description:
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2100 Series
Manufacturer:
Renesas Electronics Corporation.
Datasheet:
Part Number:
Description:
Renesas 16-bit Single-chip Microcomputer H8s Family H8s-2100 Series
Manufacturer:
Renesas Electronics Corporation.
Datasheet:
Part Number:
Description:
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2600 Series
Manufacturer:
Renesas Electronics Corporation.
Datasheet:
Part Number:
Description:
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2600 Series
Manufacturer:
Renesas Electronics Corporation.
Datasheet:
Part Number:
Description:
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2600 Series
Manufacturer:
Renesas Electronics Corporation.
Datasheet:
Part Number:
Description:
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2600 Series
Manufacturer:
Renesas Electronics Corporation.
Datasheet:
Part Number:
Description:
Renesas Technology Corp [Renesas 32-Bit RISC Microcomputer Super RISC engine Family/SH7700 Series]
Manufacturer:
Renesas Electronics Corporation.
Datasheet:
Part Number:
Description:
RENESAS MCU M16C FAMILY / M16C/Tiny SERIES
Manufacturer:
Renesas Electronics Corporation.
Datasheet:
Part Number:
Description:
Renesas Starter Kit for RX210
Manufacturer:
Renesas Electronics Corporation.
Part Number:
Description:
EVALBOARD/Renesas StarterKit for RX630
Manufacturer:
Renesas Electronics Corporation.
Part Number:
Description:
EVALBOARD/Renesas Starter Kit+ for RX63N
Manufacturer:
Renesas Electronics Corporation.