
(4) Other cautions and restrictions dependent on MCU model
IMPORTANT
z Note on Using the MVTC Instruction (1):
When the user program is stopped by the MVTC instruction at the address of the instruction which operates BPC,
a BPC value may be changed even if the MVTC instruction has not been executed. Occurrence of this
phenomenon depends on the MCU status and the instruction sequence. After this phenomenon occurs, the
program is normally re-executed starting with the PC value of the MVTC instruction.
The following shows sample data when the phenomenon occurs.
Example:
Address
H'100
H'104
H'106
.
.
Instruction
LD24
MVTC
NOP
.
.
R0, #H'100
R0, BPC
When a break occurs at PC = H’104 in the above program fragment, BPC = H’100 may be enabled even before
the MVTC instruction is executed.
z Note on Using the MVTC Instruction (2):
In cases when instructions used to operate on the BPC with the MVTC instruction are followed by an RTE
instruction, do not set a preexecution PC breakpoint for the RTE instruction. This is because the BPC value
becomes illegal and the program cannot be run normally after a break.
The following shows sample data when the phenomenon occurs.
Example:
Address
H'100
H'104
H'106
.
.
H'110
Instruction
LD24
MVTC
NOP
.
.
RTE
R0, #H'100
R0, BPC
If in the above program fragment a preexecution PC breakpoint is set at PC = H'110 to cause a break, the BPC
value becomes illegal.
7
Comentarios a estos manuales