This user manual describes the PDM2PCM library, which is part of the STM32Cube firmware package. It provides details about the interface parameters and the configuration of the library. It also shows how to integrate this library into a main program. This document is applicable to the microcontrollers that allow the user to connect a digital PDM microphone, namely those of STM32F4, STM32F7 and STM32H7 Series.
This user manual describes the STM32Cube PDM2PCM software library, which converts Pulse Density Modulated (PDM) audio from MEMS microphones into Pulse Code Modulated (PCM) audio. It is designed for STM32F4, F7, and H7 microcontrollers. The library includes APIs for initialization, configuration, and processing, with support for configurable decimation factors, high-pass filtering, and digital volume control. The manual provides integration instructions and details on memory and frequency requirements for different PDM clock speeds.
The library is part of the STM32Cube firmware package and requires specific header and library files for integration. It uses a synchronous serial port (SPI or I2S) to acquire PDM data. The manual includes tables for configuration parameters, error codes, and performance measurements, as well as a flowchart for module integration.
| Input PDM clock range | 768 kHz to 2.048 MHz |
|---|---|
| PCM output resolution | 16-bit |
| PCM sampling rate | 16 kHz |
| Supported microcontroller series | STM32F4, STM32F7, STM32H7 |
| Decimation factors | 16, 24, 32, 48, 64, 80, 128 |
| Microphone gain range | -12 dB to +51 dB |
The library is compatible with STM32F4, STM32F7, and STM32H7 microcontroller series.
The PCM output stream is implemented with 16-bit resolution.
The supported decimation factors are 16, 24, 32, 48, 64, 80, and 128.