
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
138 / 153
wait
Description:
Stops the program counter (uPC) incrementing and waits until at least one of the enabled
wait conditions is satisfied. When one of the conditions is satisfied, the program counter
is moved to the corresponding destination.
The possible wait conditions, along with the corresponding destinations, are stored in the
wait table by means of the cwer and cwef instructions.
The active wait table rows are enabled according to the WaitMask 6-bit operand.
Assembler syntax:
wait WaitMask;
Operands:
•
WaitMask – Operand defines the active wait table rows
Operand label
Operand description
Operand binary value
always
No wait table row enabled, infinite loop
000000
row1
Wait table row 1 enabled
000001
row2
Wait table row 2 enabled
000010
row12
Wait table row 1,2 enabled
000011
row3
Wait table row 3 enabled
000100
row13
Wait table row 1,3 enabled
000101
row23
Wait table row 2,3 enabled
000110
row123
Wait table row 1,2,3 enabled
000111
row4
Wait table row 4 enabled
001000
row14
Wait table row 1,4 enabled
001001
row24
Wait table row 2,4 enabled
001010
row124
Wait table row 1,2,4 enabled
001011
row34
Wait table row 3,4 enabled
001100
row134
Wait table row 1,3,4 enabled
001101
row234
Wait table row 2,3,4 enabled
001110
row1234
Wait table row 1,2,3,4 enabled
001111
row5
Wait table row 5 enabled
010000
row15
Wait table row 1,5 enabled
010001
row25
Wait table row 2,5 enabled
010010
row125
Wait table row 1,2,5 enabled
010011
row35
Wait table row 3,5 enabled
010100
row135
Wait table row 1,3,5 enabled
010101
row235
Wait table row 2,3,5 enabled
010110
row1235
Wait table row 1,2,3,5 enabled
010111
row45
Wait table row 4,5 enabled
011000
row145
Wait table row 1,4,5 enabled
011001