Code: Select all
spi_device_transmit(myspi_handle, &t);
spi_device_transmit(myspi_handle, &t);
假如使用软件CS,虽然CS信号没有拉高了,但是传输数据时还会多传输原来CS拉高的那段时间。
代码修改如下:
Code: Select all
.spics_io_num=-1//将.spics_io_num=HSPI_SS变为此代码
Code: Select all
spi_device_transmit(myspi_handle, &t);
spi_device_transmit(myspi_handle, &t);
Code: Select all
.spics_io_num=-1//将.spics_io_num=HSPI_SS变为此代码
Users browsing this forum: No registered users and 158 guests