Table 213. Sai Interrupt Sources; Sai Interrupts - ST STM32L4x6 Reference Manual

Table of Contents

Advertisement

RM0351
Follow the sequence below to configure the SAI interface in DMA mode:
1.
Configure SAI and FIFO threshold levels to specify when the DMA request will be
launched.
2.
Configure SAI DMA channel.
3.
Enable the DMA.
4.
Enable the SAI interface.
Note:
Before configuring the SAI block, the SAI DMA channel must be disabled.
39.4

SAI interrupts

The SAI supports 7 interrupt sources as shown in
Interrupt
Interrupt
source
group
FREQ
FREQ
OVRUDR
ERROR
AFSDET
ERROR
LFSDET
ERROR
CNRDY
ERROR
MUTEDET
MUTE
WCKCFG
ERROR
Follow the sequence below to enable an interrupt:
1.
Disable SAI interrupt.
2.
Configure SAI.
3.
Configure SAI interrupt source.
4.
Enable SAI.

Table 213. SAI interrupt sources

Audio block mode
Master or slave
Receiver or transmitter
Master or slave
Receiver or transmitter
Slave
(not used in AC'97 mode
and SPDIF mode)
Slave
(not used in AC'97 mode
and SPDIF mode)
Slave
(only in AC'97 mode)
Master or slave
Receiver mode only
Master with NODIV = 0 in
SAI_xCR1 register
DocID024597 Rev 3
Table
213.
Interrupt enable
Depends on:
– FIFO threshold setting (FLTH bits in
SAI_xCR2)
FREQIE in SAI_xIM
– Communication direction (transmitter
register
or receiver)
For more details refer to
Section 39.3.8: Internal FIFOs
OVRUDRIE in
COVRUDR = 1 in SAI_xCLRFR register
SAI_xIM register
AFSDETIE in
CAFSDET = 1 in SAI_xCLRFR register
SAI_xIM register
LFSDETIE in
CLFSDET = 1 in SAI_xCLRFR register
SAI_xIM register
CNRDYIE in
CCNRDY = 1 in SAI_xCLRFR register
SAI_xIM register
MUTEDETIE in
CMUTEDET = 1 in SAI_xCLRFR
SAI_xIM register
register
WCKCFGIE in
CWCKCFG = 1 in SAI_xCLRFR register
SAI_xIM register
Serial audio interface (SAI)
Interrupt clear
1345/1693
1362

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Table of Contents

Save PDF