temp = (Stream_Buff[Out_Data_Offset] )| (Stream_Buff[Out_Data_Offset+1] << 8);
SPI_I2S_SendData(SPI2, temp);
Stream_Buff[Out_Data_Offset]=0;
Stream_Buff[Out_Data_Offset+1] = 0;
Out_Data_Offset = Out_Data_Offset + 2;
//In_Data_Offset++;
}
else
{
temp = (Stream_Buff[Out_Data_Offset] )| (Stream_Buff[Out_Data_Offset+1] << 8);
SPI_I2S_SendData(SPI2, temp);
}
Stream_Buff缓冲区放的是usb送过来的数据,spi发数据,出现杂音,是不是时钟的时序上还是有点误差,请问怎么解决 |