cancel
Showing results for 
Search instead for 
Did you mean: 

Transferring PDM_OUT from MP45DT02 to CS43L22

JtotheF
Associate

I want to access PDM_OUT data from the MP45DT02 and output this on the CS43L22. For this I want to use the I2S protocol but I have difficulties connecting the MP45DT02 to the I2S mode and using the HAL_I2S_Receive function. How do you initialize the I2S mode?

1 REPLY 1
Eleon BORLINI
ST Employee

Hi @JtotheF​ , your aim is to decode the PDM (pulse density modulated) output of the MEMS microphone and convert into analog signal, right? Before using I2S protocol, which is based on PCM (pulse code modulated) protocol, you first need to convert PDM into PCM data format. I'm not an expert on CS43L22 device, but I don't think this is a pure digital codec, so you should do the conversion PDM-to-PCM via software. On ST site, there is a free conversion tool at this link. I can also see that there are a few examples online, if you have not already checked them (here / here, for example), involving the control of the CS43L22 via STM32. Regards