Question
Anyone familiar with Audio codecs, specifically the audio codec( WM8994 ) on the STM32F7 discovery board?
Posted on July 19, 2015 at 21:44
Hi All! I am having a hard time making the communication between the audio codec and the microprocessor to work.
I was able to configure the audio codec to output the audio picked up by two digital mics directly to the headphone jack through the digital sidetone path. Now, I would like to send the mic data to the micro controller to do some signal processing. However, I don't really know how the audio codec outputs the raw digital mic data through AIF1 interface so that I can properly configure the SIA2 to receive it. I know the data coming from the digital mics is in PDM format. Here is how I have configured the audio codecAIF1 is set to operate as a slave.Audio Protocol ----> I2S StandardSampling Rate ----> 48kHzData Size -----> 16 bitsDisabled Timeslot 0 and enabled Timeslot 1 to receive the mic data.On the Microcontroller side, I have configured he SAI2 as followsSAI2_BlockA -- Master TXSAI2_BlockB -- Slave RX ( Synchronus with BlockA)MCLK -- ~13 MhzBCLK -- ~3 MhzTotal Slots -- 4Frame Length -- 64Data Size(bits) -- 16 Please let me know if more details are required. Thanks