STM32F21xxx
Application block diagrams
A.5
Complete audio player solutions
Two solutions are offered, illustrated in Figure 87 and Figure 88.
Figure 87 shows storage media to audio DAC/amplifier streaming using a software Codec.
This solution implements an audio crystal to provide audio class I2S accuracy on the master
clock (0.5% error maximum, see the Serial peripheral interface section in the reference
manual for details).
Figure 87. Complete audio player solution 1
XTAL
25 MHz
or 14.7456 MHz
USB
Mass-storage
device
MMC/
SDCard
Cortex-M3 core
up to 120 MHz
Program memory
OTG
(host
mode) +
PHY
SPI/
FSMC
File
System
Audio
CODEC
User
application
SPI
GPIO
I2S
LCD
touch
screen
Control
buttons
DAC +
Audio
ampli
Figure 88 shows storage media to audio Codec/amplifier streaming with SOF
synchronization of input/output audio streaming using a hardware Codec.
ai16039c
Figure 88. Complete audio player solution 2
XTAL
25 MHz
or 14.7456 MHz
USB
Mass-storage
device
SOF
MMC/
SDCard
Cortex-M3 core
up to 120 MHz
SPI/
FSMC
OTG
+
PHY
Program memory
File
System
GPIO
I2S
SPI/
FSMC
User
application
SOF synchronization of input/output
audio streaming
1. SOF = start of frame.
LCD
touch
screen
Control
buttons
Audio PLL
+DAC
Audio
ampli
ai16040c
Doc ID 17050 Rev 8
157/173