This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

28335 McBsp一帧包含多个字时如何保证数据对齐?

硬件上McBSP接8个通道的24bitADC,使用32位字长,帧长8个字,如何保证接收的数据是按照ADC1,ADC2……ADC8这样的顺序接收的,而不会因为一次的干扰(如帧同步信号受到干扰),导致之后接收数据都错位?

我现在的方式是用非DMA方式,McBSP每次接收到数据后将数据存入缓冲区AdcBuf[index++],帧同步信号和一个外部中断引脚相接,接收到外部中断后清零index=0;将AdcBuf[]数据存入接收缓冲区。这种方式效率低,如果采用DMA方式该如何操作,才能保证数据对齐