cancel
Showing results for 
Search instead for 
Did you mean: 

Getting data from SAI interface (microphone array)

erysv
Associate II

Hi. I want to make microphone array with 16 ICS-52000 microphones connected to STM32L476RG. I made 16 PCB's and now I want to test each microphone and display some data in console just to see if they just work properly. Below is my SAI config:

erysv_0-1698606561673.png

ICS-52000 MEMS mics have TDM interface wirh 24bit data.

First time using SAI interface and it's a little bit confusing to me. I've tried to use HAL_SAI_Receive() function to get data, and store it in uint8_t data variable, but it didn't work.

How to do it properly?

Thanks for help!

 

2 REPLIES 2
Pierre_Paris
ST Employee

Hello @erysv,

Here are some remark to help you :

  • Have you consider the stm32CubeL4 package and example code ?
  • For your first time, you can also consult the "Getting started" wiki article found here.
  • Have you consider the chapter 43 : SAI of the RM0351?

Best Regards,

Pierre

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Thank you for your reply,

I'll check this, because I had problem with finding examples that use SAI.