Serial audio interface (SAI)
RM0090
928/1731
DocID018909 Rev 11
It is mandatory to respect the following conditions in order to avoid bad SAI behavior:
FBOFF
≤
(SLOTSZ - DS),
DS
≤
SLOTSZ,
NBSLOT x SLOTSZ
≤
FRL (frame length),
The number of slots should be even when bit FSDEF in the SAI_xFRCR register is set.
In AC’97 (bit PRTCFG[1:0] = 10), the slot size is automatically set as defined in
29.9 SAI
clock
generator
Each audio block has its own clock generator to make these two blocks completely
independent. There is no difference in terms of functionality between these two clock
generators. They are exactly the same.
When the audio block is defined as Master, the clock generator generates the
communication clock (the bit clock) and the master clock for external decoders.
When the audio block is defined as slave, the clock generator is OFF.
illustrates the architecture of the audio block clock generator.
Figure 289. Audio block clock generator overview
Note:
If NoDiv is set to 1, the MCLK_x signal will be set at 0 level if this pin is configured as the
SAI pin in GPIO peripherals.
The clock source for the clock generator comes from the product clock controller. The
SAI_CK_x clock is equivalent to the master clock which may be divided for the external
decoders using bit MCKDIV[3:0]:
MCLK_x = SAI_CK_x / (MCKDIV[3:0] * 2), if MCKDIV[3:0] is not equal to 0000.
MCLK_x = SAI_CK_x, if MCKDIV[3:0] is equal to 0000.
MCLK_x signal is used only in TDM.
The division must be even in order to keep 50% on the Duty cycle on the MCLK output and
on the SCK_x clock. If bit MCKDIV[3:0] = 0000, division by one is applied to have MCLK_x
= SAI_CK_x.
In the SAI, the single ratio MCLK/FS = 256 is considered. Mostly, three frequency ranges
will be encountered as illustrated in the
0DVWHUFORFN
GLYLGHU
%LWFORFNGLYLGHU
0&.',9>@
6&.B[
0&/.B[
12',9
12',9
12',9
6$,B&.B[
069
)5/>@