![NXP Semiconductors PT2001 Programming Manual And Instruction Set Download Page 125](http://html1.mh-extra.com/html/nxp-semiconductors/pt2001/pt2001_programming-manual-and-instruction-set_1721725125.webp)
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
125 / 153
stoc
Description:
Enables or disables the offset compensation with the operand Ctrl on the current
measurement block specified according to the DacTarget operand.
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_part1 register (188h), and Cur_block_access_2 Register (189h).
The other channel is selected by SPI register bit (refer to Dac_rxtx_cr_config (112h,
132h)).
The Ctrl reset value is off for all current measurement blocks.
Assembler syntax:
stoc Ctrl DacTraget;
Operands:
•
Ctrl – Operands sets offset compensation state
Operand label
Operand description
off
Disable the offset compensation
on
Enable the offset compensation
•
DacTarget – Operand defines the current measurement block
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 111. stoc 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
0
1
0
Ctrl
DacTarget
Source code example: