STMicroelectronics STM32Cube PDM2PCM Software Library User Manual

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.


STMicroelectronics STM32Cube PDM2PCM Software Library User Manual - cover page
Brand
STMicroelectronics
Category
Audio Codec
Document type
User Manual
Language
English
Pages
21
File format
PDF
File size
422 KB
Published
20 October, 2023
Updated
20 October, 2023
MD5 checksum
E187D04B02406346D719BDEC3ED81223

About this manual

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.

What's inside

  • Module overview
  • Module interfaces
  • Algorithm description
  • Application description
  • Revision history

Specifications

Input PDM clock range768 kHz to 2.048 MHz
PCM output resolution16-bit
PCM sampling rate16 kHz
Supported microcontroller seriesSTM32F4, STM32F7, STM32H7
Decimation factors16, 24, 32, 48, 64, 80, 128
Microphone gain range-12 dB to +51 dB

Frequently asked questions

What microcontroller series is this library compatible with?

The library is compatible with STM32F4, STM32F7, and STM32H7 microcontroller series.

What is the PCM output resolution?

The PCM output stream is implemented with 16-bit resolution.

What are the supported decimation factors?

The supported decimation factors are 16, 24, 32, 48, 64, 80, and 128.

Download PDF (422 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →