
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
110 / 153
stadc
Description:
Enables or disables the ADC conversion mode on the specified current measurement
block. The other channel is selected by SPI register bit (Dac_rxtx_cr_config (112h, 132h,
152h))
The operation is successful only if the microcore has the right to access the related
current measurement block. The access right is granted by setting the related bits in the
Cur_block_access_partX register (166h, 167h, 168h).
The reset value of AdcMode is off.
Assembler syntax:
stadc AdcMode DacTarget;
Operands:
•
AdcMode – Operand activates the ADC mode on the selected current measurement
block
Operand label
Operand description
off
The current measurement block compares the current flowing in the actuator
with a threshold (nominal behavior).
on
The current measurement block performs an analog-to-digital conversion of
the current flowing in the actuator
•
DacTarget – Operand defines the current measurement block DAC to be set in ADC
mode
Operand label
Operand description
sssc
DAC of the same microcore same channel
ossc
DAC of the other microcore same channel
ssoc
DAC of the same microcore other channel
osoc
DAC of the other microcore other channel
Table 98. stal 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
0
1
1
0
1
AdcMode
DacTarget
Source code example: