Post Go back to editing

ADuCM4050接收PCM数据问题

Thread Summary

The user is using the ADuCM4050's SPORT to receive PCM audio data from an ADAU7002 audio chip in TDM8 and TDM2 formats. The SPORT seems to automatically handle and filter out the invalid data, but the user seeks clarification on how this is achieved. The final answer suggests contacting Analog Devices support for detailed information on the ADuCM4050's operation.
AI Generated Content

在ADuCM4050上,使用SPORT作为音频信号PCM的接收端口,配置了BCLK为2.6MHz,LRCLK为2.6MHz,约为10kHz,时钟沿下采样,serial word length 为32位,MSB,DSP standard模式。

音频芯片按以下格式(TDM8)输出PCM数据,

使用1kHz的正弦波测试麦克风,打印接收到的数据,得到图:

接着重新配置音频芯片,按下面格式(TDM2)输出PCM数据

修改LRCLK分频为64,即BCLK 2.6MHz,LRCLK约为40kHz,其余参数保持不变。

同样使用1kHz正弦波测试麦克风。

由于我只使用了一个麦克风,所以只有Left为有效数据,按照TDM8和TDM2的格式,他们分别有7/8和1/2为无效数据(已经用示波器验证),需要在软件中去除。

但目前没有取有效数据,直接输出原始数据,得到上面两个波形图,在波形图中看不到无效数据部分。可以看到SPORT接收PCM数据时,似乎已经自动完成了“取有效数据”的操作。

请问SPORT具体是如何处理TDM8和TDM2数据的?是如何自动去除无效数据部分的?