Skip to main content
Visitor II
April 1, 2022
Question

DMIC and PDM to PCM Problem

  • April 1, 2022
  • 1 reply
  • 1430 views

Hi everyone, I have some question about DMIC and PDM to PCM audio output.

My Board is STM32H735-dk board, and scenario is below:

  1. Using on board MP34DT01TR-M DMIC through PDM interface to SAI4 input PDM data (16kHz input, 1 channel)
  2. PDM data to PCM data
  3. Codec Output (16kHz output, 1 channel)

Q1: I have already successful get DMIC data from my SAI_RX_BUFFER, but how to check the data correctly?

Q2: Use PDM2PCM function then DMA to Codec but only noise output.

Codec setting already can play audio file to headphone, and DMIC setting had follow spec, so I have no ideal where's incomplete.

    This topic has been closed for replies.

    1 reply

    Visitor II
    April 4, 2022

    Hello @LKuo.2​ ,

    You can refer to the following BSP example on the audio recording part that is provided under the CubeFW H7:

    • Path: Projects\STM32H747I-EVAL\Examples\BSP

    This may help you.

    Best Regards,

    Walid

    LKuo.2Author
    Visitor II
    April 6, 2022

    Hi Walid,

    I rebuild all setting but my SAI_RX_BUFFER has no data, sai callback have interrupt, but still no data. Any idea?

    BR,

    Leon Kuo