About SPI interface SPI (Serial Peripheral Interface - Serial Peripheral Interface) bus system is a synchronous serial peripheral interface, which can make the MCU with a variety of peripherals to communicate in order to exchange information in a serial manner. SPI has three registers: the control register SPCR, status register SPSR, data register SPDR. Peripheral devices include FLASHRAM, network controller, LCD display drivers, A / D converter, and the MCU. SPI bus system can direct production of a variety of standard peripheral devices directly interface with various manufacturers, the interface is generally use four lines: a serial clock line (SCLK), the host input / host from the the machines output data lines MISO output / slave input data lines MOSI and active-low slave select line SS (SPI interface chip with interrupt signal line INT, some SPI interface chip does not master output / slave input data lines MOSI). SPI interface stands for "Serial Peripheral Interface", meaning the Serial Peripheral Interface, is Motorola's First in its MC68HCXX series processors defined. The SPI interface is mainly used in the EEPROM, FLASH, real-time clock, AD converter, digital signal processors and digital signal decoder. SPI interface synchronous serial data transfer between the CPU and peripheral low-speed devices in the master's shift pulse data bit transmission, the previous high, low in overall full-duplex communication, data transmission speed speaking faster than the I2C bus speed up to several Mbps. |