Note On Return Operation From Stop/Halt Mode - LAPIS Semiconductor ML610Q421 User Manual

Table of Contents

Advertisement

4.3.3.3

Note on Return Operation from STOP/HALT Mode

The operation of returning from the STOP mode and HALT mode varies according to the interrupt level (ELEVEL) of
the program status word (PSW), master interrupt enable flag (MIE), the contents of the interrupt enable register (IE0 to
IE3), and whether the interrupt is a non-maskable interrupt or a maskable interrupt.
For details of PSW and the IE and IRQ registers, see "nX-U8/100 Core Instruction Manual" and Chapter 5, "Interrupt",
respectively.
Table 4-1 and Table 4-2 show the return operations from STOP/HALT mode.
Table 4-1 Return Operation from STOP/HALT Mode (Non-Maskable Interrupt)
ELEVEL
MIE
*
*
3
*
0, 1, 2
*
Table 4-2 Return Operation from STOP/HALT Mode (Maskable Interrupt)
ELEVEL
MIE
*
*
*
*
*
0
2,3
1
0, 1
1
Notes:
• If the ELEVEL bit is 0H, it indicates that the CPU is performing neither nonmaskable interrupt processing nor
maskable interrupt processing nor software interrupt processing.
• If the ELEVEL bit is 1H, it indicates that the CPU is performing maskable interrupt processing or software interrupt
processing. (ELEVEL is set during interrupt transition cycle.)
• If the ELEVEL bit is 2H, it indicates that the CPU is performing non-maskable interrupt processing. (ELEVEL is set
during interrupt transition cycle.)
• If the ELEVEL bit is 3H, it indicates that the CPU is performing interrupt processing specific to the emulator. This
setting is not allowed in normal applications.
IEn.m
IRQn.m
Not returned from STOP/HALT mode.
0
After the mode is returned from STOP/HALT mode, the program
operation restarts from the instruction following the instruction that
1
sets the STP/HLT bit to "1". The program operation does not go to the
interrupt routine.
After the mode is returned from the STOP/HALT mode, program
1
operation restarts from the instruction following the instruction that
sets the STP/HLT bit to "1", then goes to the interrupt routine.
IEn.m
IRQn.m
*
0
Not returned from STOP/HALT mode.
0
1
After the mode is returned from STOP/HALT mode, the program
1
1
operation restarts from the instruction following the instruction that
sets the STP/HLT bit to "1". The program operation does not go to the
1
1
interrupt routine.
After the mode is returned from the STOP/HALT mode, program
1
1
operation restarts from the instruction following the instruction that
sets the STP/HLT bit to "1", then goes to the interrupt routine.
ML610Q421/ML610Q422/ML610421 User's Manual
Return operation from STOP/HALT mode
Return operation from STOP/HALT mode
4 – 14
Chapter 4 MCU Control Function

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ml610q422Ml610421

Table of Contents