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
129 / 153
stmfm (PT2001MAE only)
Description:
The stmfm instruction provides a way to switch the S_HSx and D_LSx multiplexer to the
predriver, which is currently set as a shortcut for the microcore calling the instruction.
In addition to this switching capability, it is possible to enable or disable the analog OAx
output of the device
Assembler syntax:
stmfm d_ls s_hs oax Switch;
Operands:
•
d_ls – Operand select the D_LSx multiplexer input
•
s_hs – Operand select the S_HSx multiplexer input
•
oax – Operand select the OAx used for the measurement function
•
Switch – Operand enable/disable the OAx (oa_enable)
Table 115. d_ls
Operand label
Operand description
Operand binary
value
sh2
D_LS of shortcut 2 selected
00
sh3
D_LS of shortcut 3 selected
01
agnd
AGND selected
10
keep
Setup not changed
11
Table 116. s_hs
Operand label
Operand description
Operand binary
value
sh1
S_HS of shortcut 1 selected
00
sh2
S_HS of shortcut 2 selected
01
agnd
AGND selected
10
keep
Setup not changed
11
Table 117. oax
Operand label
Operand description
Operand binary
value
oa1
OA_1 selected
00
oa2
OA_2 selected
01
non
No OAx are selected (they can be used for current
sense)
11