EasyManuals Logo

ST STM32F103 series Application Note

ST STM32F103 series
26 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #9 background imageLoading...
Page #9 background image
AN2739 Implementation example
9/26
Other board resources are used to interface the application:
Audio codec: AK4343 implemented on the STM3210E-EVAL and connected to the
I2S2 interface (and to relative passive components).
Stereo audio speaker and audio jack connected to the audio codec and implemented
on the STM3210E-EVAL.
Joystick and key push-buttons: connected to the PG7, PD3, PG13, PG14, PG15 and
PG8 pins on the board. These push-buttons are used to control the audio stream.
LCD screen: implemented on the STM3210E-EVAL evaluation board and controlled by
the FSMC interface.
2.2.1 Audio codec
The audio codec implemented on the STM3210E-EVAL is the AK4343 from AKM. This
codec allows digital (PCM raw data transmitted with I
2
S protocol) to analog conversion. The
audio parameterization and the codec configuration are performed through an I
2
C interface.
The codec has 36 configuration registers mainly used to:
program the audio output (speaker or headphone) and input (analog input or digital I
2
S
data, etc.).
enable or disable the master clock feature and, set the reference clock for internal and
sampling operations.
set the digital volume level, the mute status and the digital filter coefficients.
The codec can operate in different modes. The modes allowed by the hardware board
implementation are listed below:
PLL Slave mode: the internal codec clock is derived, with an internal PLL, from an
external clock. The external clock can be either the bit clock (SCK) or the channel clock
(WS) (this mode requires a high clock accuracy on SCK/WS clock).
EXT slave mode: no PLL is used and the internal clock is derived from the MCLK input
clock (at 256 × F
S
frequency rate).
Figure 4 illustrates the hardware implementation schematic and how the codec is connected
to the STM32F103xx and the board components.
Figure 4. Audio codec hardware implementation
I2S_WS
I2S_SD
I2S_SCK
3
2
1
JP1 8
MCKO
TP7
+3V3
1uF
C59
I2C_SCK
I2C_SDA
10uF
C65
100n F
C54
2. 2uF
C53
100n F
C34
+3V3
10uF
C73
100n F
C66
10uF
C79
100n F
C16
+3V3
+3V3
10
R83
0. 22uF
C67
10
R73
0. 22uF
C76
10
R86
6. 8
R87
6. 8
R84
47uF
C80
47uF
C70
1
3
2
Jack Output
CN15
1
2
KSS-1508
SPEAKER
CCLK/SCL
9
CDTI/SDA
10
SDTI
11
TEST2
12
LRCK
13
BICK
14
DVDD
15
DVSS
16
MUTET
25
ROUT /RCN
26
LOUT/ RCP
27
MIN/L IN3
28
RIN2/IN2-
29
LIN 2/IN 2+
30
LIN 1/IN 1-
31
RIN1/IN1+
32
TEST1
1
VCOM
2
AV SS
3
AV DD
4
VCOC/ RIN3
5
I2C
6
PDN
7
CSN/CAD0
8
MCKI
17
MCKO
18
SPN
19
SPP
20
HVDD
21
HVSS
22
HPR
23
HPL
24
AK 434 3
U10
Au di o_RIN
Au di o_LIN
1uF
C56
1uF
C57
0R67
0R68
RIN
TP9
LIN
TP6
HPL
TP1 0
HPR
TP8
SPP
TP1 2
SPN
TP1 3
I2S_MCK
Defaul t s ett ing: 1 <->2
PC6
PB12
PB13
PB15
PB7
PB6
PA5
PA4
PG11 (PDN)
DA C Outpu t
I2S Interface
I2C Interface
ai15128

Other manuals for ST STM32F103 series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F103 series and is the answer not in the manual?

ST STM32F103 series Specifications

General IconGeneral
BrandST
ModelSTM32F103 series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals