May 2008 Rev 1 1/26
AN2739
Application note
How to use the high-density STM32F103xx microcontroller
to play audio files with an external I²S audio codec
Introduction
This application note describes how to use the high-density STM32F103xx I
2
S feature to
play audio files using an external codec.
The I
2
S protocol is widely used to transfer audio data from a microcontroller/DSP to an
audio codec in order to play melodies (stored in a memory) or, to capture analog sound
(from a microphone).
The high-density STM32F103xx allows I
2
S audio communications using the SPI peripheral,
and implements specific functionalities for this communications mode.
The first, preliminary section of this application note may be skipped by advanced users.
Note: Throughout this document, and unless otherwise specified, the term of I
2
S will be used to
refer to the I
2
S feature of the SPI peripheral that is implemented in high-density
STM32F103xx microcontrollers.
www.st.com