简介:
SPI通信是串口外设接口的缩写。Motorola公司推出的一种同步串行接口技术,是一种高速的、全双工、同步的通信总线。四根线分别为MOSI、MISO、CLK、CS(片选)。
Data transfer starts with the falling edge of the CS signal. Execution of new input data is enabled on the rising edge of the CS signal. Data must appear at DI synchronized to CLK and is accepted on the falling edge of the CLK signal.LSB (bit 0, SRR) has to be transferred first.The output data at DO is enabled on the falling edge of CS. Output data will change their state with the rising edge of CLK and stay stable until the next rising edge of CLK appears. When CS is high, pin DO is in a tri-state condition. LSB (bit 0,TP) is transferred first.