What does NXP spi need to configure?

SPI (Serial Peripheral Interface) is a high-speed, full-duplex serial communication bus proposed by Motorola. The standard SPI has four lines, namely clock line (CLK), chip select (CS), data output (DO) and data input (DI). Later, on the basis of standard SPI, Motorola proposed dual-channel SPI and four-channel SPI. At present, serial flash of many manufacturers has supported these three types of SPI. According to the naming rules, models with Q are generally supported, such as Winbond W25Q 18.

Standard SPI: CLK, /CS, DI, DO, /WP, /Hold.

Dual channel SPI: CLK, /CS, IO0, IO 1, /WP, /Hold.

Four-channel SPI: CLK, /CS, IO0, IO 1, IO2 and IO3.

Standard SPI:

CLK (serial clock): clock line.

/CS (Chip Selection): Chip Selection Interface.

DI (serial data input): data input port.

DO (serial data output): output port.

/WP: write-protected pin

/Hold: hold pin

DSPI:

Add io0-io 1 data line.

QSPI:

Add IO0—IO3 data line.

From the above, we can find that SPIFI and QSPI are similar, and the descriptions of SPIFI and QSPI are also mentioned in NXP's data sheet, but SPIFI is specially applied to serial flash memory, and QSPI can be applied to various peripherals supporting QSPI. For various reasons, QSPI is either a patent or has its own MCU characteristics. NXP should improve QSPI and derive the tall name "SPIFI". Therefore, if you have used QSPI before, it is easy to understand the usage of SPIFI. However, NXP's promotion of SPIFI is a very powerful patent, which took a long time to develop. The underlying code is not open source, but is provided in the form of a library, so just call the library API when using it.