ST72321Bxxx-Auto
Interrupts
Note:
Otherwise, the software priority stays unchanged up to the next interrupt request (after the
IRET of the interrupt x).
Table 18. Interrupt dedicated instruction set
Instruction
New description
Function/Example I1 H I0 N Z C
HALT Entering Halt mode
1
0
IRET Interrupt routine return
Pop CC, A, X, PC
I1 H I0 N Z C
JRM
JRNM
Jump if I1:0 = 11 (level 3)
Jump if I1:0 <> 11
I1:0 = 11 ?
I1:0 <> 11 ?
POP CC Pop CC from the Stack
Mem => CC
I1 H I0 N Z C
RIM Enable interrupt (level 0 set) Load 10 in I1:0 of CC 1
0
SIM Disable interrupt (level 3 set) Load 11 in I1:0 of CC 1
1
TRAP
WFI
Software trap
Wait for interrupt
Software NMI
1
1
1
0
During the execution of an interrupt routine, the HALT, POPCC, RIM, SIM and WFI
instructions change the current software priority up to the next IRET instruction or one of the
previously mentioned instructions.
61/247