Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/140.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ I2S,如何避免FIFO不足?can';我不懂参考资料_C++_Buffer_Fifo_Mbed - Fatal编程技术网

C++ I2S,如何避免FIFO不足?can';我不懂参考资料

C++ I2S,如何避免FIFO不足?can';我不懂参考资料,c++,buffer,fifo,mbed,C++,Buffer,Fifo,Mbed,我正试图通过I2S从我的K64F进行传输。我不完全理解参考资料的这一部分: If the Transmit FIFO is empty, the TDR [Transmit Data Register] must be written at least three bit clocks before the start of the next unmasked word to avoid a FIFO underrun. 每当我尝试发送数据时,我都会注意到设置了FIFO错误标志(指示是否发生

我正试图通过I2S从我的K64F进行传输。我不完全理解参考资料的这一部分:

If the Transmit FIFO is empty, the TDR [Transmit Data Register] must be 
written at least three bit clocks before the start of the next unmasked
word to avoid a FIFO underrun.
每当我尝试发送数据时,我都会注意到设置了FIFO错误标志(指示是否发生欠载),但我不确定如何完成上面所述的操作


(1753页)

我不知道;I don’我不太了解微控制器或数据表,但粗略地看一下就会发现有FIFO请求标志和中断,您是否轮询或接收到来自该标志的中断,并将更多数据放入Tx FIFO?是的,中断调用,我可以添加更多数据,但即使同时写入1重置FIFO错误标志,它会立即重置,表示FIFO不足。您是在填充FIFO还是只在其中添加一个字?添加8个字。每次检查并重置标志。