Introduction - If you have any usage issues, please Google them yourself
This program is mainly to explain the SPI bus. SPI (Serial Peripheral Interface- Serial Peripheral Interface) bus system is a synchronous serial peripheral interface, which allows MCU with a variety of peripheral devices in a serial manner to communicate to exchange information. The interface is generally used four lines: a serial clock line (SCLK), master input/slave output data lines MISO, master output/slave input data lines MOSI and active-low slave select lines NSS (some SPI interface chip with interrupt signal line INT, and some do not host SPI interface chip output/slave input data lines MOSI). Many chips use SPI communication, such as voice chips. Mastered the basic operations SPI bus operation for those chips is very simple.