CHAPTER 4 HOW TO USE MINICUBE2 WITH 78K0 MICROCONTROLLER
User’s Manual U18371EJ1V0UM
87
(5) Emulation in self programming mode
For self programming, the mode is switched from normal mode to self programming mode.
MOV PFCMD,#0A5H
MOV FLPMC,#1H
←
(1)
MOV FLPMC,#0FEH
MOV FLPMC,#1H
----------------------- From this position
CALL !08100H
←
(2)
↑
MOV PFCMD,#0A5H
MOV FLPMC,#0H
Mode A1
MOV FLPMC,#0FFH
MOV FLPMC,#0H
←
(3)
↓
----------------------- To this position
The section between (2) and (3) is in self programming mode A1. Step execution or debug operations, such
as stopping program execution, cannot be performed in this section.
In addition, do not set a software break in the section between (1) and (3); otherwise the execution continues
without a break but emulation is not performed normally.
(6) Break function for stack pointer initialization failure
This function executes a break when an interrupt occurs or a PUSH instruction is executed while the initial
setting has not been made for the stack pointer.
If the manipulation or instruction shown below is executed immediately after a reset operation, the break
function for stack pointer initialization failure becomes invalid.
• Setting a software break
• Write to the stack pointer from the Register window
• Write to the flash memory from the Memory window, etc
If a software break occurs while the initial setting has not been made for the stack pointer, the message
″
Uninitialized Stack Pointer
″
is displayed on the status bar.
The subsequent operations are not performed normally, so make sure to set the SP value in the user program.
(7) Caution on downloading a HEX file
When downloading a HEX file, do not set specify a filling value other than 0xFF for the object converter option
(-U).