Arduino SPI参考
arduino教程-9. 串行外设接口(spi)_acktomas的博客-CSDN博客_arduino spi
《Arduino》SPI模块官方手册_zxx的专栏-CSDN博客_arduino spi
https://diyi0t.com/spi-tutorial-for-arduino-and-esp8266/
不足的是,以上没有涉及SPI SPSR。关于SPI SPSR 讲解比较清楚的链接如下。
https://web.csulb.edu/~hill/ee470/Lab%202b%20-%20ATmega328P%20SPI%20Serial%20Communications.pdf
以及,没有涉及到如何收数据。
“You receive at the same time you send. Every time the clock pin goes active the Slave grabs the data on the MOSI line and shifts it into a shift register while the Master grabs the data from the MISO line and shifts it into a shift register. After 8 clocks the SPI.transfer() returns the data that was received during that send.”
https://forum.arduino.cc/index.php?topic=260836.0
在发送的过程,也在接收。但是这个时间差会导致什么呢?