CHAPTER 6 CAUTIONS
User’s Manual U17029EJ3V0UM
47
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 (including A2). Step execution or a break by
STOP or a breakpoint cannot be performed by the debugger 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.
(15) 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.
z
Setting a software break
z
Write to the stack pointer from the Register window
z
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.
(16) Caution on downloading HEX file
When downloading a HEX file while a value other than 0xFF is specified as the filling value using an object
converter option (-U), the operation contradicts that described in
(2) Values at addresses 0x02, 0x03, and 0x8F
or higher
. In such a case, keep consistency using the following program, instead of using the linker option (-go).
Example:
ORG 0002h
DB 0ffh,0ffh
ORG 008fh
DB 0ffh
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
:
: 16 lines 1 byte + 16 bytes × 16 = 257 bytes
:
DB 0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh