CHAPTER 5 HOW TO USE MINICUBE2 WITH 78K0S MICROCONTROLLER
User’s Manual U18371EJ1V0UM
118
Remark
Describe the address to the portion of
″
0ed0h
″
in accordance with the flash memory capacity of the
target device (see the following table).
Flash Memory Capacity of
Target Device
Value Described in
Assembler Source
1 KB
0x2D0
2 KB
0x6D0
4 KB
0xED0
8 KB
0x1ED0
(2) Securement of stack area for debugging
In the internal RAM space of the target device, the shaded portion in Figure 5-16 are the area where the debug
monitor program uses as the stack area (5 bytes). Since this area is allocated immediately before the stack
area that is used by the user program, the address of this area varies depending on the stack increase and
decrease. Therefore, the stack pointer must be set by making allowances for the stack size (5 bytes) used for
debugging.
The following figure illustrates the case where the stack area is increased when the internal high-speed RAM
starts from 0xFE00.
5 bytes
Stack area
Stack area
for debugging
Available space
in internal high-
speed RAM
0xFE00
0xFEFF
5 bytes
0xFE00
0xFEFF
5 bytes
0xFE00
0xFEFF
0xFE05
<1>
<2>
<3>
5 bytes
Stack area
Stack area
for debugging
Available space
in internal high-
speed RAM
0xFE00
0xFEFF
5 bytes
0xFE00
0xFEFF
5 bytes
0xFE00
0xFEFF
0xFE05
<1>
<2>
<3>
[How to secure areas]
Refer to the address range shown below and set the stack pointer.
Example
When internal high-speed RAM starts from 0xFE00
Within the range 0xFE05 to 0xFEFF