CHAPTER 5 HOW TO USE MINICUBE2 WITH 78K0S MICROCONTROLLER
User’s Manual U18371EJ1V0UM
117
(1) Securement of area for debug monitor program
In the internal ROM space of the target device, the shaded portions in Figure 5-16 are the areas where the
debug monitor program is allocated. The monitor program performs initialization processing for debug
communication interface and RUN or break processing for the CPU. The internal ROM area must be filled
with 0xFF. This area must not be rewritten by the user program.
[How to secure areas]
It is not necessarily required to secure this area if the user program does not use this area.
To avoid problems that may occur during the debugger startup, however, it is recommended to secure this
area in advance, using the compiler.
The following shows examples for securing the area, using the NEC Electronics assembler RA78K0S. Add
the assemble source code, as shown below.
• Assemble source example that securse INTP interrupt vector
SSS CSEG
AT 0018h;
″
SSS
″
is an arbitrary symbol name (eight characters or less)
DB
0ffh,
0ffh
Remark
Describe the INTP interrupt vector address to the portion of
″
0018h
″
. The following shows
examples of the 78K0S/Kx1+.
When using 78K0S/KU1+ or 78K0S/KY1+: INTP1 (000ah)
When using 78K0S/KA1+ or 78K0S/KB1+: INTP3 (0018h)
• Assemble source example that secures an area for software break
SSS CSEG
AT 007eh;
″
SSS
″
is an arbitrary symbol name (eight characters or less)
DB
0ffh,
0ffh
• Assemble source example that secures monitor program area lower than internal ROM end address
SSS CSEG
AT 0ed0h;
″
SSS
″
is an arbitrary symbol name (eight characters or less)
DB
0ffh,
0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh
DB
0ffh,
0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh
:
19 lines
:
DB
0ffh,
0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh