STMicroelectronics AN2931 ADPCM Algorithm Application Note

This application note describes the ADPCM audio firmware codec, and provides a demonstration firmware showing how to play ADPCM files using the high-density STM32F103xx I2S feature with an external DAC.


STMicroelectronics AN2931 ADPCM Algorithm Application Note - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
Application Note
Language
English
Pages
15
File format
PDF
File size
156 KB
Published
07 August, 2012
Updated
30 September, 2023
MD5 checksum
16F9CB778623DEB6CA4246C00E429555

About this manual

The document details the implementation of the IMA ADPCM algorithm, which encodes 16-bit PCM samples into 4-bit ADPCM samples to achieve a compression rate of 4. It covers the general overview of the algorithm and describes two specific functions: `ADPCM_Encode` for coding audio and `ADPCM_Decode` for decoding.

What's inside

  • ADPCM algorithm
  • General overview
  • ADPCM algorithm implementation
  • ADPCM_Encode function
  • ADPCM_Decode function
  • Implementation example
  • ADPCM file generation
  • ADPCM file loading

Specifications

Audio format inputPCM
Audio sample size16 bits
Channels1 (mono)
Audio sample rate range8 kHz to 44.1 KHz
Compression rate4

Frequently asked questions

What ADPCM algorithm is used in this note?

The IMA ADPCM algorithm developed by the Interactive Multimedia Association.

What is the compression rate of this implementation?

The compression rate is equal to 4.

Which microcontrollers are supported?

The implementation is designed for high-density STM32F103xx microcontrollers.

Download PDF (156 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →