
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
40 / 153
endiags
Description:
Enables or disables the automatic for the outputs selected via shortcuts. Four events can
be monitored in parallel:
•
The drain-source voltage on shortcut1 output (Diag_sh1_vds)
•
The source voltage on shortcut1 output (Diag_sh1_src)
•
The drain-source voltage on shortcut2 output (Diag_sh2_vds)
•
The drain-source voltage on shortcut3 output (Diag_sh3_vds)
If automatic diagnosis condition is satisfied, the related interrupt procedure for error
handling is triggered. The shortcuts are defined with the dfsct instruction.
The operation is successful only if the microcore has the right to drive the related outputs.
The drive right is granted by setting the related bits in the Out_acc_ucX_chY (184h,
185h, 186h, 187h) configuration registers.
At reset the automatic diagnosis are disabled.
Assembler syntax:
endiags Diag_sh1_vds Diag_sh1_src Diag_sh2_vds
Diag_sh3_vds;
Operands:
•
Diag _sh1_vds, Diag_sh2_vds and Diag_sh3_vds – Operands corresponding to the
shortcuts related to V
DS
to be monitored.
Operand label
Operand description
keep
No changes, maintains the previous setting
off
Automatic diagnosis disabled
on
Automatic diagnosis enabled
Diag_sh1_src – Operand corresponding to the shortcuts related to V
SRC
to be monitored.
Operand label
Operand description
keep
No changes, maintains the previous setting
off
Automatic diagnosis disabled
on
Automatic diagnosis enabled
Table 42. endiags instruction format
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
0
0
1
0
0
1
1
0
Diag_
sh1_vds
Diag_sh1_src
Diag_
sh2_vds
Diag_
sh3_vds