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
74 / 153
ldca
Description:
Loads one of the four end-of-count registers (eoc1, eoc2, eoc3, eoc4) defined by the
operand with a value stored in a ALU register op1 and sets the outputs defined by the
shortcut Sh1 and Sh2.
Assembler syntax:
ldca Rst Sh1 Sh2 op1 Eoc;
Operands:
•
Rst – Operand (Boolean) defines if the selected counter value must be reset to zero or
must be unchanged.
Operand label
Operand description
_rst
The counter value is maintained, only the end-of-counter is modified
rst
The counter value is reset to zero and starts to count from zero
Sh1, Sh2 – Operands set the first and second shortcuts related to the corresponding
outputs. The output shortcuts are defined using the dfsct instruction.
Operand label
Operand description
keep
No changes, maintains the previous setting
off
Shortcut (1 or 2) turns OFF
on
Shortcut (1 or 2) turns ON
toggle
Reverse the previous setting
op1 – One of the registers listed in the operand
Eoc – Operand defines the end-of-count targeted among the four counters available.
Operand label
Operand description
c1
Register eoc1
c2
Register eoc2
c3
Register eoc3
c4
Register eoc4
Table 63. ldca instruction format
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
1
0
1
Rst
Sh1
Sh2
Eoc
op1
1
0
0