![GigaDevice Semiconductor GD32F10 Series Скачать руководство пользователя страница 503](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32f10-series/gd32f10-series_user-manual_2225800503.webp)
GD32F10x User Manual
503
Fs = I2S bitrate / (number of bits per channel * number of channels)
So, in order to get the desired audio sampling frequency, the clock generator needs to be
configured according to the formulas listed in
Table 18-7. Audio sampling frequency
Table 18-7. Audio sampling frequency calculation formulas
MCKOEN
CHLEN
Formula
0
0
I2SCLK / (32 * (DIV * 2 + OF))
0
1
I2SCLK / (64 * (DIV * 2 + OF))
1
0
I2SCLK / (256 * (DIV * 2 + OF))
1
1
I2SCLK / (256 * (DIV * 2 + OF))
18.4.5.
Operation
Operation modes
The operation mode is selected by the I2SOPMOD[1:0] bits in the SPI_I2SCTL register. There
are four available operation modes, including master transmission mode, master reception
mode, slave transmission mode, and slave reception mode. The direction of I2S interface
signals for each operation mode is shown in the
Table 18-8. Direction of I2S interface
signals for each operation mode.
Table 18-8. Direction of I2S interface signals for each operation mode
Operation mode
I2S_MCK
I2S_CK
I2S_WS
I2S_SD
Master transmission
Output or NU
(1)
Output
Output
Output
Master reception
Output or NU
(1)
Output
Output
Input
Slave transmission
Input or NU
(1)
Input
Input
Output
Slave reception
Input or NU
(1)
Input
Input
Input
1. NU means the pin is not used by I2S and can be used by other functions.
I2S initialization sequence
I2S initialization sequence shown as below
Содержание GD32F10 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F10x Arm Cortex M3 32 bit MCU User Manual Revision 2 6 Jun 2022 ...
Страница 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Страница 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Страница 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Страница 427: ...GD32F10x User Manual 427 value ...
Страница 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...