EasyManuals Logo
Home>ST>Microcontrollers>STM32L4x6

ST STM32L4x6 User Manual

ST STM32L4x6
1693 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1345 background imageLoading...
Page #1345 background image
DocID024597 Rev 3 1345/1693
RM0351 Serial audio interface (SAI)
1362
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 Table 213.
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
Interrupt
source
Interrupt
group
Audio block mode Interrupt enable Interrupt clear
FREQ FREQ
Master or slave
Receiver or transmitter
FREQIE in SAI_xIM
register
Depends on:
FIFO threshold setting (FLTH bits in
SAI_xCR2)
Communication direction (transmitter
or receiver)
For more details refer to
Section 39.3.8: Internal FIFOs
OVRUDR ERROR
Master or slave
Receiver or transmitter
OVRUDRIE in
SAI_xIM register
COVRUDR = 1 in SAI_xCLRFR register
AFSDET ERROR
Slave
(not used in AC’97 mode
and SPDIF mode)
AFSDETIE in
SAI_xIM register
CAFSDET = 1 in SAI_xCLRFR register
LFSDET ERROR
Slave
(not used in AC’97 mode
and SPDIF mode)
LFSDETIE in
SAI_xIM register
CLFSDET = 1 in SAI_xCLRFR register
CNRDY ERROR
Slave
(only in AC’97 mode)
CNRDYIE in
SAI_xIM register
CCNRDY = 1 in SAI_xCLRFR register
MUTEDET MUTE
Master or slave
Receiver mode only
MUTEDETIE in
SAI_xIM register
CMUTEDET = 1 in SAI_xCLRFR
register
WCKCFG ERROR
Master with NODIV = 0 in
SAI_xCR1 register
WCKCFGIE in
SAI_xIM register
CWCKCFG = 1 in SAI_xCLRFR register

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

ST STM32L4x6 Specifications

General IconGeneral
BrandST
ModelSTM32L4x6
CategoryMicrocontrollers
LanguageEnglish

Related product manuals