
NXP Semiconductors
PT2001SWUG
PT2001 programming guide and instruction set
Please be aware that important notices concerning this document and the product(s)
described herein, have been included in section 'Legal information'.
© NXP B.V. 2019.
All rights reserved.
For more information, please visit: http://www.nxp.com
For sales office addresses, please send an email to: [email protected]
Date of release: 29 April 2019
Document identifier: PT2001SWUG
Contents
Introduction ......................................................... 1
Microcore programming description .................1
CRAM addressing mode ................................... 1
Arithmetic logic unit ........................................... 1
Arithmetic condition register .............................. 3
Start management ............................................. 4
Microprogram counter block .............................. 5
MicroPC ............................................................. 5
Auxiliary register ................................................ 6
Wait instructions ................................................ 6
Subroutine instructions ...................................... 7
Program flow (jump, Ldjr) instructions ............... 7
DataRAM access instructions ............................8
Arithmetic instructions ........................................9
Shift instructions .............................................. 10
Control, status, and flags instructions ..............10
Intercore communication instructions .............. 11
Shortcuts ..........................................................12
Current sense blocks .......................................12
Output drivers .................................................. 13
Interrupts ..........................................................14
Automatic interrupt ...........................................14
Driver disable interrupt .................................... 14
Software interrupt ............................................ 15
Counter/timers ................................................. 15
SPI back door ..................................................15
Instruction set and subsets ............................. 16
Internal registers operand subsets .................. 16
AluReg subset ................................................. 16
AluGprIrReg subset ......................................... 17
UcReg subset .................................................. 17
JpReg subset ...................................................18
Instruction set .................................................. 18
Mnemonic index .............................................. 19
Specific assembler language .........................142
Writing an instruction .....................................142
Inserting a comment field .............................. 143
Defining a constant ........................................143
Including a data RAM address definition file ...143
Using a line label ...........................................144
Numbering convention ...................................144
Conditional assembly .....................................144
Example source code .....................................146
Channel 1 - Ucore0 - controls injectors 1 and
2 .....................................................................146
Channel 1 - Ucore1 - controls injectors 3 and
4 .....................................................................146
Channel 2 - Ucore0 - DCDC control .............. 148
Channel 2 – Ucore1 – Fuel Pump Drive
Source Code ..................................................149
Revision history .............................................. 149
Legal information ............................................150