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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

2,194 Views
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

Labels (1)
Tags (3)
0 Kudos
Reply
2 Replies

1,601 Views
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 Kudos
Reply

1,601 Views
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 Kudos
Reply