
AT32F413
Series Reference Manual
2022.06.27
Page 176
Rev 2.00
13.3.8 Interrupts
Figure 13-20 I
2
S interrupts
RDBF
RDBFIE
TDBE
TDBEIE
ROERR
TUERR
ERRIE
I2S interrupt
13.3.9 IO pin control
When used as I
2
S, the I
2
S needs three pins for transfer operation, namely, the SD (data pin), WS
(synchronization pin) and CK (communication clock pin). The MCLK pin is also required if need to
provide main clock for peripherals. The SPI interface cannot be used as both I
2
S and SPI
simultaneously, so the I
2
S shares some pins with the SPI, described as follows:
SD: Serial data (mapped on the MOSI pin) for bidirectional data transmission and reception.
WS: Word select (mapped on the CS pin) for data control signal output in master mode, and
input in slave mode.
CK: Communication clock (mapped on the SCK pin) as clock signal output in master mode,and
input in slave mode.
MCLK: Master clock (mapped independently) is used to provide main clock for peripherals. The
frequency of output clock signal is set to 256 x Fs (audio sampling frequency)