GD32F403xx User Manual
482
Figure 19-52. I2S initialization sequence
Is the
MSTMOD
bit is 1
Start
YES
Configure the DIV [7:0] bits, the OF
bit, and the MCKOEN bit to define
the I2S bitrate and master clock
Finish
Configure the CKPL bit to define the clock polarity
of idle state
Configure the I2SSEL bit to select I2S mode
Configure the I2SSTD [1:0] bits and the PCMSMOD
bit to select I2S standard
Configure the I2SOPMOD [1:0] bits to select I2S
operation mode
Configure the DTLEN [1:0] bits and the CHLEN bit
to select I2S data format
Configure the TBEIE bit, the RBNEIE bit, the
ERRIE bit to enable I2S interrupt (optional)
Configure the DMATEN bit, and the DMAREN bit to
enable I2S DMA function (optional)
Configure the I2SEN bit to enable I2S
No
I2S master transmission sequence
The TBE flag is used to control the transmission sequence. As is mentioned before, the TBE
flag indicates that the transmit buffer is empty, and an interrupt will be generated if the TBEIE
bit in the SPI_CTL1 register is set. At the beginning, the transmit buffer is empty (TBE is high)
Содержание GD32F403 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F403xx Arm Cortex M4 32 bit MCU User Manual Revision 2 6 Jul 2022 ...
Страница 177: ...GD32F403xx UserManual 177 Peripheral Channel 0 Channel 1 Channel 2 Channel 3 Channel 4 SDIO SDIO ...
Страница 217: ...GD32F403xx UserManual 217 ensures that no conversion is in progress ...