
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
141 / 153
wrspi
Description:
Requests an SPI backdoor write.
The address must previously be defined in the SPI address register spi_add.
The data must previously be defined in the SPI data register spi_data.
The wrspi instruction requires 2 ck cycles to complete. The SPI address register and SPI
data register must not be changed on the following instruction, otherwise the operation
fails and the written data is dummy.
Assembler syntax:
wrspi;
Table 127. wrspi 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
0
1
0
0
0
0
0
1
Source code example: