TMP91C824
91C824-31
Table 3.3.4 Source of Halt state clearance and Halt clearance operation
Status of Received Interrupt
Interrupt Enabled
(interrupt level)
≥
(interrupt mask)
Interrupt Disabled
(interrupt level) < (interrupt mask)
Halt mode
Idle2
Idle1
Stop
Idle2
Idle1
Stop
Interrupt
NMI
INTWDT
INT0 ? ? ?3 (Note1)
INTALM0 to 4
INTTA0 to 3
INTRX0 to 1,TX0 to 1
INTAD
INTKEY
INTRTC
INTSBI
¥
¥
¥
¥
¥
¥
¥
¥
¥
¥
¥
×
¥
¥
×
×
×
¥
¥
×
¥
*1
×
¥
*1
×
×
×
×
¥
*1
×
×
−
−
¡
¡
×
×
×
¡
¡
×
−
−
¡
¡
×
×
×
¡
¡
×
−
−
¡
*1
×
×
×
×
¡
*1
×
×
Source of Halt state clearance
RESET
¥
¥
¥
¥
¥
¥
¥
: After clearing the Halt mode, CPU starts interrupt processing. (RESET initializes the microcont.)
¡
: After clearing the Halt mode, CPU resumes executing starting from instruction following the HALT instruction.
×
: It can not be used to release the halt mode.
−
: The priority level (interrupt request level) of non-maskable interrupts is fixed to 7, the highest priority level. There
is not this combination type.
*1: Releasing the halt mode is executed after passing the warmming-up time.
Note 1: When the Halt mode is cleared by an INT0 interrupt of the level mode in the interrupt enabled status, hold
level H until starting interrupt processing. If level L is set before holding level L, interrupt processing is
correctly started.
(Example - clearing Idle1 Mode)
An INT0 interrupt clears the Halt state when the device is in Idle1 Mode.
Address
8203H
LD
(IIMC), 00H
; Selects INT0 interrupt rising edge.
8206H
LD
(INTE0AD), 06H
; Sets INT0 interrupt level to 6.
8209H
EI
5
; Sets interrupt level to 5 for CPU.
820BH
LD
(SYSCR2), 28H
; Sets Halt mode to Idle1 Mode.
820EH
HALT
; Halts CPU.
INT0
INT0 interrupt routine
RETI
820FH
LD
XX, XX