1, SPI communications protocol specification
SPI is the Serial Peripheral Interface Abbreviation, i.e., a serial peripheral interface. SPI is a high-speed full-duplex communication bus.
SPI communications requires only . 4 lines, are as follows:
The CS : chip select signals from the control output by the master device.
The SCLK : clock signal generated by the master device.
The MOSI : the master data output from the data input device.
The MISO : Master data input, data output from the device.