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
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