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
48 / 153
jcrr
Description:
Configures the jump to relative location on control register condition.
If the condition defined by the CrSel operand is satisfied according to the polarity Pol,
the program counter (uPC) is handled such as the next executed instruction is relative
destination 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:
jcrr Dest CrSel Pol;
Operands:
•
Dest – Operand defines the 5-bit relative destination address in the range of {–16, 15}.
•
CrSel – Operand defines the control register condition (Ctrl_reg_uc0 (101h, 121h) and
Ctrl_reg_uc1 (102h, 122h) registers) that triggers the jump.
Operand label
Operand description
Operand binary value
b0
Control register bit 0 (LSB)
0000
b1
Control register bit 1
0001
b2
Control register bit 2
0010
b3
Control register bit 3
0011
b4
Control register bit 4
0100
b5
Control register bit 5
0101
b6
Control register bit 6
0110
b7
Control register bit 7
0111
b8
Control register bit 8
1000
b9
Control register bit 9
1001
b10
Control register bit 10
1010
b11
Control register bit 11
1011
b12
Control register bit 12
1100
b13
Control register bit 13
1101
b14
Control register bit 14
1110
b15
Control register bit 15 (MSB)
1111
Pol – Operand defines the active polarity for the selected bit
Operand label
Operand description
Operand binary value
low
Active condition if the selected bit is '0'
0
high
Active condition if the selected bit is '1'
1