Limitations To The Statements Written In A Specified Routine - Renesas M16C/64 User Manual

Emulator mcu unit for m16c/64 group
Table of Contents

Advertisement

R0E530640MCU00 User's Manual
Table 5.44 Limitations to the registers and flags
Register/flag Name
ISP register
U flag
I flag
- When a specified routine is executed, the debug functions listed below have no effect.
(a) Trace function
(b) Break-related functions
(c) RAM monitor function
- When a specified routine is executed, non-maskable interrupts are always disabled.
- The table below shows which state the MCU will be in when the user program starts running after a specified routine is
executed.
Table 5.45 MCU Status at start of the user program
MCU Resource
MCU
general-purpose
registers
Memory in MCU space
MCU
peripheral
functions

5.15.4 Limitations to the Statements written in a Specified Routine

The statements written in a specified routine are subject to the limitations described below.
- If a stack needs to be used in a specified routine, always be sure to use the user stack.
- To terminate the processing of a specified routine, write a return subroutine instruction.
- Make sure that one session of processing performed by a specified routine is terminated within 10 ms. If, for example, the
clock is turned off and kept inactive within a specified routine, then the emulator may become unable to control program
execution.
- The values stored in the registers at the time a specified routine starts running are indeterminate. Be sure that the register
values are initialized within a specified routine.
REJ10J1733-0100 Rev.1.00 Apr. 01, 2008
Page 210 of 229
Limitations
When a specified routine has ended, the value of this register must be restored to one that
it had when the specified routine started.
When a specified routine has ended, the value of this flag must always be set to 0.
Interrupts are disabled while a specified routine is executed.
Status
These registers are in the state in which they were when the user program last stopped or
the MCU registers that were set in the register window by the user. The register contents
changed after a specified routine is executed are not reflected.
Memory accesses attempted after a specified routine is executed are reflected.
Operation of the MCU peripheral functions performed after a specified routine is executed
are continued.
5. Debugging Functions

Advertisement

Table of Contents
loading

This manual is also suitable for:

R0e530640mcu00

Table of Contents