ESP8266 技术参考手册中SPI example code有疑问

f4568525153
Posts: 7
Joined: Mon May 15, 2017 8:51 am

ESP8266 技术参考手册中SPI example code有疑问

Postby f4568525153 » Fri Jun 02, 2017 5:46 pm

大家好

我照着ESP8266 技术参考手册中第4章的spi_master_test()、spi_slave_test()、spi_slave_isr_sta()
结果与手册中 图4.4一样结果

但程序代码中,slave 回传
sndData[0] = 0x35343332;
sndData[1] = 0x39383736;
sndData[2] = 0x3d3c3b3a;
sndData[3] = 0x11103f3e;
sndData[4] = 0x15141312;
sndData[5] = 0x19181716;
sndData[6] = 0x1d1c1b1a;
sndData[7] = 0x21201f1e;


但Master端收到结果
Recv Slave data0[0x38373635]
Recv Slave data1[0x3c3b3a39]
Recv Slave data2[0x103f3e3d]
Recv Slave data3[0x14131211]
Recv Slave data4[0x18171615]
Recv Slave data5[0x1c1b1a19]

经过几番测试,前面3Bytes都不见了

想请问一下原因在哪?

Who is online

Users browsing this forum: No registered users and 11 guests