Figure 380. Pcm Standard Waveforms (16-Bit Extended To 32-Bit Packet Frame) - ST STM32WL55JC Reference Manual

Advanced arm-based 32-bit mcus with sub-ghz radio solution
Table of Contents

Advertisement

Serial peripheral interface / integrated interchip sound (SPI/I2S)
Figure 382
by the reset and clock controller (RCC) of the product. The I2SxCLK clock can be
asynchronous with respect to the SPI/I2S APB clock.
Warning:
The audio sampling frequency may be 192 kHz, 96 kHz, 48 kHz, 44.1 kHz, 32 kHz,
22.05 kHz, 16 kHz, 11.025 kHz or 8 kHz (or any other value within this range).
In order to reach the desired frequency, the linear divider needs to be programmed
according to the formulas below:
2
For I
S modes:
When the master clock is generated (MCKOE in the SPIx_I2SPR register is set):
When the master clock is disabled (MCKOE bit cleared):
CHLEN = 0 when the channel frame is 16-bit wide and,
CHLEN = 1 when the channel frame is 32-bit wide.
For PCM modes:
When the master clock is generated (MCKOE in the SPIx_I2SPR register is set):
When the master clock is disabled (MCKOE bit cleared):
CHLEN = 0 when the channel frame is 16-bit wide and,
CHLEN = 1 when the channel frame is 32-bit wide.
Where F
provided to the SPI/I2S block.
1296/1454
presents the communication clock architecture. The I2SxCLK clock is provided
In addition, it is mandatory to keep the I2SxCLK frequency
higher or equal to the APB clock used by the SPI/I2S block. If
this condition is not respected the SPI/I2S does not work
properly.
Fs
=
Fs
=
------------------------------------------------------------------------------------------------------------------------------------------------------------- -
×
(
32
CHLEN
Fs
=
Fs
=
------------------------------------------------------------------------------------------------------------------------------------------------------------- -
×
(
16
CHLEN
is the audio sampling frequency, and F
S
F
I2SxCLK
--------------------------------------------------------------------------------------------------------
×
(
2 (
×
I2SDIV )
256
F
I2SxCLK
1 )
×
(
2 (
×
+
F
I2SxCLK
--------------------------------------------------------------------------------------------------------
×
(
2 (
×
I2SDIV )
128
F
I2SxCLK
1 )
×
(
2 (
×
+
I2SxCLK
RM0453 Rev 2
ODD )
+
I2SDIV )
ODD )
+
ODD )
+
I2SDIV )
ODD )
+
is the frequency of the kernel clock
RM0453

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32WL55JC and is the answer not in the manual?

This manual is also suitable for:

Stm32wl5 seriesStm32wl54 series

Table of Contents

Save PDF