cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U575 and two PDM microphones on a single input

Nicholas Parker
Associate II

Hello,

I have a PCB with two microphones (IM66D132HV01) with an STM32U575RGT6 (64pin) micro.

Both microphones are connected (L+R) to a single input {PC0, PC2} = {MDF1_SDI4, MDF1_CCK1}

Firstly I cannot find any example code that produces output samples in the MDF1_Filter3->DFLTDR,  MDF1_Filter4->DFLTDR data registers -- they are always zero.

I can get the MCU to produce a clock signal and I can see a data bit stream coming to the MCU, from the microphones.       

As I was a bit stuck, I resorted to using CubeMX to hopefully get some working code --- however -- with CubeMX the common clock was no longer visible.

I also notcied that if I set up MDF1_F3, and MDF1_F4, that  I cannot tell CUBEMX that actually I only need the 'MDF1_SDI4' input since the two filters share the same MDF1_SDI4 bus (one outputs on low clock, the other on high).

Also,  I'm looking for some sample code that can give me interrupts for each of the left and right samples, as they are generated by the filter or some advice on how to confirm the serial bitstream is valid etc

Nick.

 

0 REPLIES 0