
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
16 / 153
door. The spi_access_controller receives all the register read/write requests, from the
SPI interface and from all the enabled microcores. Top priority is given to the requests
coming from the SPI interface.
To read a SPI register, first the eight LSBs of the address must be provided in the eight
LSBs of the 'SPI address' at an internal memory map address to the
instruction. A
read operation must be requested with the
instruction. The result is available at the
'SPI data' address of the internal memory map. Note that it is necessary to wait one clk
cycle to make sure the spi_data register is updated.
To write to a SPI register, first the eight LSBs of the address must be provided in the
eight LSBs of the 'SPI address' address, and the data to write must be provided at the
instruction. A write operation must be requested with the
instruction. Both the SPI read and write operations are two cycle operations. The
registers must not be changed while the operation is in progress.
If the SPI back door is not used, the 8-bit register at the address 'SPI address' and the
16-bit register at the address 'SPI data' can be used as spare register.
Table 23. SPI back door instructions
SPI read request
Select SPI address
SPI write request
3 Instruction set and subsets
3.1 Internal registers operand subsets
This section details the predefined microcore register subsets used as instruction
operands in Direct Addressing mode (DM).
Table 24. Operand subset overview
Operand label
Operand subset description
AluReg
Register designator for registers r0, r1, r2, r3, r5, r5, ir, mh, and ml
AluGprIrReg
Register designator for registers r0, r1, r2, r3, r5, r5, and ir
UcReg
Register designator for registers r0, r1, r2, r3, r5, r5, ir, mh, ml, ar (arith_reg),
aux, jr1, jr2, cnt1, cnt2, cnt3, cnt4, eoc1, eoc1, eoc3, eoc4, flag, cr (ctrl_reg),
sr (status_bits), spi_data, dac_sssc, dac_ossc, dac_ssoc, dac_osoc/batt,
dac4h4n/boost, spi_add, irq (irq_status), and rxtx (ch_rxtx)
JpReg
Register designator for registers jr0 and jr1
3.1.1 AluReg subset
Table 25. AluReg subset description
Register label
Operand binary value
r0
000
r1
001
r2
010
r3
011