
MB91314A Series
22
5) Notes on the PS register
Since some instructions write the information to PS register early time, the following exception operations may
cause a break to occur in an interrupt processing routine when using the debugger or the updating of the PS
flag. In either case, the processing is conducted properly again after return from an EIT, the operations before
and after the EIT are designed to perform as specified.
The following operations may be performed when the instruction immediately followed by a DIV0U/DIV0S
instruction results in (a) acceptance of a user interrupt, (b) single-stepping, or (c) a break in response to a
data event or emulator menu:
(1) D0 and D1 flags are updated in advance.
(2) An EIT handling routine (user interrupt, NMI, or emulator) is executed.
(3) Upon returning from the EIT, the DIV0U/DIV0S instructions are executed and the D0/D1 flags are updated
back to the original value held before step (1).
When a user interrupt source exists, executing either of the OR CCR, ST LIM and MOV Ri and PS instructions
to enable the interrupt results in the following operations:
(1) The PS register is updated in advance.
(2) An EIT handling routine (user interrupt) is executed.
(3) Upon returning from the EIT, the above instructions are executed and the PS registers are updated back to
the original value held before step (1).
6) Watchdog timer
The watchdog timer integrated in this model monitors the program to check that it delays a reset within a certain
period of time and, if the program runs out of control and fails to delay the reset, resets the CPU in place. Once
the watchdog timer is enabled, it keeps running until reset. As an exception, the watchdog timer delays the
reset automatically when a condition which stops program execution by the CPU develops. For those conditions
which correspond to this exception, refer to the function description of the watchdog timer in “HARDWARE MAN
UAL”. A watchdog reset may not be generated in the above situation caused by the system running out of
control. In that case, please reset (INIT) by external INIT terminal.
7) Notes on using the A/D converter
Although this series contains an A/D converter, do not apply a higher voltage to AVCC pin than to VDDE pin.
8) Software reset in synchronous mode
When using the software reset in synchronous mode, the following two conditions should be satisfied before
setting “0” to the SRST bit in STCR (standby control register) .
Set the interrupt enable flag (I-Flag) to the interrupt disable (I-Flag
= 0) .
Do not use NMI.