
527
CHAPTER 22 CAUTIONS ON USING DEVELOPMENT TOOLS
CHAPTER 22 CAUTIONS ON USING DEVELOPMENT TOOLS
When developing a program by using in-circuit emulator IE-784000-R, note the following point.
(1) Setting of standby control register (STBC)
Include an instruction that sets the standby control register (STBC) to 00H following the LOCATION instruction and
initialization of the stack pointer (SP) in the program after reset is cleared.
Program example:
RSTVCT
CSEG
DW
to
CSEG
LOCATION 0H; or LOCATION 0FH
MOVG
SP, #STKBGN
MOV
STBC, #0H
AT 0
RSTSTRT
INITSEG
RSTSTRT:
BASE
Reason: The internal system clock of the
m
PD784046 is fixed to f
XX
/2. However, the internal system clock of the
in-circuit emulator is set to f
XX
/16 after reset has been cleared. Therefore, the setting of the STBC must
be changed as described above.
Even if the instruction that sets the STBC to 00H is executed, the operation is not affected because the STBC of
the real chip is fixed to 30H. For the same reason, the value of the STBC of the real chip is always 30H when it
is read. The value of the STBC on the in-circuit emulator, however, is changed to 00H when the above setting is
made. Therefore, note that the value of the STBC of the in-circuit emulator and that of the real chip differ when they
are read.
(2) Output of CLKOUT pin
The CLKOUT pin of the real chip always outputs the oscillation frequency (f
XX
). However, in the case of the in-circuit
emulator IE-784000-R, the internal system clock (f
XX
/2 or f
XX
/16
Note
) is output. Note that f
XX
is not output from the
in-circuit emulator.
Note
The CLKOUT pin output of the in-circuit emulator is set to f
XX
/16 after the reset has been released, and set
to f
XX
/2 when 00H is set to the standby control register (STBC).