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
121 / 153
stfw
Description:
Defines the freewheeling output modes. Freewheeling control is automatic or manual
according to the FwMode operand.
For each HS there are two possible freewheeling outputs. The output is selected in the
fw_link (refer to Fw_link (169h)) register. The FwMode operand is a Boolean defining the
control mode:
if Shortcut1 is HS1, then LS5 is set as freewheeling predriver
if Shortcut1 is HS2, then LS6 is set as freewheeling predriver
if Shortcut1 is HS3, then LS7 is set as freewheeling predriver
if Shortcut1 is HS4, then HS5 is set as freewheeling predriver
if Shortcut1 is HS5, then LS4 is set as freewheeling predriver.
The shortcuts are set using the dfsct instruction.
This operation is successful only if the microcore has the right to drive the output it has
defined as shortcut1 (output access register).
The FwMode reset value is manual.
Assembler syntax:
stfw FwMode;
Operands:
•
FwMode – Operand defines the freewheeling mode
Operand label
Operand description
manual
Freewheeling manual control
auto
Freewheeling automatic control
Table 107. stfw 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
1
0
0
0
FwMode
Source code example: