Fujitsu MB90335 Series Hardware Manual page 125

16-bit microcontroller
Table of Contents

Advertisement

CHAPTER 3 INTERRUPT
3.10 Stack Operation of Interrupt Processing
■ Stack Area
Securing stack area
The stack area is used to save or return the program counter (PC) used to execute the subroutine call
(CALL) or vector call (CALLV) instruction as well as execute the interrupt handling. This area is also
used, by the PUSHW or POPW instruction, to save or return the contents of temporary registers and their
related data. The stack area is located in RAM together with the data area.
Figure 3.10-2 shows the stack area.
Vector table
(Reset, Interrupt vector
Notes:
As a general rule, even addresses should be set in the stack pointers (SSP and USP).
The system stack area, user stack area, and data area should not overlap.
System stack area and user stack area
The system stack area is used for interrupt processing. Even if the user stack area is being used, generation
of an interrupt causes forcible switching to the system stack. For this reason, the system stack area must
have been set up properly even in a system where the user stack area is primarily used. In particular, only
the system stack area should be used unless it is necessary to divide the stack space.
104
Figure 3.10-2 Stack Area
call instruction)
Stack area
*1: Built-in ROM capacity is difference depending on products.
*2: Built-in RAM capacity is difference depending on products.
FUJITSU MICROELECTRONICS LIMITED
FFFFFF
H
FFFC00
H
ROM area
1
*
FC0000
H
2
*
0040FF
H
Internal RAM area
000380
H
General-
purpose
register
bank area
000180
H
000100
H
0000FB
H
Internal I/O area
000000
H
MB90335 Series
CM44-10137-6E

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2mc-16lxMb90v330aMb90f337Mb90337

Table of Contents