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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

2,029件の閲覧回数
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,436件の閲覧回数
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,436件の閲覧回数
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 件の賞賛
返信