Technical information

( 11 / 76 )
Note on Setting the Work Area:
To use this product, it is necessary to set the work area in the internal reserved area of the MCU.
However, do not set it in the last 10 bytes of the internal reserved area. And be sure to set the internal
reserved area to INT. (Set the work area by the Init dialog box of the emulator debugger M3T-
PD30.)
For M306NA and M306NB, set this area at address 2C00h. The emulator uses 10 bytes area of
02C00h to 02C09h.
IMPORTANT
Notes on MAP References and Settings:
For details on referencing and setting MAP information, see the user's manual of the emulator
debugger M3T-PD30.
MAP settings are as follows:
(1) MAP = INT
Emulation memory in this product becomes effective.
Set this to debug internal ROM and internal RAM of an MCU.
(2) MAP = EXT
Emulation memory in this product is not used.
Set this to use MCU internal resources (SFR) or resources on the target system.
Be sure to set the SFR area to EXT.
When setting 0FFFCh to 0FFFFh to EXT:
This product uses the 4 bytes area 0FFFCh--0FFFFh as the stack area. If this 4 bytes memory cannot
be read or written to, reset cannot be properly effected. As a result, you need to alter the map settings
if either of the two conditions given below is met.
(1) With the system which shifts from single-chip mode to memory expansion (or microproces-
sor) mode, using the 4 bytes area of 0FFFCh--0FFFFh set to EXT.
(2) With the system which starts up in microprocessor mode, using the 4 bytes area of 0FFFCh-
-0FFFFh set to EXT and there is not enough memory to read or write.
The procedures to alter the MAP settings when the conditions (1) or (2) above are met are shown
below.
(1) Set the 4 bytes area of 0FFFCh--0FFFFh to INT.
(2) Execute the RESET command of the emulator debugger M3T-PD30.
(3) Set the stack pointer.
(Example)
RESET:
FCLR I
LDC #0480H, SP <-- Set the stack pointer.
(Program stops after executing this instruction.)
(4) Set the 4 bytes area 0FFFCh--0FFFFh to EXT.