EasyManua.ls Logo

ST STM32L4x6

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
Loading...
Serial audio interface (SAI) RM0351
1342/1693 DocID024597 Rev 3
The OVRUDR flag is cleared when COVRUDR bit is set in the SAI_xCLRFR register.
Figure 450. Overrun detection error
Underrun
An underrun may occur when the audio block in the SAI is a transmitter and the FIFO is
empty when data need to be transmitted. If an underrun is detected, the slot number for
which the event occurs is stored and MUTE value (00) is sent until the FIFO is ready to
transmit the data corresponding to the slot for which the underrun was detected (refer to
Figure 451). This avoids desynchronization between the memory pointer and the slot in the
audio frame.
The underrun event sets the OVRUDR flag in the SAI_xSR register and an interrupt is
generated if the OVRUDRIE bit is set in the SAI_xIM register. To clear this flag, set
COVRUDR bit in the SAI_xCLRFR register.
The underrun event can occur when the audio sub-block is configured as master or slave.
Figure 451. FIFO underrun event
069
VFN
GDWD
6ORW21
([DPSOH),)2RYHUUXQRQ6ORW
$XGLRIUDPH $XGLRIUDPH
6ORWQ21
21
),)2IXOO
2958'5
6ORW21 3LOT/. 6ORW21 6ORW21
5HFHLYHGGDWDGLVFDUGHG
'DWDVWRUHGDJDLQLQ),)2
&2958'5 
-36
VFN
GDWD
6ORW21 087(
3LOTSIZEDATASIZE
6'RXWSXW
([DPSOH),)2XQGHUUXQRQ6ORW
$XGLRIUDPH $XGLRIUDPH
087( 6ORW21 21 6ORW21
29581' 
087(
),)2HPSW\
29581'

Table of Contents

Related product manuals