How to read audio data from a mic using SAI / I2S

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to read audio data from a mic using SAI / I2S

1,793 次查看
mikeross
Contributor I

Hello,

 

I am working with MK82FN256VLL15 MCU. I am trying to read the audio data from a MIC using SAI/I2S protocol. 

Using a logic analyzer I could see the data being transmitted from mic to the MCU.  But when I print the buffer I get only zeros.

I have attached the screenshot of from the logic analyzer and also the code.

 

Any help is very much appreciated.

 

Thank you in advance

Mike

Original Attachment has been moved to: i2s_mic.c.zip

标签 (1)
标记 (3)
0 项奖励
2 回复数

1,200 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Mike,

Sorry for the delay, I have the code based on TWR-K64F, you can refer to the I2S receiver part. The code is assumed that the I2S bit clock and frame clock are output from K64, each frame has two slots, each slots includes 32 bit clock, the frame clock signal convers 32 bit clock.

Hope it can help you

BR

XiangJun Rong

0 项奖励

1,200 次查看
mikeross
Contributor I

Is anyone working on #i2s/sai‌, can you please help me troubleshoot this problem with communication between the MCU and the mic? 

0 项奖励