Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Volume 1, Issue 2
In this Issue:
ggBringing 32-bit Performance to 8- and 16-bit Applications
ggDeveloping High-Quality Audio for Consumer Electronics Applications
ggBringing Floating-Point Performance and Precision to Embedded Applications
gg
gg
!
"
#
$
%
ggIntroducing a Graphical User Interface to Your Embedded Application
STM32 Journal
)
(
%&
"'
"
)!
"
'
&
/
&%
&'
.)'
'
&(
(
.
to an embedded application
implementing advanced filters
requires digital signal-processing
and processing algorithms,
capabilities beyond the capabilities
$(
;&<
&"
!
&!
!
+"
=
"
&!
>?>@
&
(
"
+"
(
Level matching: Level matching
eliminates the need for users to
J"
"
11
STM32 Journal
"M
"
"(
Digital audio has commonly
been implemented in consumer
electronics and embedded
applications using a second
&
!(
!
&"'
&
"
&&
(
.
NK'
)
!
'
$
ART Accelerator
System
Power supply
1.2 V regulator
POR/PDR/PVD
Xtal oscillators
32 kHz + 4 ~26 MHz
Internal RC oscillators
32 kHz + 16 MHz
PLL
Clock control
RTC/AWU
SysTick timer
2x watchdogs
(independent and window)
51/82/114/140 I/Os
Cyclic redundancy
check (CRC)
Up to 192-Kbyte SRAM
STM32 F4
FSMC/SRAM/NOR/NAND/CF/LCD
parallel interface
ARM Cortex-M4
168 MHz
Camera interface
3x SPI, 2x I2S, 3x I2C
Ethernet MAC 10/100
with IEEE 1588
2x CAN 2.0B
1x USB 2.0 OTG FS/HS
1x USB 2.0 OTG FS
SDIO
6x USART
LIN, smartcard, lrDA,
modem control
Connectivity
MPU
JTAG/SW debug/ETM
Multi-AHB bus matrix
16-channel DMA
Control
2x 16-bit motor control
PWM
Synchronized AC timer
10x 16-bit timers
2x 32-bit timers
Crypto/hash processor
Analog
2-channel 2x 12-bit DAC
3x 12-bit ADC
24 channels / 2.4 MSPS
Temperature sensor
Figure 1
)
%&
)R?
$
$
%
"
&&
$
&
/
&'
'
&&
(
&&
(
$
&=
)R?
$
X
"
Architecture
)R?
"
"
&!'
!
'
&(
)R?
KZ'
#
$
%Z
&
"&
>[@
\/'
&!
0
K "
>4(
12
STM32 Journal
Max
Min
Discrete DSPs
Cortex-M4
Specialised Audio DSPs
0
10
15
20
25
30
Figure 2
N
$
%Z
'
)R?
KZ
O
%
"
&
&
%
&
&"&
$
)(
)R?
KZ
O
%
&
)R?
KZ
KZ'
&
"&
>jk
)&=
&
(
.
"
&
)(
13
STM32 Journal
The bus
size of the processor has a
tremendous impact on both
performance and power
(
"
)'
%&'
+"
&
0Z
"
&
R
4
J"
&
R?
%
R?
"
&
(
)R?
KZ
%"
R?
$
0"
&
DMA_P2
DMA_P1
DMA_MEM2
64 Kbytes SRAM
System
Data
Instructions
168 MHz
MHz
120
DMA_MEM1
GeneralGeneralEthernet
USB OTG
purpose
purpose
MAC 10/100
HS
DMA2
DMA1
DMA
DMA
8 channels 8 channels
Bus masters
100 Mbit/s
480 Mbit/s
12.5 MByte/s 60 MByte/s
Bus Slaves
FSMC
AHB2 peripheral
AHB1/APB1
AHB1 peripheral
AHB1/APB2
SRAM 16 Kbytes
SRAM 112 Kbytes
672 MByte/s D
672 MByte/s I
ART
Accelerator
Cortex-M4
with CPU
Floating-Point Unit:
)R?
KZ
5
&
"
0K4(
N
&
&&
&%
"5
5
"
(
.
'
=%&
&
O
"
"
(
N
$
5
&
D
I
Flash
1 Mbyte
Figure 3
"
%
)R?
$
&&
"
"
"
&
"
+"
$(
&
)R?
$
"
&
&&
!
&
&(
processing is maintaining
5(
.
&&
!
"
$(
K "
"
&!
&
3 shows the high level of
(
%"
)#
0 4(
the multi-layer bus fabric that
"
&
gg CPU with DSP and FPU
functionality accesses the
to occur simultaneously without
>Z
STM32 Journal
compressed audio stream for
decompression and signal
processing (green)
gg
&
R
$
)#
(yellow)
gg Audio data is output to I2S
"
0 4
gg Graphical icons are transferred
from Flash to the display
"
0"4
Communications Interfaces:
Users want to be able to access
"
O
"
O
(
N
%
including USB (host and device),
.
#'
).'
%
&
5%
!
!
(
K
%&'
)*
!
&
"
5
"
"O
"
&
(
+"
(
)#$
""
"
&
0(('
!
!
&'
%
"
O
"(
K
&&
)#$'
)R?
KZ
"
$'
)*'
.?)
=%
"
!
ZZ(>
`\/
.?)
Z@
\/
)*
"
"
!
"(
)R?
KZ
!
5%
(
"
!
+"
"(
STM32 F4
CPU load
Flash
footprint
RAM
footprint
MP3 decoder
17%
6%
23k
12344
MP3 encoder
22.5%
9%
25k
16060
WMA decoder
17.5%
6%
45k
36076
AAC+ v2 decoder
25%
11%
54k
87000
Channel mixer
2.5%
2%
0.6k
16
Parametric Equalizer
16%
12%
2k
300
Loudness Control
4.5%
3.5%
3.25k
632
SRC
22.5%
10%
17.5k
1880
Figure 4
N
&"
>[
R?
)
"
'
)R?
KZ
O
?kj
&
(
"
'
&
&
&
"
"
&
"
+"
(
K
%&'
)*
!
&
"
5
"
"
&
(
15
STM32 Journal
$).)
)
&
(
$).)
"&&
#
"
!
!
"&
&
'
"
N(
Figure 5
"
N
)
$&
O
.
&
&
5
&&
&
!
"
&
(
"
O
!
)R?
"
O
j(k
&
+"
(
%
!
&(
.
)R?
KZ
&
(('
%&'
!
R
(
N
that goes on between receiving
)R?
KZ'
&
(
"
N
O
5
&&
+"
"
"(
STM32 Journal
*"
&%
"
&
!
&
.)
+"
"
&
(
&
(
"
a powerful environment in
&
"
+"
&
(
N
"
"&&
5
&
%&
= "
O
&
"
)R?
KZ'
O
5%
&
"
+"
"
(
modules, and does not require
#)
&
(
"
>kj
O
(
&
&
.(
design using Audio Weaver as
&
(
&!(
=
'
N
!
"
N'
&
!
KZ
=
&
/
'
O
&
&
!
"
& (
K
=
"
&
&=
17
STM32 Journal
to determine where to allocate
$
"
%/
"
+"
(
"
&
/
)R?
"(
K
%&'
)
&
O
O
!
&
%
&&
(
J"
'
&'
software functionality beyond its
and download code before they
K
&&
0K.4
%
"
"
'
= "
(
'
)
O
&&
including:
However, to assess the impact of
iAP application, a complete
gg
#
!
=
+"
'
"
)R?
K?
gg
"
.
%&'
&
)R?
KZ
= "
gg
$
+"
"
%&(
(
K
=
(
$&
"
=
(
N
gg
)R??%
System-level Design
)R?Z%
= "
"
"
O
creating
digital
audio
resources
USB Host HID class for control
$(
for its customers in order to
and information data
"
+"!
O
&
"
K%
"
&=
#
control
gg Digital audio streaming
gg
"
%
gg Flash card reader capabilities,
such as using an SD card or
$'
"
=
(
&
/
5%
&
!
%&
(
O
"
$(
18