![GigaDevice Semiconductor GD32E23 Series User Manual Download Page 525](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32e23-series/gd32e23-series_user-manual_2225794525.webp)
GD32E23x User Manual
525
configured according to the formulas listed in
Table 18-8. Audio sampling frequency
Table 18-8. 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
interface signals for each operation mode
Table 18-9. 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 is shown as below