
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
33 / 153
cwer
Description:
Initializes or changes a row in the wait table used by the wait instruction The wait table is
a six-row/two-column table:
•
The first column contains the wait conditions
•
The second column contains the destination jump addresses
Up to five conditions can be checked at the same time.
When the condition Cond is satisfied and the entry is enabled, the execution continues at
the correspondent destination jump address.
The jump is relative to the instruction Code RAM location. The destination address is the
actual instruction Code RAM location added to the Dest operand value. This 5-bit value
is a two's complemented number. The MSB is the sign. So Dest operand value is in the
range of {–16, 15}.
Assembler syntax:
cwer Dest Cond Entry ;
Operands:
•
Dest – Operand defines the 5-bit relative destination address in the range of {–16, 15}
•
Cond – Operand defines the condition to be satisfied to enable the jump far
Operand label
Operand description
Cond operand
_f0
Flag 0 low
_f1
Flag 1 low
_f2
Flag 2 low
_f3
Flag 3 low
_f4
Flag 4 low
_f5
Flag 5 low
_f6
Flag 6 low
_f7
Flag 7 low
_f8
Flag 8 low
_f9
Flag 9 low
_f10
Flag 10 low
_f11
Flag 11 low
_f12
Flag 12 low
_f13
Flag 13 low
_f14
Flag 14 low
_f15
Flag 15 low
f0
Flag 0 high
f1
Flag 1 high
f2
Flag 2 high