
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
117 / 153
stdm
Description:
The DAC registers address (dac_sssc, dac_ossc, dac_ssoc, dac_osoc) in the internal
data memory map are split in two slices (dac value, offset register):
This instruction selects which slice(s) is accessed.
The dac4h4n_boost address in the internal data memory map can refer to three registers
(dac4h value, dac4neg value, dac boost value); this same instruction select which of the
three registers is accessed.
The dac_osoc_batt address in the internal data memory map can refer to two registers
(dac_osoc, adc batt result); this same instruction select which of the two register is
accessed.
dac_access_mode/dac4h_access_mode: the dac value (for the dac address) or the
dac4H value (for the dac4h4n_boost address) is accessed. The result is available in the
8 lower bits.
offset_access_mode/dac4neg_access_mode: the offset register (for the dac address) or
the dac4neg value (for the dac4h4n_boost address) is accessed. The result is available
in the 13-8 bits if reading an offset, in the 11-8 bits if reading dac4neg.
full_access_mode/dac4h4n_access_mode: both the dac value and the offset register (for
the dac address) or both the dac4h and the dac4n value (for the dac4h4n_boost address)
is accessed.
adc_batt_access_mode/dac_boost_access_mode: nothing (for the first three dac
address), the vbatt measurement adc result for the dac_osoc_batt address or the value
of the dac boost (for the dac4h4n_boost address) is accessed.
The ModeDAC reset value is dac.
Assembler syntax:
stdm ModeDAC;
Operands:
•
ModeDAC – Operand defines the DAC access mode
Operand label
Operand description
null
adc_batt_access_mode/dac_boost_access_mode
dac
dac_access_mode/dac4h_access_mode
offset
offset_access_mode/dac4n_access_mode
full
full_access_mode/dac4h4n_access_mode
Table 103. stdm 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
1
0
0
0
0
1
ModeDAC