
NXP Semiconductors
PT2001SWUG
PT2001 programming guide and instruction set
PT2001SWUG
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2019. All rights reserved.
User guide
Rev. 3.0 — 29 April 2019
42 / 153
iret
Description:
Ends the interrupt routine and clears the microcore interrupt register (uc0_irq_status
(10Fh and 12Fh) and uc1_irq_status (110h and 130h)).
Assembler syntax:
iret Type Rst;
Operands:
•
Type – Operand defines how the program counter (uPC) is handled returning from the
interrupt routine
Operand label
Operand description
continue
The execution is resumed at the address stored in the 10 LSBs of the
interrupt register
restart
The execution is resumed at the address stored in the uc0_entry_point (10Ah
and 12Ah) or uc1_entry_point (10Bh and 12Bh)
Rst – Operand defines if the pending interrupt queue is clear when the iret instruction is
executed
Operand label
Operand description
_rst
The pending interrupts queue is not cleared
rst
The pending interrupts queue is cleared
Table 44. iret instruction format
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
0
0
1
1
0
1
0
1
1
0
0
1
1
0
Type
Rst